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
bde9deed
Commit
bde9deed
authored
Aug 22, 2022
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复代码
parent
846d4656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Field61Generate.java
...brilliance/swift/mx2mt/mt940950/impl/Field61Generate.java
+6
-0
No files found.
swiftCore/src/main/java/com/brilliance/swift/mx2mt/mt940950/impl/Field61Generate.java
View file @
bde9deed
...
...
@@ -47,11 +47,17 @@ public class Field61Generate extends AbstractMx2MtTagsGenerate {
for
(
int
i
=
0
;
i
<
entryCount
;
i
++)
{
String
value
=
""
;
String
valueDateStr
=
getXmlNodeValue
(
bodyHdrParentElementName
,
document
,
"Stmt.Ntry("
+
i
+
").ValDt.Dt"
);
if
(
StringUtil
.
isEmpty
(
valueDateStr
))
{
valueDateStr
=
getXmlNodeValue
(
bodyHdrParentElementName
,
document
,
"Stmt.Ntry("
+
i
+
").ValDt.DtTm"
);
}
if
(
StringUtil
.
isNotEmpty
(
valueDateStr
))
{
XMLGregorianCalendar
valueDate
=
DatatypeFactory
.
newInstance
().
newXMLGregorianCalendar
(
valueDateStr
);
value
+=
DateUtil
.
format
(
valueDate
,
"yyMMdd"
);
}
String
bookDateStr
=
getXmlNodeValue
(
bodyHdrParentElementName
,
document
,
"Stmt.Ntry("
+
i
+
").BookgDt.Dt"
);
if
(
StringUtil
.
isEmpty
(
bookDateStr
))
{
bookDateStr
=
getXmlNodeValue
(
bodyHdrParentElementName
,
document
,
"Stmt.Ntry("
+
i
+
").BookgDt.DtTm"
);
}
if
(
StringUtil
.
isNotEmpty
(
bookDateStr
))
{
XMLGregorianCalendar
bookDate
=
DatatypeFactory
.
newInstance
().
newXMLGregorianCalendar
(
bookDateStr
);
value
+=
DateUtil
.
format
(
bookDate
,
"MMdd"
);
...
...
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