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
857a3d61
Commit
857a3d61
authored
Sep 15, 2022
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0822swift官网MX2MT更新-5
parent
b7b62617
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
AbstractMx2MtTagsGenerate.java
...com/brilliance/swift/mx2mt/AbstractMx2MtTagsGenerate.java
+10
-8
Field28CGenerate.java
...rilliance/swift/mx2mt/mt940950/impl/Field28CGenerate.java
+2
-2
No files found.
swiftCore/src/main/java/com/brilliance/swift/mx2mt/AbstractMx2MtTagsGenerate.java
View file @
857a3d61
...
@@ -388,15 +388,16 @@ public abstract class AbstractMx2MtTagsGenerate implements Mx2MtTagsGenerate {
...
@@ -388,15 +388,16 @@ public abstract class AbstractMx2MtTagsGenerate implements Mx2MtTagsGenerate {
int
addressRemainLine
=
3
;
//address剩余的行数
int
addressRemainLine
=
3
;
//address剩余的行数
if
(
mxName
.
length
()
>
35
)
addressRemainLine
=
2
;
if
(
mxName
.
length
()
>
35
)
addressRemainLine
=
2
;
String
mtNameAddress
=
StringUtil
.
getStringByEnter
(
mxName
,
35
,
4
-
addressRemainLine
);
String
mtNameAddress
=
StringUtil
.
getStringByEnter
(
mxName
,
35
,
4
-
addressRemainLine
);
String
mxAddress
=
""
;
if
(
addressLineCount
>
0
)
{
if
(
addressLineCount
>
0
)
{
for
(
int
i
=
0
;
i
<
addressLineCount
;
i
++)
{
for
(
int
i
=
0
;
i
<
addressLineCount
;
i
++)
{
if
(
i
==
addressRemainLine
)
break
;
if
(
i
==
addressRemainLine
)
break
;
mxAddress
+=
getXmlNodeValue
(
null
,
document
,
nameAddressPrefixPath
+
".PstlAdr.AdrLine("
+
i
+
")"
);
String
mxAddress
=
getXmlNodeValue
(
null
,
document
,
nameAddressPrefixPath
+
".PstlAdr.AdrLine("
+
i
+
")"
);
if
(
mxAddress
.
length
()
>
35
)
{
buildSTErrorInfo
(
12
,
null
,
mxAddress
);
mxAddress
=
mxAddress
.
substring
(
0
,
34
)
+
"+"
;
}
}
mtNameAddress
+=
Mx2MtConstants
.
NEW_LINE
+
mxAddress
;
}
}
if
(
mxAddress
.
length
()
>
0
)
{
mtNameAddress
+=
Mx2MtConstants
.
NEW_LINE
+
StringUtil
.
getStringByEnter
(
mxAddress
,
35
,
addressRemainLine
);
}
}
return
mtNameAddress
;
return
mtNameAddress
;
}
}
...
@@ -950,15 +951,16 @@ public abstract class AbstractMx2MtTagsGenerate implements Mx2MtTagsGenerate {
...
@@ -950,15 +951,16 @@ public abstract class AbstractMx2MtTagsGenerate implements Mx2MtTagsGenerate {
int
addressRemainLine
=
3
;
//address剩余的行数
int
addressRemainLine
=
3
;
//address剩余的行数
if
(
mxName
.
length
()
>
35
)
addressRemainLine
=
2
;
if
(
mxName
.
length
()
>
35
)
addressRemainLine
=
2
;
String
mtNameAddress
=
StringUtil
.
getStringByEnter
(
mxName
,
35
,
4
-
addressRemainLine
);
String
mtNameAddress
=
StringUtil
.
getStringByEnter
(
mxName
,
35
,
4
-
addressRemainLine
);
String
mxAddress
=
""
;
if
(
addressLineCount
>
0
)
{
if
(
addressLineCount
>
0
)
{
for
(
int
i
=
0
;
i
<
addressLineCount
;
i
++)
{
for
(
int
i
=
0
;
i
<
addressLineCount
;
i
++)
{
if
(
i
==
addressRemainLine
)
break
;
if
(
i
==
addressRemainLine
)
break
;
mxAddress
+=
getXmlNodeValue
(
null
,
document
,
nameAddressPrefixPath
+
".PstlAdr.AdrLine("
+
i
+
")"
);
String
mxAddress
=
getXmlNodeValue
(
null
,
document
,
nameAddressPrefixPath
+
".PstlAdr.AdrLine("
+
i
+
")"
);
if
(
mxAddress
.
length
()
>
35
)
{
buildSTErrorInfo
(
12
,
null
,
mxAddress
);
mxAddress
=
mxAddress
.
substring
(
0
,
34
)
+
"+"
;
}
}
mtNameAddress
+=
Mx2MtConstants
.
NEW_LINE
+
mxAddress
;
}
}
if
(
mxAddress
.
length
()
>
0
)
{
mtNameAddress
+=
Mx2MtConstants
.
NEW_LINE
+
StringUtil
.
getStringByEnter
(
mxAddress
,
35
,
addressRemainLine
);
}
}
return
mtNameAddress
;
return
mtNameAddress
;
}
}
...
...
swiftCore/src/main/java/com/brilliance/swift/mx2mt/mt940950/impl/Field28CGenerate.java
View file @
857a3d61
...
@@ -32,9 +32,9 @@ public class Field28CGenerate extends AbstractMx2MtTagsGenerate {
...
@@ -32,9 +32,9 @@ public class Field28CGenerate extends AbstractMx2MtTagsGenerate {
}
}
String
pageNumber
=
getXmlNodeValue
(
bodyHdrParentElementName
,
document
,
"Stmt.StmtPgntn.PgNb"
);
String
pageNumber
=
getXmlNodeValue
(
bodyHdrParentElementName
,
document
,
"Stmt.StmtPgntn.PgNb"
);
if
(
StringUtil
.
isNotEmpty
(
lglSeqNbStr
))
{
if
(
StringUtil
.
isNotEmpty
(
lglSeqNbStr
))
{
value
=
lglSeqNbStr
+
"/"
+
pageNumber
;
value
=
lglSeqNbStr
+
"/"
+
Integer
.
parseInt
(
pageNumber
)
;
}
else
{
}
else
{
value
=
elctrncSeqNbStr
+
"/"
+
pageNumber
;
value
=
elctrncSeqNbStr
+
"/"
+
Integer
.
parseInt
(
pageNumber
)
;
}
}
tags
.
add
(
new
Tag
(
name
,
value
));
tags
.
add
(
new
Tag
(
name
,
value
));
}
}
...
...
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