|
|
@@ -388,6 +388,15 @@ public class DeptBalanceServiceImpl implements DeptBalanceService {
|
|
|
mySumAmountQueryDto.setGroupFlag(true);
|
|
|
}
|
|
|
|
|
|
+ deptBalanceVo.setUserId(record.getUserId());
|
|
|
+ HashMap<String, BigDecimal> incomeIndication = deptBalanceMapper.getIncomeIndication(deptBalanceVo);
|
|
|
+
|
|
|
+ if(incomeIndication!=null){
|
|
|
+ record.setTotalIncome(incomeIndication.get("totalAmount"));
|
|
|
+ }else {
|
|
|
+ record.setTotalIncome(BigDecimal.ZERO);
|
|
|
+ }
|
|
|
+
|
|
|
//如果是电销组长,将组员的数据算进来
|
|
|
mySumAmountQueryDto.setGroupFlag(true);
|
|
|
List<String> userList = sysUserService.getGroupByUserId(userId);
|
|
|
@@ -403,7 +412,7 @@ public class DeptBalanceServiceImpl implements DeptBalanceService {
|
|
|
sumAmount = wtxAmount.add(sxAmount).add(ytxAmount);
|
|
|
record.setWithdrawn(ytxAmount);
|
|
|
record.setNotWithdrawn(wtxAmount);
|
|
|
- record.setTotalIncome(sumAmount);
|
|
|
+// record.setTotalIncome(sumAmount);
|
|
|
record.setWithdrawingAmount(sxAmount);
|
|
|
}
|
|
|
}
|