Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftMtMx
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
isc-v3.1-tmp
swiftMtMx
Commits
2a7541da
Commit
2a7541da
authored
Mar 25, 2023
by
zhanghou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决空指针
parent
849f11eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
Mx2MapPacs009Creator.java
...brilliance/swift/mx2map/pacs009/Mx2MapPacs009Creator.java
+3
-3
MxPacs00900108_COV.xml
swiftCore/src/main/resources/swiftXml/MxPacs00900108_COV.xml
+1
-0
Mx2ElementTest.java
swiftCore/src/test/java/com/brilliance/Mx2ElementTest.java
+1
-1
No files found.
swiftCore/src/main/java/com/brilliance/swift/mx2map/pacs009/Mx2MapPacs009Creator.java
View file @
2a7541da
...
@@ -110,9 +110,9 @@ public class Mx2MapPacs009Creator extends AbstractMx2MapCreator {
...
@@ -110,9 +110,9 @@ public class Mx2MapPacs009Creator extends AbstractMx2MapCreator {
undrlyTxnMaps
.
put
(
getPropertyValue
(
"txnRemark"
),
tag
.
getValue
());
undrlyTxnMaps
.
put
(
getPropertyValue
(
"txnRemark"
),
tag
.
getValue
());
}
}
if
(
undrlygCstmrCdtTrfMaps
.
get
(
"instdAmt"
)
!=
null
)
{
if
(
undrlygCstmrCdtTrfMaps
.
get
(
"instdAmt"
)
!=
null
)
{
BigDecimal
amt
=
(
BigDecimal
)
element
Maps
.
get
(
"instdAmt"
);
BigDecimal
amt
=
(
BigDecimal
)
undrlygCstmrCdtTrf
Maps
.
get
(
"instdAmt"
);
if
(
element
Maps
.
get
(
"instdAmtCcy"
)
!=
null
)
{
if
(
undrlygCstmrCdtTrf
Maps
.
get
(
"instdAmtCcy"
)
!=
null
)
{
undrlyTxnMaps
.
put
(
getPropertyValue
(
"original.settlement.amt"
),
element
Maps
.
get
(
"instdAmtCcy"
)
+
" "
+
amt
.
toPlainString
());
undrlyTxnMaps
.
put
(
getPropertyValue
(
"original.settlement.amt"
),
undrlygCstmrCdtTrf
Maps
.
get
(
"instdAmtCcy"
)
+
" "
+
amt
.
toPlainString
());
}
else
{
}
else
{
undrlyTxnMaps
.
put
(
getPropertyValue
(
"original.settlement.amt"
),
amt
.
toPlainString
());
undrlyTxnMaps
.
put
(
getPropertyValue
(
"original.settlement.amt"
),
amt
.
toPlainString
());
}
}
...
...
swiftCore/src/main/resources/swiftXml/MxPacs00900108_COV.xml
View file @
2a7541da
...
@@ -137,6 +137,7 @@ Change Log
...
@@ -137,6 +137,7 @@ Change Log
<InstrForNxtAgt>
<InstrForNxtAgt>
<InstrInf>
123456789
</InstrInf>
<InstrInf>
123456789
</InstrInf>
</InstrForNxtAgt>
</InstrForNxtAgt>
<InstdAmt
Ccy=
"EUR"
>
1111
</InstdAmt>
</UndrlygCstmrCdtTrf>
</UndrlygCstmrCdtTrf>
</CdtTrfTxInf>
</CdtTrfTxInf>
</FICdtTrf>
</FICdtTrf>
...
...
swiftCore/src/test/java/com/brilliance/Mx2ElementTest.java
View file @
2a7541da
...
@@ -19,7 +19,7 @@ public class Mx2ElementTest {
...
@@ -19,7 +19,7 @@ public class Mx2ElementTest {
@Test
@Test
public
void
testMx2Map
()
throws
IOException
{
public
void
testMx2Map
()
throws
IOException
{
// File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/MxPacs00800108.xml"));
// File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/MxPacs00800108.xml"));
File
file
=
FileUtils
.
toFile
(
Mx2MtTest
.
class
.
getResource
(
"/swiftXml/
Pacs00800108
.xml"
));
File
file
=
FileUtils
.
toFile
(
Mx2MtTest
.
class
.
getResource
(
"/swiftXml/
MxPacs00900108_COV
.xml"
));
//File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/MxPacs00900108.xml"));
//File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/MxPacs00900108.xml"));
//File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/MxPacs00900108_COV.xml"));
//File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/MxPacs00900108_COV.xml"));
//File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/MxCamt05300108_950.xml"));
//File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/MxCamt05300108_950.xml"));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment