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
fb14b1af
Commit
fb14b1af
authored
Jun 19, 2022
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改mx转mt biccode的逻辑
parent
904a5834
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
Mx2MtConstants.java
...n/java/com/brilliance/swift/constants/Mx2MtConstants.java
+2
-2
AbstractMx2MtCreator.java
...java/com/brilliance/swift/mx2mt/AbstractMx2MtCreator.java
+2
-4
No files found.
swiftCore/src/main/java/com/brilliance/swift/constants/Mx2MtConstants.java
View file @
fb14b1af
...
...
@@ -2,9 +2,9 @@ package com.brilliance.swift.constants;
public
class
Mx2MtConstants
{
public
static
final
String
BICSUFFIX
=
"
A
XXX"
;
public
static
final
String
BICSUFFIX
=
"
X
XXX"
;
public
static
final
String
BICMIDDLE
=
"
A
"
;
public
static
final
String
BICMIDDLE
=
"
X
"
;
public
static
final
String
DRCRMARK_C
=
"C"
;
...
...
swiftCore/src/main/java/com/brilliance/swift/mx2mt/AbstractMx2MtCreator.java
View file @
fb14b1af
...
...
@@ -52,11 +52,9 @@ public abstract class AbstractMx2MtCreator implements Mx2MtCreator {
String
processedBicCode
=
""
;
if
(!
StringUtil
.
isEmpty
(
bicCode
))
{
if
(
bicCode
.
length
()
==
8
)
{
//processedBicCode = bicCode + Mx2MtConstants.BICSUFFIX;
processedBicCode
=
bicCode
+
"XXXX"
;
processedBicCode
=
bicCode
+
Mx2MtConstants
.
BICSUFFIX
;
}
else
if
(
bicCode
.
length
()
==
11
)
{
//processedBicCode = bicCode.substring(0, 8) + Mx2MtConstants.BICMIDDLE + bicCode.substring(8);
processedBicCode
=
bicCode
.
substring
(
0
,
8
)
+
"X"
+
bicCode
.
substring
(
8
);
processedBicCode
=
bicCode
.
substring
(
0
,
8
)
+
Mx2MtConstants
.
BICMIDDLE
+
bicCode
.
substring
(
8
);
}
else
{
throw
new
SwiftException
(
"ERROR"
,
"BicCode length is invalid."
);
}
...
...
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