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
c2a1a717
Commit
c2a1a717
authored
Jun 27, 2023
by
wuzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
camt10700101修改59域
parent
597fe678
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
Field59Generate.java
...om/brilliance/swift/mx2mt/mt110/impl/Field59Generate.java
+6
-6
camt10700101.xml
swiftCore/src/main/resources/swiftXml/camt10700101.xml
+5
-4
No files found.
swiftCore/src/main/java/com/brilliance/swift/mx2mt/mt110/impl/Field59Generate.java
View file @
c2a1a717
...
@@ -22,21 +22,21 @@ public class Field59Generate extends AbstractMx2MtTagsGenerate {
...
@@ -22,21 +22,21 @@ public class Field59Generate extends AbstractMx2MtTagsGenerate {
context
.
set
(
Mx2MtContextIdentifier
.
MX_TO_MT_ERROR_LOCATION
,
"Block4/59a"
);
context
.
set
(
Mx2MtContextIdentifier
.
MX_TO_MT_ERROR_LOCATION
,
"Block4/59a"
);
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
ptsCtry
=
getXmlNodeValue
(
bodyHdrParentElementName
,
document
,
"Chq.Pyee.PstlAdr.Ctry"
);
int
ptsCtry
=
getXmlNodeCounts
(
bodyHdrParentElementName
,
document
,
"Chq.Pyee.PstlAdr.Ctry"
);
int
chePyeePstLine
=
getXmlNodeCounts
(
bodyHdrParentElementName
,
document
,
"Chq.Pyee.PstlAdr.AdrLine"
);
int
chePyeePstLine
=
getXmlNodeCounts
(
bodyHdrParentElementName
,
document
,
"Chq.Pyee.PstlAdr.AdrLine"
);
String
partyPath
=
bodyHdrParentElementName
+
".Chq.Pyee"
;
String
partyPath
=
bodyHdrParentElementName
+
".Chq.Pyee"
;
if
(
StringUtil
.
isNotEmpty
(
ptsCtry
)
){
if
(
ptsCtry
>
0
){
String
nameAddress
=
mx_to_mtPartyNameAndAddressLEI1
(
partyPath
);
String
nameAddress
=
mx_to_mtPartyNameAndAddressLEI1
(
partyPath
);
tags
.
add
(
new
Tag
(
name_59F
,
nameAddress
));
tags
.
add
(
new
Tag
(
name_59F
,
nameAddress
));
}
else
if
(
chePyeePstLine
>
0
)
{
}
else
if
(
chePyeePstLine
>
0
)
{
boolean
structuredAddressIndicator
=
mx_to_mtAddressLineType
(
partyPath
);
boolean
structuredAddressIndicator
=
mx_to_mtAddressLineType
(
partyPath
);
if
(
structuredAddressIndicator
){
if
(
structuredAddressIndicator
){
String
nameAddress
=
mx_to_mtPartyNameAndAddressLEI2
(
partyPath
,
"3/"
);
String
nameAddress
=
mx_to_mtPartyNameAndAddressLEI2
(
partyPath
,
"3/"
);
tags
.
add
(
new
Tag
(
name_59F
,
nameAddress
));
tags
.
add
(
new
Tag
(
name_59F
,
nameAddress
));
}
else
{
String
nameAddress
=
mx_to_mtPartyNameAndUnstructuredAddress
(
partyPath
);
tags
.
add
(
new
Tag
(
name
,
nameAddress
));
}
}
}
else
{
String
nameAddress
=
mx_to_mtPartyNameAndUnstructuredAddress
(
partyPath
);
tags
.
add
(
new
Tag
(
name
,
nameAddress
));
}
}
}
}
}
}
swiftCore/src/main/resources/swiftXml/camt10700101.xml
View file @
c2a1a717
...
@@ -67,10 +67,11 @@
...
@@ -67,10 +67,11 @@
</DrwrAgtAcct>
</DrwrAgtAcct>
<Pyee>
<Pyee>
<Nm>
EWQ
</Nm>
<Nm>
EWQ
</Nm>
<PstlAdr>
<!--59F-->
<Ctry>
OOOOO
</Ctry>
<!-- <PstlAdr>-->
<AdrLine>
PPPPPP
</AdrLine>
<!-- <Ctry>OOOOO</Ctry>-->
</PstlAdr>
<!-- <AdrLine>PPPPPP</AdrLine>-->
<!-- </PstlAdr>-->
</Pyee>
</Pyee>
</Chq>
</Chq>
</ChqPresntmntNtfctn>
</ChqPresntmntNtfctn>
...
...
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