|
|
|
@ -205,6 +205,9 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
|
total.put("wechat_charge", 0);
|
|
|
|
|
total.put("royalpay_charge", 0);
|
|
|
|
|
total.put("net_amount", 0);
|
|
|
|
|
total.put("total_charge", 0);
|
|
|
|
|
total.put("tax_amount", 0);
|
|
|
|
|
total.put("charge_cashback", 0);
|
|
|
|
|
|
|
|
|
|
List<JSONObject> details = new ArrayList<>();
|
|
|
|
|
for (JSONObject log : logs) {
|
|
|
|
@ -214,6 +217,9 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
|
addBigDecimal(total, log, "wechat_charge");
|
|
|
|
|
addBigDecimal(total, log, "royalpay_charge");
|
|
|
|
|
addBigDecimal(total, log, "net_amount");
|
|
|
|
|
addBigDecimal(total, log, "total_charge");
|
|
|
|
|
addBigDecimal(total, log, "charge_cashback");
|
|
|
|
|
addBigDecimal(total, log, "tax_amount");
|
|
|
|
|
int clearingId = log.getIntValue("clearing_id");
|
|
|
|
|
List<JSONObject> logDetails = clearingDetailMapper.listReportsOfSettlement(clearingId);
|
|
|
|
|
details.addAll(logDetails);
|
|
|
|
@ -226,6 +232,9 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
|
.map(detail -> detail.getBigDecimal("clearing_amount"))
|
|
|
|
|
.reduce(BigDecimal::add)
|
|
|
|
|
);
|
|
|
|
|
data.put("clients", logDetails.stream()
|
|
|
|
|
.filter(detail -> bank.equals(detail.getString("settle_bank")))
|
|
|
|
|
.count());
|
|
|
|
|
return data;
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
log.put("bank_statistics", bankStatistics);
|
|
|
|
|