|
|
|
@ -191,8 +191,8 @@ public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
|
|
|
|
// list
|
|
|
|
List<UserAccountBill> uacblist = userAccountBillMapper.getUserAccBill(uesrIsli,ipage,ilimit); |
|
|
|
BigDecimal income = new BigDecimal(0); // 收入
|
|
|
|
BigDecimal disburse = new BigDecimal(0); //支出
|
|
|
|
BigDecimal income = new BigDecimal(0.00); // 收入
|
|
|
|
BigDecimal disburse = new BigDecimal(0.00); //支出
|
|
|
|
|
|
|
|
List retlist =new ArrayList(); |
|
|
|
for(UserAccountBill uac:uacblist){ |
|
|
|
@ -200,7 +200,6 @@ public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
Map odumap =new HashMap(); |
|
|
|
OrderUser orderUser = orderUserMapper.getUserOrder(uac.getBatchcode(),uac.getUserIsli()); |
|
|
|
odumap.put("order_user",orderUser); |
|
|
|
retlist.add(odumap); |
|
|
|
|
|
|
|
//结算情况
|
|
|
|
Order order = orderMapper.getOrderByBatchcode(uac.getBatchcode()); |
|
|
|
@ -234,9 +233,10 @@ public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
|
|
|
|
//计算收支
|
|
|
|
Map osmap = new HashMap(); |
|
|
|
osmap.put("wherestr","buy_islicode="+uac.getUserIsli()+" and pay_status=2"); |
|
|
|
osmap.put("wherestr","buy_islicode='"+uac.getUserIsli()+"' and pay_status=2"); |
|
|
|
osmap.put("field","total_money"); |
|
|
|
income = orderMapper.sumOrderByMap(osmap); |
|
|
|
BigDecimal odtmpsum = orderMapper.sumOrderByMap(osmap); |
|
|
|
income = income.add(odtmpsum); |
|
|
|
|
|
|
|
//
|
|
|
|
retlist.add(odumap); |
|
|
|
@ -244,7 +244,7 @@ public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
|
|
|
|
retmap.put("income",income); |
|
|
|
retmap.put("disburse",disburse); |
|
|
|
retmap.put("data",uacblist); |
|
|
|
retmap.put("data",retlist); |
|
|
|
return retmap; |
|
|
|
} |
|
|
|
} |
|
|
|
|