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
c4da6a98
Commit
c4da6a98
authored
Sep 27, 2024
by
lixinyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
金额处理修改
parent
9e53a111
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
SwiftTransfer.java
...ore/src/main/java/com/brilliance/swift/SwiftTransfer.java
+9
-1
No files found.
swiftCore/src/main/java/com/brilliance/swift/SwiftTransfer.java
View file @
c4da6a98
...
...
@@ -20,6 +20,7 @@ import org.dom4j.DocumentHelper;
import
java.io.File
;
import
java.io.IOException
;
import
java.math.BigDecimal
;
import
java.util.Map
;
import
java.util.Optional
;
import
java.util.regex.Matcher
;
...
...
@@ -345,7 +346,14 @@ public class SwiftTransfer {
}
public
static
Map
<
String
,
Object
>
mx2ElementMaps
(
String
xmlStr
)
{
return
new
Mx2ElementCreatorManager
().
mx2ElementMaps
(
xmlStr
);
Map
<
String
,
Object
>
map
=
new
Mx2ElementCreatorManager
().
mx2ElementMaps
(
xmlStr
);
for
(
Map
.
Entry
<
String
,
Object
>
entry
:
map
.
entrySet
()){
if
(
entry
.
getKey
().
contains
(
"Amt"
)&&!
entry
.
getKey
().
contains
(
"Ccy"
)){
BigDecimal
amt
=
(
BigDecimal
)
entry
.
getValue
();
entry
.
setValue
(
amt
.
toPlainString
());
}
}
return
map
;
}
/**
...
...
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