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
3f19e221
Commit
3f19e221
authored
Aug 29, 2023
by
gechengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化mt COV报文转mx时MtType没有cov的情况
parent
ce33ee2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
Mt2MxCreatorManager.java
.../java/com/brilliance/swift/mt2mx/Mt2MxCreatorManager.java
+6
-1
Mt2MxTest.java
swiftCore/src/test/java/com/brilliance/Mt2MxTest.java
+5
-0
No files found.
swiftCore/src/main/java/com/brilliance/swift/mt2mx/Mt2MxCreatorManager.java
View file @
3f19e221
...
...
@@ -50,8 +50,13 @@ public class Mt2MxCreatorManager {
}
creator
.
postProcess
();
SwiftTranslationReport
str
=
context
.
get
(
SwiftTranslationReport
.
class
);
//设置报文MT类型 modified by gechengyang 20230829
String
covStr
=
""
;
if
(
abstractMT
!=
null
){
str
.
setMtType
(
abstractMT
.
getMessageType
());
if
(
abstractMT
.
getSwiftMessage
().
isCOV
()){
covStr
=
"COV"
;
}
str
.
setMtType
(
abstractMT
.
getMessageType
()+
covStr
);
}
return
str
;
}
...
...
swiftCore/src/test/java/com/brilliance/Mt2MxTest.java
View file @
3f19e221
...
...
@@ -92,6 +92,11 @@ public class Mt2MxTest {
}
@Test
public
void
testPacs009001_COV
()
{
test
(
"/swiftTxt/MT202_COV.txt"
,
null
);
}
@Test
public
void
testPacs009001_tag72
()
{
test
(
"/swiftTxt/MT202_tag72.txt"
,
null
);
}
...
...
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