|
@@ -388,15 +388,6 @@ public class DeptBalanceServiceImpl implements DeptBalanceService {
|
|
|
mySumAmountQueryDto.setGroupFlag(true);
|
|
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);
|
|
mySumAmountQueryDto.setGroupFlag(true);
|
|
|
List<String> userList = sysUserService.getGroupByUserId(userId);
|
|
List<String> userList = sysUserService.getGroupByUserId(userId);
|
|
@@ -408,6 +399,15 @@ public class DeptBalanceServiceImpl implements DeptBalanceService {
|
|
|
sxAmount = insFeeOrderNewService.findMyAmountYTXmountByDates(record.getUserId(), "2",true,deptBalanceVo.getBeginDate(),deptBalanceVo.getEndDate());
|
|
sxAmount = insFeeOrderNewService.findMyAmountYTXmountByDates(record.getUserId(), "2",true,deptBalanceVo.getBeginDate(),deptBalanceVo.getEndDate());
|
|
|
// 可提现
|
|
// 可提现
|
|
|
wtxAmount= (sysUserAccountEntity==null || sysUserAccountEntity.getSumAmount()==null)?BigDecimal.ZERO:sysUserAccountEntity.getSumAmount();
|
|
wtxAmount= (sysUserAccountEntity==null || sysUserAccountEntity.getSumAmount()==null)?BigDecimal.ZERO:sysUserAccountEntity.getSumAmount();
|
|
|
|
|
+
|
|
|
|
|
+ deptBalanceVo.setUserId(record.getUserId());
|
|
|
|
|
+ HashMap<String, BigDecimal> incomeIndication = deptBalanceMapper.getIncomeIndication(deptBalanceVo);
|
|
|
|
|
+
|
|
|
|
|
+ if(incomeIndication!=null){
|
|
|
|
|
+ record.setTotalIncome(incomeIndication.get("totalAmount"));
|
|
|
|
|
+ }else {
|
|
|
|
|
+ record.setTotalIncome(BigDecimal.ZERO);
|
|
|
|
|
+ }
|
|
|
//总的 = 已提现金额+ 可提现金额 + 提现中
|
|
//总的 = 已提现金额+ 可提现金额 + 提现中
|
|
|
sumAmount = wtxAmount.add(sxAmount).add(ytxAmount);
|
|
sumAmount = wtxAmount.add(sxAmount).add(ytxAmount);
|
|
|
record.setWithdrawn(ytxAmount);
|
|
record.setWithdrawn(ytxAmount);
|