"eladmin-system/src/main/vscode:/vscode.git/clone" did not exist on "ee33a54f7ff784b04149e7b911205d763020efe2"
Commit 05dbdf89 authored by 季圣华's avatar 季圣华
Browse files

解决结算账户数据显示的bug

parent c33c9a52
...@@ -388,13 +388,17 @@ public class AccountService { ...@@ -388,13 +388,17 @@ public class AccountService {
for (DepotHead depotHead : dataList) { for (DepotHead depotHead : dataList) {
String accountIdList = depotHead.getAccountidlist(); String accountIdList = depotHead.getAccountidlist();
String accountMoneyList = depotHead.getAccountmoneylist(); String accountMoneyList = depotHead.getAccountmoneylist();
accountIdList = accountIdList.replace("[", "").replace("]", "").replace("\"", ""); if(StringUtil.isNotEmpty(accountIdList) && StringUtil.isNotEmpty(accountMoneyList)) {
accountMoneyList = accountMoneyList.replace("[", "").replace("]", "").replace("\"", ""); accountIdList = accountIdList.replace("[", "").replace("]", "").replace("\"", "");
String[] aList = accountIdList.split(","); accountMoneyList = accountMoneyList.replace("[", "").replace("]", "").replace("\"", "");
String[] amList = accountMoneyList.split(","); String[] aList = accountIdList.split(",");
for (int i = 0; i < aList.length; i++) { String[] amList = accountMoneyList.split(",");
if (aList[i].toString().equals(id.toString())) { for (int i = 0; i < aList.length; i++) {
accountSum = accountSum .add(new BigDecimal(amList[i])); if (aList[i].toString().equals(id.toString())) {
if(amList!=null && amList.length>0) {
accountSum = accountSum.add(new BigDecimal(amList[i]));
}
}
} }
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment