|
@@ -407,14 +407,18 @@ public class DeptBalanceServiceImpl implements DeptBalanceService {
|
|
|
params.put("userId",record.getUserId());
|
|
params.put("userId",record.getUserId());
|
|
|
params.put("phoneNumber",deptBalanceVo.getPhoneNumber());
|
|
params.put("phoneNumber",deptBalanceVo.getPhoneNumber());
|
|
|
HashMap<String, BigDecimal> incomeIndication = deptBalanceMapper.getIncomeIndication(params);
|
|
HashMap<String, BigDecimal> incomeIndication = deptBalanceMapper.getIncomeIndication(params);
|
|
|
|
|
+ //总的 = 已提现金额+ 可提现金额 + 提现中
|
|
|
|
|
+ sumAmount = wtxAmount.add(sxAmount).add(ytxAmount);
|
|
|
|
|
|
|
|
- if(incomeIndication!=null){
|
|
|
|
|
- record.setTotalIncome(incomeIndication.get("totalAmount"));
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(deptBalanceVo.getBeginDate()) || StringUtils.isNotEmpty(deptBalanceVo.getEndDate())) {
|
|
|
|
|
+ if(incomeIndication!=null){
|
|
|
|
|
+ record.setTotalIncome(incomeIndication.get("totalAmount"));
|
|
|
|
|
+ }else {
|
|
|
|
|
+ record.setTotalIncome(BigDecimal.ZERO);
|
|
|
|
|
+ }
|
|
|
}else {
|
|
}else {
|
|
|
- record.setTotalIncome(BigDecimal.ZERO);
|
|
|
|
|
|
|
+ record.setTotalIncome(sumAmount);
|
|
|
}
|
|
}
|
|
|
- //总的 = 已提现金额+ 可提现金额 + 提现中
|
|
|
|
|
- sumAmount = wtxAmount.add(sxAmount).add(ytxAmount);
|
|
|
|
|
record.setWithdrawn(ytxAmount);
|
|
record.setWithdrawn(ytxAmount);
|
|
|
record.setNotWithdrawn(wtxAmount);
|
|
record.setNotWithdrawn(wtxAmount);
|
|
|
// record.setTotalIncome(sumAmount);
|
|
// record.setTotalIncome(sumAmount);
|
|
@@ -453,15 +457,14 @@ public class DeptBalanceServiceImpl implements DeptBalanceService {
|
|
|
HashMap<String, BigDecimal> incomeIndication = deptBalanceMapper.getIncomeIndication(params);
|
|
HashMap<String, BigDecimal> incomeIndication = deptBalanceMapper.getIncomeIndication(params);
|
|
|
record.setWithdrawn(ysTXAmount);
|
|
record.setWithdrawn(ysTXAmount);
|
|
|
record.setNotWithdrawn(ssKTAmount);
|
|
record.setNotWithdrawn(ssKTAmount);
|
|
|
- if(incomeIndication!=null){
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(deptBalanceVo.getBeginDate()) || StringUtils.isNotEmpty(deptBalanceVo.getEndDate())) {
|
|
|
|
|
+ if(incomeIndication!=null){
|
|
|
record.setTotalIncome(incomeIndication.get("totalAmount"));
|
|
record.setTotalIncome(incomeIndication.get("totalAmount"));
|
|
|
-// if(deptBalanceVo.getManagementSource().equals("2")){
|
|
|
|
|
-// record.setTotalIncome(incomeIndication.get("totalAmount"));
|
|
|
|
|
-// }else {
|
|
|
|
|
-// record.setTotalIncome(BigDecimalUtils.nullToZero(incomeIndication.get("totalAmount")).divide(new BigDecimal(10)));
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ }else {
|
|
|
|
|
+ record.setTotalIncome(BigDecimal.ZERO);
|
|
|
|
|
+ }
|
|
|
}else {
|
|
}else {
|
|
|
- record.setTotalIncome(BigDecimal.ZERO);
|
|
|
|
|
|
|
+ record.setTotalIncome(sumAmount);
|
|
|
}
|
|
}
|
|
|
record.setWithdrawingAmount(txzTXAmount);
|
|
record.setWithdrawingAmount(txzTXAmount);
|
|
|
}
|
|
}
|