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
d8dfd535
Commit
d8dfd535
authored
Apr 26, 2022
by
zhanghou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了mtType表示报文类型
parent
7beda872
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
2 deletions
+36
-2
Camt053001Parse20Field.java
...e/swift/mt2mx/camt053001/impl/Camt053001Parse20Field.java
+2
-0
Camt054001Parse20Field.java
...e/swift/mt2mx/camt054001/impl/Camt054001Parse20Field.java
+2
-0
Camt054001Parse72Field.java
...e/swift/mt2mx/camt054001/impl/Camt054001Parse72Field.java
+12
-2
BankToCustomerDebitCreditNotification.java
...iance/swift/vo/BankToCustomerDebitCreditNotification.java
+10
-0
BankToCustomerStatement.java
...java/com/brilliance/swift/vo/BankToCustomerStatement.java
+10
-0
No files found.
swiftCore/src/main/java/com/brilliance/swift/mt2mx/camt053001/impl/Camt053001Parse20Field.java
View file @
d8dfd535
...
...
@@ -22,12 +22,14 @@ public class Camt053001Parse20Field extends AbstractMt2MxParseFields {
Field20
field20
=
mt940
.
getField20
();
if
(
field20
!=
null
){
bankToCustomerStatement
.
setMessageId
(
field20
.
getValue
());
bankToCustomerStatement
.
setMtType
(
"940"
);
}
}
else
{
MT950
mt950
=
(
MT950
)
context
.
get
(
AbstractMT
.
class
);
Field20
field20
=
mt950
.
getField20
();
if
(
field20
!=
null
){
bankToCustomerStatement
.
setMessageId
(
field20
.
getValue
());
bankToCustomerStatement
.
setMtType
(
"950"
);
}
}
}
catch
(
Exception
e
)
{
...
...
swiftCore/src/main/java/com/brilliance/swift/mt2mx/camt054001/impl/Camt054001Parse20Field.java
View file @
d8dfd535
...
...
@@ -22,12 +22,14 @@ public class Camt054001Parse20Field extends AbstractMt2MxParseFields {
Field20
field20
=
mt900
.
getField20
();
if
(
field20
!=
null
){
bankToCustomerDebitCreditNotification
.
setMessageId
(
field20
.
getValue
());
bankToCustomerDebitCreditNotification
.
setMtType
(
"900"
);
}
}
else
{
MT910
mt910
=
(
MT910
)
context
.
get
(
AbstractMT
.
class
);
Field20
field20
=
mt910
.
getField20
();
if
(
field20
!=
null
){
bankToCustomerDebitCreditNotification
.
setMessageId
(
field20
.
getValue
());
bankToCustomerDebitCreditNotification
.
setMtType
(
"910"
);
}
}
}
catch
(
Exception
e
)
{
...
...
swiftCore/src/main/java/com/brilliance/swift/mt2mx/camt054001/impl/Camt054001Parse72Field.java
View file @
d8dfd535
...
...
@@ -22,13 +22,23 @@ public class Camt054001Parse72Field extends AbstractMt2MxParseFields {
MT900
mt900
=
(
MT900
)
context
.
get
(
AbstractMT
.
class
);
Field72
field72
=
mt900
.
getField72
();
if
(
field72
!=
null
){
bankToCustomerDebitCreditNotification
.
setAddtlTxInf
(
field72
.
getValue
());
StringBuilder
sb
=
new
StringBuilder
();
String
[]
split
=
field72
.
getValue
().
split
(
"\\r\\n"
);
for
(
String
s
:
split
)
{
sb
.
append
(
s
);
}
bankToCustomerDebitCreditNotification
.
setAddtlTxInf
(
sb
.
toString
());
}
}
else
{
MT910
mt910
=
(
MT910
)
context
.
get
(
AbstractMT
.
class
);
Field72
field72
=
mt910
.
getField72
();
if
(
field72
!=
null
){
bankToCustomerDebitCreditNotification
.
setAddtlTxInf
(
field72
.
getValue
());
StringBuilder
sb
=
new
StringBuilder
();
String
[]
split
=
field72
.
getValue
().
split
(
"\\r\\n"
);
for
(
String
s
:
split
)
{
sb
.
append
(
s
);
}
bankToCustomerDebitCreditNotification
.
setAddtlTxInf
(
sb
.
toString
());
}
}
}
catch
(
Exception
e
)
{
...
...
swiftCore/src/main/java/com/brilliance/swift/vo/BankToCustomerDebitCreditNotification.java
View file @
d8dfd535
...
...
@@ -11,6 +11,8 @@ import java.util.Date;
*/
public
class
BankToCustomerDebitCreditNotification
extends
SwiftDto
{
protected
String
mtType
;
protected
String
endToEndId
;
protected
String
ibanId
;
...
...
@@ -27,6 +29,14 @@ public class BankToCustomerDebitCreditNotification extends SwiftDto{
protected
String
addtlTxInf
;
public
String
getMtType
()
{
return
mtType
;
}
public
void
setMtType
(
String
mtType
)
{
this
.
mtType
=
mtType
;
}
public
String
getEndToEndId
()
{
return
endToEndId
;
}
...
...
swiftCore/src/main/java/com/brilliance/swift/vo/BankToCustomerStatement.java
View file @
d8dfd535
...
...
@@ -12,6 +12,8 @@ import java.util.List;
*/
public
class
BankToCustomerStatement
extends
SwiftDto
{
protected
String
mtType
;
protected
String
ibanId
;
protected
String
pgNb
;
...
...
@@ -30,6 +32,14 @@ public class BankToCustomerStatement extends SwiftDto{
protected
List
<
String
>
addtlStmtInf
;
public
String
getMtType
()
{
return
mtType
;
}
public
void
setMtType
(
String
mtType
)
{
this
.
mtType
=
mtType
;
}
public
String
getIbanId
()
{
return
ibanId
;
}
...
...
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