Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
05dbdf89
Commit
05dbdf89
authored
Feb 18, 2020
by
季圣华
Browse files
解决结算账户数据显示的bug
parent
c33c9a52
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/account/AccountService.java
View file @
05dbdf89
...
...
@@ -388,13 +388,17 @@ public class AccountService {
for
(
DepotHead
depotHead
:
dataList
)
{
String
accountIdList
=
depotHead
.
getAccountidlist
();
String
accountMoneyList
=
depotHead
.
getAccountmoneylist
();
accountIdList
=
accountIdList
.
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replace
(
"\""
,
""
);
accountMoneyList
=
accountMoneyList
.
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replace
(
"\""
,
""
);
String
[]
aList
=
accountIdList
.
split
(
","
);
String
[]
amList
=
accountMoneyList
.
split
(
","
);
for
(
int
i
=
0
;
i
<
aList
.
length
;
i
++)
{
if
(
aList
[
i
].
toString
().
equals
(
id
.
toString
()))
{
accountSum
=
accountSum
.
add
(
new
BigDecimal
(
amList
[
i
]));
if
(
StringUtil
.
isNotEmpty
(
accountIdList
)
&&
StringUtil
.
isNotEmpty
(
accountMoneyList
))
{
accountIdList
=
accountIdList
.
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replace
(
"\""
,
""
);
accountMoneyList
=
accountMoneyList
.
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replace
(
"\""
,
""
);
String
[]
aList
=
accountIdList
.
split
(
","
);
String
[]
amList
=
accountMoneyList
.
split
(
","
);
for
(
int
i
=
0
;
i
<
aList
.
length
;
i
++)
{
if
(
aList
[
i
].
toString
().
equals
(
id
.
toString
()))
{
if
(
amList
!=
null
&&
amList
.
length
>
0
)
{
accountSum
=
accountSum
.
add
(
new
BigDecimal
(
amList
[
i
]));
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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