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
95de107f
Commit
95de107f
authored
Apr 02, 2022
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化mx2mt日志代码
parent
f71ed19e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
9 deletions
+16
-9
.gitignore
.gitignore
+2
-0
Mx2Mt900910Creator.java
...oftware/brilliance/mx2mt/mt900910/Mx2Mt900910Creator.java
+4
-3
Field72Generate.java
...tware/brilliance/mx2mt/mt900910/impl/Field72Generate.java
+3
-2
Mx2Mt950Creator.java
...desoftware/brilliance/mx2mt/mt940950/Mx2Mt950Creator.java
+5
-4
Field64Generate.java
...tware/brilliance/mx2mt/mt940950/impl/Field64Generate.java
+2
-0
No files found.
.gitignore
0 → 100644
View file @
95de107f
/target/
\ No newline at end of file
src/main/java/com/prowidesoftware/brilliance/mx2mt/mt900910/Mx2Mt900910Creator.java
View file @
95de107f
...
...
@@ -45,11 +45,12 @@ public class Mx2Mt900910Creator extends AbstractMx2MtCreator {
}
validate
();
map
.
forEach
((
key
,
value
)->{
logger
.
info
(
key
+
"-"
+
value
);
if
(!
Mx2MtConstants
.
MX_OBJECT
.
equals
(
key
))
{
logger
.
info
(
key
+
"-"
+
value
);
}
});
String
outPutFilePath
=
(
String
)
map
.
get
(
Mx2MtConstants
.
OUT_PUT_FILE_PATH
);
String
msg
=
TemplateUtil
.
makeFileByTemplate
(
"swift_mt_900_910.vm"
,
map
,
outPutFilePath
,
"utf-8"
);
return
msg
;
return
TemplateUtil
.
makeFileByTemplate
(
"swift_mt_900_910.vm"
,
map
,
outPutFilePath
,
"utf-8"
);
}
public
void
validate
()
{
...
...
src/main/java/com/prowidesoftware/brilliance/mx2mt/mt900910/impl/Field72Generate.java
View file @
95de107f
...
...
@@ -19,15 +19,16 @@ public class Field72Generate extends AbstractMx2MtFieldsGenerate {
public
void
fieldsGenerate
()
throws
SwiftException
{
logger
.
info
(
"Field72Generate start."
);
try
{
String
field72
=
""
;
EntryTransaction2
txDtls
=
getEntryTransaction2
();
if
(
txDtls
!=
null
)
{
String
addtLtxnInf
=
txDtls
.
getAddtlTxInf
();
if
(
StringUtil
.
isNotEmpty
(
addtLtxnInf
))
{
logger
.
info
(
addtLtxnInf
);
String
field72
=
StringUtil
.
getStringByEnter
(
addtLtxnInf
,
35
,
6
);
map
.
put
(
"field72"
,
field72
);
field72
=
StringUtil
.
getStringByEnter
(
addtLtxnInf
,
35
,
6
);
}
}
map
.
put
(
"field72"
,
field72
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
());
throw
new
SwiftException
(
"ERROR"
,
"Convert MT900/910 Field56a error"
);
...
...
src/main/java/com/prowidesoftware/brilliance/mx2mt/mt940950/Mx2Mt950Creator.java
View file @
95de107f
...
...
@@ -66,8 +66,10 @@ public class Mx2Mt950Creator extends AbstractMx2MtCreator {
&&
mxCamt05300102
.
getBkToCstmrStmt
().
getGrpHdr
()
!=
null
)
{
generateCommonField
(
mxCamt05300102
.
getBkToCstmrStmt
().
getGrpHdr
());
}
map
.
forEach
((
key
,
value
)
->
{
logger
.
info
(
key
+
"-"
+
value
);
map
.
forEach
((
key
,
value
)
->
{
if
(!
Mx2MtConstants
.
MX_OBJECT
.
equals
(
key
))
{
logger
.
info
(
key
+
"-"
+
value
);
}
});
String
outPutFilePath
=
(
String
)
map
.
get
(
Mx2MtConstants
.
OUT_PUT_FILE_PATH
);
String
template
;
...
...
@@ -76,8 +78,7 @@ public class Mx2Mt950Creator extends AbstractMx2MtCreator {
else
template
=
"swift_mt_950.vm"
;
String
msg
=
TemplateUtil
.
makeFileByTemplate
(
template
,
map
,
outPutFilePath
,
"utf-8"
);
return
msg
;
return
TemplateUtil
.
makeFileByTemplate
(
template
,
map
,
outPutFilePath
,
"utf-8"
);
}
/**
...
...
src/main/java/com/prowidesoftware/brilliance/mx2mt/mt940950/impl/Field64Generate.java
View file @
95de107f
...
...
@@ -73,6 +73,8 @@ public class Field64Generate extends AbstractMx2MtFieldsGenerate{
}
String
filed64
=
crdr
+
dateStr
+
ccy
+
amtStr
;
map
.
put
(
"field64"
,
filed64
);
}
else
{
map
.
put
(
"field64"
,
""
);
}
}
}
catch
(
Exception
e
)
{
...
...
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