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
597fe678
Commit
597fe678
authored
Jun 27, 2023
by
wuzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
camt10700101修改52B域
parent
0c2a1f03
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
17 deletions
+21
-17
Field52aGenerate.java
...m/brilliance/swift/mx2mt/mt110/impl/Field52aGenerate.java
+16
-13
Field53BGenerate.java
...m/brilliance/swift/mx2mt/mt110/impl/Field53BGenerate.java
+2
-3
camt10700101.xml
swiftCore/src/main/resources/swiftXml/camt10700101.xml
+3
-1
No files found.
swiftCore/src/main/java/com/brilliance/swift/mx2mt/mt110/impl/Field52aGenerate.java
View file @
597fe678
...
@@ -3,7 +3,6 @@ package com.brilliance.swift.mx2mt.mt110.impl;
...
@@ -3,7 +3,6 @@ package com.brilliance.swift.mx2mt.mt110.impl;
import
com.brilliance.swift.exception.SwiftException
;
import
com.brilliance.swift.exception.SwiftException
;
import
com.brilliance.swift.mx2mt.AbstractMx2MtTagsGenerate
;
import
com.brilliance.swift.mx2mt.AbstractMx2MtTagsGenerate
;
import
com.brilliance.swift.mx2mt.Mx2MtContextIdentifier
;
import
com.brilliance.swift.mx2mt.Mx2MtContextIdentifier
;
import
com.brilliance.swift.util.StringUtil
;
import
com.prowidesoftware.swift.model.SwiftMessage
;
import
com.prowidesoftware.swift.model.SwiftMessage
;
import
com.prowidesoftware.swift.model.Tag
;
import
com.prowidesoftware.swift.model.Tag
;
import
java.util.List
;
import
java.util.List
;
...
@@ -23,20 +22,24 @@ public class Field52aGenerate extends AbstractMx2MtTagsGenerate {
...
@@ -23,20 +22,24 @@ public class Field52aGenerate extends AbstractMx2MtTagsGenerate {
context
.
set
(
Mx2MtContextIdentifier
.
MX_TO_MT_ERROR_LOCATION
,
"Block4/52a"
);
context
.
set
(
Mx2MtContextIdentifier
.
MX_TO_MT_ERROR_LOCATION
,
"Block4/52a"
);
SwiftMessage
swiftMessage
=
context
.
get
(
SwiftMessage
.
class
);
SwiftMessage
swiftMessage
=
context
.
get
(
SwiftMessage
.
class
);
List
<
Tag
>
tags
=
swiftMessage
.
getBlock4
().
getTags
();
List
<
Tag
>
tags
=
swiftMessage
.
getBlock4
().
getTags
();
String
cheDrwrAgt
=
getXmlNodeValue
(
bodyHdrParentElementName
,
document
,
"Chq.DrwrAgt"
);
int
cheDrwrAgt
=
getXmlNodeCounts
(
bodyHdrParentElementName
,
document
,
"Chq.DrwrAgt"
);
String
cheDrwrAgtAcct
=
bodyHdrParentElementName
+
".Chq.DrwrAgtAcct"
;
int
cheDrwrAgtAcct
=
getXmlNodeCounts
(
bodyHdrParentElementName
,
document
,
"Chq.DrwrAgtAcct"
)
;
String
account
=
""
;
String
account
=
""
;
if
(
StringUtil
.
isEmpty
(
cheDrwrAgt
)){
if
(
cheDrwrAgt
>
0
||
cheDrwrAgtAcct
>
0
)
{
account
=
mx_to_mtAccount
(
bodyHdrParentElementName
+
".Chq.DrwrAgtAcct"
);
String
cheDrwrAgtPath
=
bodyHdrParentElementName
+
".Chq.DrwrAgt"
;
tags
.
add
(
new
Tag
(
name_52B
,
account
));
String
cheDrwrAgtAcctPath
=
bodyHdrParentElementName
+
".Chq.DrwrAgtAcct"
;
}
else
{
if
(
cheDrwrAgt
==
0
)
{
Tag
tag
=
mx_to_mtAgentGeneric
(
name
,
cheDrwrAgt
,
cheDrwrAgtAcct
,
true
,
false
,
false
,
null
);
account
=
mx_to_mtAccount
(
bodyHdrParentElementName
+
".Chq.DrwrAgtAcct"
);
if
(
tag
!=
null
)
{
// tags.add(new Tag(name_52B, account));
if
(
name_52D
.
equals
(
tag
.
getName
()))
{
}
else
{
String
value
=
mx_to_mtStartingLineCharacter
(
tag
.
getValue
(),
"Block4/:"
+
name_52D
+
":"
);
Tag
tag
=
mx_to_mtAgentGeneric
(
name
,
cheDrwrAgtPath
,
cheDrwrAgtAcctPath
,
true
,
false
,
false
,
null
);
tag
.
setValue
(
value
);
if
(
tag
!=
null
)
{
if
(
name_52D
.
equals
(
tag
.
getName
()))
{
String
value
=
mx_to_mtStartingLineCharacter
(
tag
.
getValue
(),
"Block4/:"
+
name_52D
+
":"
);
tag
.
setValue
(
value
);
}
tags
.
add
(
tag
);
}
}
tags
.
add
(
tag
);
}
}
}
}
}
}
...
...
swiftCore/src/main/java/com/brilliance/swift/mx2mt/mt110/impl/Field53BGenerate.java
View file @
597fe678
...
@@ -2,8 +2,6 @@ package com.brilliance.swift.mx2mt.mt110.impl;
...
@@ -2,8 +2,6 @@ package com.brilliance.swift.mx2mt.mt110.impl;
import
com.brilliance.swift.exception.SwiftException
;
import
com.brilliance.swift.exception.SwiftException
;
import
com.brilliance.swift.mx2mt.AbstractMx2MtTagsGenerate
;
import
com.brilliance.swift.mx2mt.AbstractMx2MtTagsGenerate
;
import
com.brilliance.swift.mx2mt.Mx2MtContextIdentifier
;
import
com.brilliance.swift.util.StringUtil
;
import
com.prowidesoftware.swift.model.SwiftMessage
;
import
com.prowidesoftware.swift.model.SwiftMessage
;
import
com.prowidesoftware.swift.model.Tag
;
import
com.prowidesoftware.swift.model.Tag
;
import
java.util.List
;
import
java.util.List
;
...
@@ -19,9 +17,10 @@ public class Field53BGenerate extends AbstractMx2MtTagsGenerate {
...
@@ -19,9 +17,10 @@ public class Field53BGenerate extends AbstractMx2MtTagsGenerate {
public
void
tagGenerate
()
throws
SwiftException
{
public
void
tagGenerate
()
throws
SwiftException
{
SwiftMessage
swiftMessage
=
context
.
get
(
SwiftMessage
.
class
);
SwiftMessage
swiftMessage
=
context
.
get
(
SwiftMessage
.
class
);
List
<
Tag
>
tags
=
swiftMessage
.
getBlock4
().
getTags
();
List
<
Tag
>
tags
=
swiftMessage
.
getBlock4
().
getTags
();
int
cheDrwrAgtAcct
=
getXmlNodeCounts
(
bodyHdrParentElementName
,
document
,
"Chq.DrwrAgtAcct"
);
String
accountPath
=
bodyHdrParentElementName
+
".Chq.DrwrAgtAcct"
;
String
accountPath
=
bodyHdrParentElementName
+
".Chq.DrwrAgtAcct"
;
String
account
=
mx_to_mtSettlementAccount
(
"INDA"
,
accountPath
);
String
account
=
mx_to_mtSettlementAccount
(
"INDA"
,
accountPath
);
if
(
StringUtil
.
isNotEmpty
(
account
)
)
{
if
(
cheDrwrAgtAcct
>
0
)
{
tags
.
add
(
new
Tag
(
name_53B
,
account
));
tags
.
add
(
new
Tag
(
name_53B
,
account
));
}
}
}
}
...
...
swiftCore/src/main/resources/swiftXml/camt10700101.xml
View file @
597fe678
...
@@ -57,9 +57,11 @@
...
@@ -57,9 +57,11 @@
<IBAN>
SSSS
</IBAN>
<IBAN>
SSSS
</IBAN>
</Id>
</Id>
</PyerAcct>
</PyerAcct>
<DrwrAgt>
<FinInstnId>
QWERTYOII
</FinInstnId>
</DrwrAgt>
<DrwrAgtAcct>
<DrwrAgtAcct>
<Id>
<Id>
<!--52B-->
<IBAN>
OBHHIO
</IBAN>
<IBAN>
OBHHIO
</IBAN>
</Id>
</Id>
</DrwrAgtAcct>
</DrwrAgtAcct>
...
...
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