|
@@ -343,10 +343,19 @@ public class DeptBalanceServiceImpl implements DeptBalanceService {
|
|
|
BigDecimal sxAmount =BigDecimal.ZERO;
|
|
BigDecimal sxAmount =BigDecimal.ZERO;
|
|
|
//未提现
|
|
//未提现
|
|
|
BigDecimal wtxAmount =BigDecimal.ZERO;
|
|
BigDecimal wtxAmount =BigDecimal.ZERO;
|
|
|
|
|
+
|
|
|
MySumAmountQueryDto mySumAmountQueryDto = new MySumAmountQueryDto();
|
|
MySumAmountQueryDto mySumAmountQueryDto = new MySumAmountQueryDto();
|
|
|
|
|
+
|
|
|
|
|
+ if ("21".equals(record.getRoleId()) && "1".equals(record.getManagementSource())) {
|
|
|
|
|
+ mySumAmountQueryDto.setDeptId(record.getDeptId());
|
|
|
|
|
+ }
|
|
|
//如果是电销组长,将组员的数据算进来
|
|
//如果是电销组长,将组员的数据算进来
|
|
|
if ("72".equals(record.getRoleId()) && "3".equals(record.getManagementSource())) {
|
|
if ("72".equals(record.getRoleId()) && "3".equals(record.getManagementSource())) {
|
|
|
mySumAmountQueryDto.setGroupFlag(true);
|
|
mySumAmountQueryDto.setGroupFlag(true);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ //如果是电销组长,将组员的数据算进来
|
|
|
|
|
+ mySumAmountQueryDto.setGroupFlag(true);
|
|
|
List<String> userList = sysUserService.getGroupByUserId(userId);
|
|
List<String> userList = sysUserService.getGroupByUserId(userId);
|
|
|
//sumAmount= deptBalanceMapper.getDxWalletAgentAmount(userList,deptBalanceVo.getBeginDate(),deptBalanceVo.getEndDate());
|
|
//sumAmount= deptBalanceMapper.getDxWalletAgentAmount(userList,deptBalanceVo.getBeginDate(),deptBalanceVo.getEndDate());
|
|
|
SysUserAccount sysUserAccountEntity = sysUserAccountService.getById(record.getUserId());
|
|
SysUserAccount sysUserAccountEntity = sysUserAccountService.getById(record.getUserId());
|
|
@@ -358,7 +367,6 @@ public class DeptBalanceServiceImpl implements DeptBalanceService {
|
|
|
wtxAmount= (sysUserAccountEntity==null || sysUserAccountEntity.getSumAmount()==null)?BigDecimal.ZERO:sysUserAccountEntity.getSumAmount();
|
|
wtxAmount= (sysUserAccountEntity==null || sysUserAccountEntity.getSumAmount()==null)?BigDecimal.ZERO:sysUserAccountEntity.getSumAmount();
|
|
|
//总的 = 已提现金额+ 可提现金额 + 提现中
|
|
//总的 = 已提现金额+ 可提现金额 + 提现中
|
|
|
sumAmount = wtxAmount.add(sxAmount).add(ytxAmount);
|
|
sumAmount = wtxAmount.add(sxAmount).add(ytxAmount);
|
|
|
- }
|
|
|
|
|
record.setWithdrawn(ytxAmount);
|
|
record.setWithdrawn(ytxAmount);
|
|
|
record.setNotWithdrawn(wtxAmount);
|
|
record.setNotWithdrawn(wtxAmount);
|
|
|
record.setTotalIncome(sumAmount);
|
|
record.setTotalIncome(sumAmount);
|