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
4a114cc0
Commit
4a114cc0
authored
Apr 25, 2022
by
zhanghou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对940,950xml文件和txt文件以及对61进行了修改
parent
73065a63
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
37 deletions
+36
-37
Camt053001Parse61Field.java
...e/swift/mt2mx/camt053001/impl/Camt053001Parse61Field.java
+6
-4
NtryDto.java
...src/main/java/com/brilliance/swift/vo/common/NtryDto.java
+19
-19
MT940.txt
swiftCore/src/main/resources/swiftTxt/MT940.txt
+3
-4
MT950.txt
swiftCore/src/main/resources/swiftTxt/MT950.txt
+3
-4
MxCamt05300102_940.xml
swiftCore/src/main/resources/swiftXml/MxCamt05300102_940.xml
+3
-4
MxCamt05300102_950.xml
swiftCore/src/main/resources/swiftXml/MxCamt05300102_950.xml
+2
-2
No files found.
swiftCore/src/main/java/com/brilliance/swift/mt2mx/camt053001/impl/Camt053001Parse61Field.java
View file @
4a114cc0
...
@@ -25,14 +25,15 @@ public class Camt053001Parse61Field extends AbstractMt2MxParseFields {
...
@@ -25,14 +25,15 @@ public class Camt053001Parse61Field extends AbstractMt2MxParseFields {
MT940
mt940
=
(
MT940
)
context
.
get
(
AbstractMT
.
class
);
MT940
mt940
=
(
MT940
)
context
.
get
(
AbstractMT
.
class
);
List
<
Field61
>
field61List
=
mt940
.
getField61
();
List
<
Field61
>
field61List
=
mt940
.
getField61
();
if
(
field61List
.
size
()>
0
)
{
if
(
field61List
.
size
()>
0
)
{
NtryDto
ntryDto
=
new
NtryDto
();
for
(
int
i
=
0
;
i
<
field61List
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
field61List
.
size
();
i
++)
{
NtryDto
ntryDto
=
new
NtryDto
();
ntryDto
.
setValDate
(
DateUtil
.
parseDate
(
"20"
+
field61List
.
get
(
i
).
getValueDate
(),
"yyyyMMdd"
));
ntryDto
.
setValDate
(
DateUtil
.
parseDate
(
"20"
+
field61List
.
get
(
i
).
getValueDate
(),
"yyyyMMdd"
));
ntryDto
.
setBookDate
(
DateUtil
.
parseDate
(
"20"
+
field61List
.
get
(
i
).
getEntryDate
(),
"yyyyMMdd"
));
ntryDto
.
setBookDate
(
DateUtil
.
parseDate
(
"20"
+
field61List
.
get
(
i
).
getEntryDate
(),
"yyyyMMdd"
));
ntryDto
.
setCdtDbtInd
(
field61List
.
get
(
i
).
getDCMark
());
ntryDto
.
setCdtDbtInd
(
field61List
.
get
(
i
).
getDCMark
());
ntryDto
.
setCcy
(
field61List
.
get
(
i
).
getFundsCode
());
ntryDto
.
setCcy
(
field61List
.
get
(
i
).
getFundsCode
());
ntryDto
.
setAmt
(
field61List
.
get
(
i
).
amount
());
ntryDto
.
setAmt
(
field61List
.
get
(
i
).
amount
());
ntryDto
.
setCd
(
field61List
.
get
(
i
).
getTransactionType
());
ntryDto
.
setTransactionType
(
field61List
.
get
(
i
).
getTransactionType
());
ntryDto
.
setIdentificationCode
(
field61List
.
get
(
i
).
getIdentificationCode
());
ntryDto
.
setEndToEndId
(
field61List
.
get
(
i
).
getReferenceForTheAccountOwner
());
ntryDto
.
setEndToEndId
(
field61List
.
get
(
i
).
getReferenceForTheAccountOwner
());
ntryDto
.
setAddtlTxInf
(
field61List
.
get
(
i
).
getReferenceOfTheAccountServicingInstitution
());
ntryDto
.
setAddtlTxInf
(
field61List
.
get
(
i
).
getReferenceOfTheAccountServicingInstitution
());
ntryDto
.
setAddtlNtryInf
(
field61List
.
get
(
i
).
getSupplementaryDetails
());
ntryDto
.
setAddtlNtryInf
(
field61List
.
get
(
i
).
getSupplementaryDetails
());
...
@@ -43,14 +44,15 @@ public class Camt053001Parse61Field extends AbstractMt2MxParseFields {
...
@@ -43,14 +44,15 @@ public class Camt053001Parse61Field extends AbstractMt2MxParseFields {
MT950
mt950
=
(
MT950
)
context
.
get
(
AbstractMT
.
class
);
MT950
mt950
=
(
MT950
)
context
.
get
(
AbstractMT
.
class
);
List
<
Field61
>
field61List
=
mt950
.
getField61
();
List
<
Field61
>
field61List
=
mt950
.
getField61
();
if
(
field61List
.
size
()>
0
)
{
if
(
field61List
.
size
()>
0
)
{
NtryDto
ntryDto
=
new
NtryDto
();
for
(
int
i
=
0
;
i
<
field61List
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
field61List
.
size
();
i
++)
{
NtryDto
ntryDto
=
new
NtryDto
();
ntryDto
.
setValDate
(
DateUtil
.
parseDate
(
"20"
+
field61List
.
get
(
i
).
getValueDate
(),
"yyyyMMdd"
));
ntryDto
.
setValDate
(
DateUtil
.
parseDate
(
"20"
+
field61List
.
get
(
i
).
getValueDate
(),
"yyyyMMdd"
));
ntryDto
.
setBookDate
(
DateUtil
.
parseDate
(
"20"
+
field61List
.
get
(
i
).
getEntryDate
(),
"yyyyMMdd"
));
ntryDto
.
setBookDate
(
DateUtil
.
parseDate
(
"20"
+
field61List
.
get
(
i
).
getEntryDate
(),
"yyyyMMdd"
));
ntryDto
.
setCdtDbtInd
(
field61List
.
get
(
i
).
getDCMark
());
ntryDto
.
setCdtDbtInd
(
field61List
.
get
(
i
).
getDCMark
());
ntryDto
.
setCcy
(
field61List
.
get
(
i
).
getFundsCode
());
ntryDto
.
setCcy
(
field61List
.
get
(
i
).
getFundsCode
());
ntryDto
.
setAmt
(
field61List
.
get
(
i
).
amount
());
ntryDto
.
setAmt
(
field61List
.
get
(
i
).
amount
());
ntryDto
.
setCd
(
field61List
.
get
(
i
).
getTransactionType
());
ntryDto
.
setTransactionType
(
field61List
.
get
(
i
).
getTransactionType
());
ntryDto
.
setIdentificationCode
(
field61List
.
get
(
i
).
getIdentificationCode
());
ntryDto
.
setEndToEndId
(
field61List
.
get
(
i
).
getReferenceForTheAccountOwner
());
ntryDto
.
setEndToEndId
(
field61List
.
get
(
i
).
getReferenceForTheAccountOwner
());
ntryDto
.
setAddtlTxInf
(
field61List
.
get
(
i
).
getReferenceOfTheAccountServicingInstitution
());
ntryDto
.
setAddtlTxInf
(
field61List
.
get
(
i
).
getReferenceOfTheAccountServicingInstitution
());
ntryDto
.
setAddtlNtryInf
(
field61List
.
get
(
i
).
getSupplementaryDetails
());
ntryDto
.
setAddtlNtryInf
(
field61List
.
get
(
i
).
getSupplementaryDetails
());
...
...
swiftCore/src/main/java/com/brilliance/swift/vo/common/NtryDto.java
View file @
4a114cc0
...
@@ -21,11 +21,11 @@ public class NtryDto {
...
@@ -21,11 +21,11 @@ public class NtryDto {
private
BigDecimal
amt
=
BigDecimal
.
ZERO
;
private
BigDecimal
amt
=
BigDecimal
.
ZERO
;
private
String
cd
;
private
String
transactionType
;
private
String
endToEndId
;
private
String
identificationCode
;
private
String
acctSvcrRef
;
private
String
endToEndId
;
private
String
addtlTxInf
;
private
String
addtlTxInf
;
...
@@ -55,14 +55,6 @@ public class NtryDto {
...
@@ -55,14 +55,6 @@ public class NtryDto {
this
.
cdtDbtInd
=
cdtDbtInd
;
this
.
cdtDbtInd
=
cdtDbtInd
;
}
}
public
String
getCd
()
{
return
cd
;
}
public
void
setCd
(
String
cd
)
{
this
.
cd
=
cd
;
}
public
String
getCcy
()
{
public
String
getCcy
()
{
return
ccy
;
return
ccy
;
}
}
...
@@ -79,20 +71,28 @@ public class NtryDto {
...
@@ -79,20 +71,28 @@ public class NtryDto {
this
.
amt
=
amt
;
this
.
amt
=
amt
;
}
}
public
String
get
EndToEndId
()
{
public
String
get
TransactionType
()
{
return
endToEndId
;
return
transactionType
;
}
}
public
void
setEndToEndId
(
String
endToEndId
)
{
public
void
setTransactionType
(
String
transactionType
)
{
this
.
endToEndId
=
endToEndId
;
this
.
transactionType
=
transactionType
;
}
public
String
getIdentificationCode
()
{
return
identificationCode
;
}
}
public
String
getAcctSvcrRef
(
)
{
public
void
setIdentificationCode
(
String
identificationCode
)
{
return
acctSvcrRef
;
this
.
identificationCode
=
identificationCode
;
}
}
public
void
setAcctSvcrRef
(
String
acctSvcrRef
)
{
public
String
getEndToEndId
()
{
this
.
acctSvcrRef
=
acctSvcrRef
;
return
endToEndId
;
}
public
void
setEndToEndId
(
String
endToEndId
)
{
this
.
endToEndId
=
endToEndId
;
}
}
public
String
getAddtlTxInf
()
{
public
String
getAddtlTxInf
()
{
...
...
swiftCore/src/main/resources/swiftTxt/MT940.txt
View file @
4a114cc0
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
:25:S15612345678012345
:25:S15612345678012345
:28C:178/200
:28C:178/200
:60M:D220330USD120274,34
:60M:D220330USD120274,34
:61:220330220330DUSD393,17
123456789
S100000189-735//1309170100000390154395
:61:220330220330DUSD393,17
FCHK
S100000189-735//1309170100000390154395
PLACI LOVECNAMENSKIH WUHAN
PLACI LOVECNAMENSKIH WUHAN
:86:CHINESE BEIJING
:86:CHINESE BEIJING
:61:220330220330DUSD445,
123456789
S100000189-735//1309170100000390154395
:61:220330220330DUSD445,
FCHK
S100000189-735//1309170100000390154395
PLACI LOVECNAMENSKIH STORITEV
PLACI LOVECNAMENSKIH STORITEV
:62M:D220330USD123456,29
:62M:D220330USD123456,29
:64:D220330USD119609,29
:64:D220330USD119609,29
:65:D220330USD120274,34
:65:D220330USD120274,34
:86:HELLO WORLD
:86:HELLO WORLD
-}
-}
\ No newline at end of file
swiftCore/src/main/resources/swiftTxt/MT950.txt
View file @
4a114cc0
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
:25:S15612345678012345
:25:S15612345678012345
:28C:178/200
:28C:178/200
:60M:D220330USD120274,34
:60M:D220330USD120274,34
:61:220330220330DUSD393,17
123456789
S100000189-735//1309170100000390154395
:61:220330220330DUSD393,17
FCHK
S100000189-735//1309170100000390154395
PLACI LOVECNAMENSKIH WUHAN
PLACI LOVECNAMENSKIH WUHAN
:61:220330220330DUSD445,
123456789
S100000189-735//1309170100000390154395
:61:220330220330DUSD445,
FCHK
S100000189-735//1309170100000390154395
PLACI LOVECNAMENSKIH STORITEV
PLACI LOVECNAMENSKIH STORITEV
:62M:D220330USD123456,29
:62M:D220330USD123456,29
-}
-}
\ No newline at end of file
swiftCore/src/main/resources/swiftXml/MxCamt05300102_940.xml
View file @
4a114cc0
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<AcctSvcrRef>
1309170100000390154395
</AcctSvcrRef>
<AcctSvcrRef>
1309170100000390154395
</AcctSvcrRef>
<BkTxCd>
<BkTxCd>
<Prtry>
<Prtry>
<Cd>
123456789
</Cd>
<Cd>
FCHK
</Cd>
</Prtry>
</Prtry>
</BkTxCd>
</BkTxCd>
<NtryDtls>
<NtryDtls>
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
<AcctSvcrRef>
1309170100000390154395
</AcctSvcrRef>
<AcctSvcrRef>
1309170100000390154395
</AcctSvcrRef>
<BkTxCd>
<BkTxCd>
<Prtry>
<Prtry>
<Cd>
123456789
</Cd>
<Cd>
FCHK
</Cd>
</Prtry>
</Prtry>
</BkTxCd>
</BkTxCd>
<NtryDtls>
<NtryDtls>
...
@@ -187,4 +187,4 @@
...
@@ -187,4 +187,4 @@
</Stmt>
</Stmt>
</BkToCstmrStmt>
</BkToCstmrStmt>
</Document>
</Document>
</Envelope>
</Envelope>
\ No newline at end of file
swiftCore/src/main/resources/swiftXml/MxCamt05300102_950.xml
View file @
4a114cc0
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
<AcctSvcrRef>
1309170100000390154395
</AcctSvcrRef>
<AcctSvcrRef>
1309170100000390154395
</AcctSvcrRef>
<BkTxCd>
<BkTxCd>
<Prtry>
<Prtry>
<Cd>
123456789
</Cd>
<Cd>
FCHK
</Cd>
</Prtry>
</Prtry>
</BkTxCd>
</BkTxCd>
<NtryDtls>
<NtryDtls>
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
<AcctSvcrRef>
1309170100000390154395
</AcctSvcrRef>
<AcctSvcrRef>
1309170100000390154395
</AcctSvcrRef>
<BkTxCd>
<BkTxCd>
<Prtry>
<Prtry>
<Cd>
123456789
</Cd>
<Cd>
FCHK
</Cd>
</Prtry>
</Prtry>
</BkTxCd>
</BkTxCd>
<NtryDtls>
<NtryDtls>
...
...
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