空值校验
This commit is contained in:
@@ -89,9 +89,9 @@ public class MkDistributionUserServiceImpl extends ServiceImpl<MkDistributionUse
|
||||
DistributionCenterTopVO centerTopVO = getObjAs(totalIncomeSumQueryWrapper, DistributionCenterTopVO.class);
|
||||
// 封装顶部收益数据
|
||||
Map<String, Object> result = new HashMap<>(5);
|
||||
result.put("totalIncome", centerTopVO.getTotalIncome());
|
||||
result.put("pendingIncome", centerTopVO.getPendingIncome());
|
||||
result.put("cashOutAmount", centerTopVO.getUnCashOutAmount());
|
||||
result.put("totalIncome", centerTopVO == null ? BigDecimal.ZERO : centerTopVO.getTotalIncome());
|
||||
result.put("pendingIncome", centerTopVO == null ? BigDecimal.ZERO : centerTopVO.getPendingIncome());
|
||||
result.put("cashOutAmount", centerTopVO == null ? BigDecimal.ZERO : centerTopVO.getUnCashOutAmount());
|
||||
|
||||
result.put("activates", activates(userId, 1, 5));
|
||||
result.put("unActivates", unActivates(userId, 1, 3));
|
||||
|
||||
Reference in New Issue
Block a user