Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-core
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
isc-core
Commits
76f905e1
Commit
76f905e1
authored
Oct 12, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整截取方式
parent
2beb1ed5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
Utils.java
...e/src/main/java/com/brilliance/isc/common/util/Utils.java
+8
-7
No files found.
isc-common-service/src/main/java/com/brilliance/isc/common/util/Utils.java
View file @
76f905e1
...
...
@@ -141,7 +141,8 @@ public class Utils {
// 根据选择的账户类型返回账户类型代码
//
// -----------------------------
String
dsp
=
type
.
substring
(
0
,
2
);
// String dsp = type.substring(0, 2);
String
dsp
=
Strings
.
mid
(
type
,
0
,
2
);
if
(
MdaUtils
.
compareTo
(
dsp
,
"PA"
)
==
0
)
{
dsp
=
"SP"
;
}
...
...
@@ -626,8 +627,8 @@ public class Utils {
return
amtStr
.
replace
(
pointSuffiex
,
","
);
}
else
{
// JPY1300 -> JPY1300,
if
(
amtStr
.
indexOf
(
"."
)
==
-
1
){
return
amtStr
+
","
;
if
(
amtStr
.
indexOf
(
"."
)
==
-
1
)
{
return
amtStr
+
","
;
}
else
{
return
amtStr
.
replace
(
"."
,
","
);
//like 1000.01 -> 1000,01
}
...
...
@@ -660,7 +661,7 @@ public class Utils {
//! Corresponding functions: AddExtensionToName, AddNodeToPath, GetLastNode, Basename (TradeDesign function), GetFileExtension, GetNormalizedNodename
// search for a backslash starting at the end
String
chr
=
NULLSTR
;
for
(
int
idx
=
Strings
.
len
(
argPth
);
idx
>=
1
;
idx
--)
{
for
(
int
idx
=
Strings
.
len
(
argPth
);
idx
>=
1
;
idx
--)
{
chr
=
Strings
.
mid
(
argPth
,
idx
,
1
);
if
(
MdaUtils
.
compareTo
(
chr
,
"\\"
)
==
0
||
MdaUtils
.
compareTo
(
chr
,
"/"
)
==
0
)
{
if
(
idx
>
1
)
{
...
...
@@ -1236,10 +1237,10 @@ public class Utils {
field
.
setAccessible
(
true
);
if
(
idx
>
0
)
{
Object
subObject
=
field
.
get
(
object
);
if
(
subObject
instanceof
Collection
)
{
if
(
subObject
instanceof
Collection
)
{
subObject
=
CollectionUtils
.
get
(
subObject
,
0
);
}
else
if
(
subObject
instanceof
Object
[])
{
subObject
=
Array
.
get
(
subObject
,
0
);
}
else
if
(
subObject
instanceof
Object
[])
{
subObject
=
Array
.
get
(
subObject
,
0
);
}
return
getTargetFieldByPath
(
subObject
,
path
.
substring
(
idx
+
1
));
}
else
{
...
...
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