Commit 85183640 by jianan

发佣检核统计总寿险经纪人人数

parent 31cf0c14
......@@ -596,7 +596,10 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
BigDecimal totalOrderPrice = BigDecimal.ZERO;
BigDecimal totalReferralAmount = BigDecimal.ZERO;
List<Long> orderIdList = new ArrayList<>();
Set<String> nameSet = new HashSet<>();
for (CommissionPayoutStatus commissionPayoutStatus : commissionPayoutStatusList) {
nameSet.add(commissionPayoutStatus.getPractitionerName());
Long orderId = commissionPayoutStatus.getOrderId();
totalReferralAmount = totalReferralAmount.add(commissionPayoutStatus.getReferralAmount() == null ? BigDecimal.ZERO : commissionPayoutStatus.getReferralAmount());
if (orderIdList.contains(orderId)){
......@@ -606,6 +609,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
++totalSingular;
totalOrderPrice = totalOrderPrice.add(commissionPayoutStatus.getOrderPrice() == null ? BigDecimal.ZERO : commissionPayoutStatus.getOrderPrice());
}
responseVO.setLifePractitionerCount(nameSet.size());
responseVO.setTotalSingular(totalSingular);
responseVO.setTotalOrderPrice(totalOrderPrice);
responseVO.setTotalReferralAmount(totalReferralAmount);
......
......@@ -26,6 +26,11 @@ public class CommissionPayoutStatusQueryResponseVO {
* 应发金额总额
*/
private BigDecimal totalReferralAmount;
/**
* 寿险经纪人数量
*/
private Integer lifePractitionerCount;
private CommonResult commonResult;
......
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