|
|
|
@ -166,10 +166,21 @@ public class EstimateAnalysisServiceImpl implements EstimateAnalysisService {
|
|
|
|
|
} else {
|
|
|
|
|
dayInfo.put("t1", 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<JSONObject> hfSettle = platformSettlementMapper.findBySettleDate(new Date(estimateAnalysisMapper.findLastCleanDays(end_date, 1).getDate("date_str").getTime()), "hf");
|
|
|
|
|
if (hfSettle !=null && hfSettle.size()>0) {
|
|
|
|
|
for (JSONObject logs : hfSettle) {
|
|
|
|
|
dayInfo.put("hfSettleFee_" + logs.getString("merchants"), logs.getBigDecimal("settlement_fee"));
|
|
|
|
|
dayInfo.put("platformGetSettleFee",dayInfo.getBigDecimal("hfSettleFee_" + logs.getString("merchants")));
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
dayInfo.put("platformGetSettleFee",BigDecimal.ZERO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<JSONObject> alipaySettleLogs = platformSettlementMapper.findBySettleDate(new Date(estimateAnalysisMapper.findLastCleanDays(end_date, 1).getDate("date_str").getTime()), "Alipay");
|
|
|
|
|
for (JSONObject logs : alipaySettleLogs) {
|
|
|
|
|
dayInfo.put("aliSettleFee_" + logs.getString("merchants"), logs.getBigDecimal("settlement_fee"));
|
|
|
|
|
dayInfo.put("platformGetSettleFee",dayInfo.getBigDecimal("aliSettleFee_" + logs.getString("merchants")));
|
|
|
|
|
dayInfo.put("platformGetSettleFee",dayInfo.getBigDecimal("platformGetSettleFee").add(dayInfo.getBigDecimal("aliSettleFee_" + logs.getString("merchants"))));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<JSONObject> alipayOnlineSettleLogs = platformSettlementMapper.findBySettleDate(new Date(estimateAnalysisMapper.findLastCleanDays(end_date, 1).getDate("date_str").getTime()), "AlipayOnline");
|
|
|
|
|