|
|
@@ -102,6 +102,8 @@ public class AgentServiceImpl implements IAgentService {
|
|
|
return voList.stream().map(vo -> {
|
|
|
vo.setTotalStatisticsAmount(agentBalanceRecordService.sumStatistics(vo.getAgentId(), BillType.INNER, BalanceSourceType.USER_ORDER, null));
|
|
|
vo.setTotalStatisticsWithdrawalAmount(agentBalanceRecordService.sumStatistics(vo.getAgentId(), BillType.OUTER, BalanceSourceType.WITHDRAW, null));
|
|
|
+ //减去提现失败
|
|
|
+ vo.setTotalStatisticsWithdrawalAmount(vo.getTotalStatisticsWithdrawalAmount().subtract(agentBalanceRecordService.sumStatistics(vo.getAgentId(), BillType.INNER, BalanceSourceType.WITHDRAW_FAIL, null)));
|
|
|
vo.setSurplusAccountCode(agentAccountCodeService.sumSurplusAccountCode(vo.getAgentId(), Arrays.asList(AccountCodeStatus.UNUSED, AccountCodeStatus.WAIT_USE)));
|
|
|
vo.setPromotionBusinessNum(businessService.sumPromotionBusinessNum(vo.getAgentId()));
|
|
|
return vo;
|
|
|
@@ -354,6 +356,10 @@ public class AgentServiceImpl implements IAgentService {
|
|
|
bo.setBillType(BillType.OUTER);
|
|
|
bo.setSourceType(BalanceSourceType.WITHDRAW);
|
|
|
agentAmountStatisticsVo.setTotalStatisticsWithdrawalAmount(baseMapper.selectSumAmount(bo));
|
|
|
+ //减去提现失败
|
|
|
+ bo.setBillType(BillType.INNER);
|
|
|
+ bo.setSourceType(BalanceSourceType.WITHDRAW_FAIL);
|
|
|
+ agentAmountStatisticsVo.setTotalStatisticsWithdrawalAmount(agentAmountStatisticsVo.getTotalStatisticsWithdrawalAmount().subtract(baseMapper.selectSumAmount(bo)));
|
|
|
return agentAmountStatisticsVo;
|
|
|
}
|
|
|
|