|
@ -1857,15 +1857,19 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
List<UserChartResultDTO> list = baseDao.userChart(formDTO.getOrgId(), formDTO.getOrgType(), formDTO.getAgencyIdList(), formDTO.getGridIdList()); |
|
|
List<UserChartResultDTO> list = baseDao.userChart(formDTO.getOrgId(), formDTO.getOrgType(), formDTO.getAgencyIdList(), formDTO.getGridIdList()); |
|
|
//3.汇总数据
|
|
|
//3.汇总数据
|
|
|
AtomicInteger userTotal = new AtomicInteger(); |
|
|
AtomicInteger userTotal = new AtomicInteger(); |
|
|
|
|
|
AtomicInteger czUserTotal = new AtomicInteger(); |
|
|
|
|
|
AtomicInteger ldUserTotal = new AtomicInteger(); |
|
|
list.forEach(l -> { |
|
|
list.forEach(l -> { |
|
|
userTotal.addAndGet(l.getNum()); |
|
|
userTotal.addAndGet(l.getNum()); |
|
|
if ("0".equals(l.getIsFloating())) { |
|
|
if ("0".equals(l.getIsFloating())) { |
|
|
resultDTO.setCzUserTotal(l.getNum()); |
|
|
czUserTotal.addAndGet(l.getNum()); |
|
|
} else { |
|
|
} else { |
|
|
resultDTO.setLdUserTotal(l.getNum()); |
|
|
ldUserTotal.addAndGet(l.getNum()); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
resultDTO.setUserTotal(userTotal.get()); |
|
|
resultDTO.setUserTotal(userTotal.get()); |
|
|
|
|
|
resultDTO.setCzUserTotal(czUserTotal.get()); |
|
|
|
|
|
resultDTO.setLdUserTotal(ldUserTotal.get()); |
|
|
resultDTO.setCzUserRatio(Double.valueOf((resultDTO.getUserTotal() == 0 || resultDTO.getCzUserTotal() > resultDTO.getUserTotal()) ? "0" : numberFormat.format(((float) resultDTO.getCzUserTotal() / (float) resultDTO.getUserTotal()) * 100))); |
|
|
resultDTO.setCzUserRatio(Double.valueOf((resultDTO.getUserTotal() == 0 || resultDTO.getCzUserTotal() > resultDTO.getUserTotal()) ? "0" : numberFormat.format(((float) resultDTO.getCzUserTotal() / (float) resultDTO.getUserTotal()) * 100))); |
|
|
resultDTO.setLdUserRatio(Double.valueOf((resultDTO.getUserTotal() == 0 || resultDTO.getLdUserTotal() > resultDTO.getUserTotal()) ? "0" : numberFormat.format(((float) resultDTO.getLdUserTotal() / (float) resultDTO.getUserTotal()) * 100))); |
|
|
resultDTO.setLdUserRatio(Double.valueOf((resultDTO.getUserTotal() == 0 || resultDTO.getLdUserTotal() > resultDTO.getUserTotal()) ? "0" : numberFormat.format(((float) resultDTO.getLdUserTotal() / (float) resultDTO.getUserTotal()) * 100))); |
|
|
resultDTO.setOrgId(formDTO.getOrgId()); |
|
|
resultDTO.setOrgId(formDTO.getOrgId()); |
|
|