解决结算账户数据显示的bug
This commit is contained in:
@@ -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]));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user