Commit 3bafe133 by jianan

新单跟进84

parent 7eccbe02
...@@ -239,7 +239,10 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper, ...@@ -239,7 +239,10 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
@Override @Override
public FortuneAccountStatisticsVO getFortuneAccountStatistics(List<Long> fortuneAccountIdList) { public FortuneAccountStatisticsVO getFortuneAccountStatistics(List<Long> fortuneAccountIdList) {
if (CollectionUtils.isEmpty(fortuneAccountIdList)) { if (CollectionUtils.isEmpty(fortuneAccountIdList)) {
throw new BusinessException(ResultCode.NULL_ERROR.getCode(), "fortuneAccountIdList不能为空"); FortuneAccountStatisticsVO vo = new FortuneAccountStatisticsVO();
vo.setTotalAmount(BigDecimal.ZERO);
vo.setBrokerCount(0L);
return vo;
} }
// 统计总金额和总人数 // 统计总金额和总人数
......
...@@ -309,11 +309,14 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune> ...@@ -309,11 +309,14 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
@Override @Override
public FortuneStatisticsVO getFortuneStatistics(List<Long> fortuneIdList) { public FortuneStatisticsVO getFortuneStatistics(List<Long> fortuneIdList) {
if (CollectionUtils.isEmpty(fortuneIdList)) { if (CollectionUtils.isEmpty(fortuneIdList)) {
throw new BusinessException(ResultCode.PARAMS_ERROR.getCode(), "fortuneId列表不能为空"); FortuneStatisticsVO fortuneStatisticsVO = new FortuneStatisticsVO();
fortuneStatisticsVO.setTotalOutAmount(BigDecimal.ZERO);
fortuneStatisticsVO.setTotalInAmount(BigDecimal.ZERO);
fortuneStatisticsVO.setTotalPolicyCount(0L);
return fortuneStatisticsVO;
} }
// 自定义查询 // 自定义查询
FortuneStatisticsVO fortuneStatisticsVO = this.baseMapper.getFortuneStatistics(fortuneIdList); return this.baseMapper.getFortuneStatistics(fortuneIdList);
return fortuneStatisticsVO;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment