管理端首页修改
This commit is contained in:
parent
e480d521ef
commit
06e6109018
@ -96,7 +96,12 @@ public class SystemHomePageServiceImpl implements SystemHomePageService {
|
|||||||
signPatientCount.setTime(localDate);
|
signPatientCount.setTime(localDate);
|
||||||
signPatientCount.setPatientCount(createPatientCount + patientPreHospitalizationCount);
|
signPatientCount.setPatientCount(createPatientCount + patientPreHospitalizationCount);
|
||||||
signPatientCount.setSignPatientCount(signPatient);
|
signPatientCount.setSignPatientCount(signPatient);
|
||||||
signPatientCount.setProportion(new BigDecimal(i).divide(new BigDecimal(createPatientCount), 2, RoundingMode.HALF_UP));
|
//除法运算
|
||||||
|
if (createPatientCount != 0) {
|
||||||
|
signPatientCount.setProportion(new BigDecimal(i).divide(new BigDecimal(createPatientCount), 2, RoundingMode.HALF_UP));
|
||||||
|
} else {
|
||||||
|
signPatientCount.setProportion(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
signPatientCounts.add(signPatientCount);
|
signPatientCounts.add(signPatientCount);
|
||||||
}
|
}
|
||||||
return signPatientCounts;
|
return signPatientCounts;
|
||||||
@ -120,10 +125,18 @@ public class SystemHomePageServiceImpl implements SystemHomePageService {
|
|||||||
BigDecimal appletPushSign = signPatientManageRouteNodeMapper.selectNodeCount(null, null, 0L);
|
BigDecimal appletPushSign = signPatientManageRouteNodeMapper.selectNodeCount(null, null, 0L);
|
||||||
//全部
|
//全部
|
||||||
BigDecimal all = common.add(AI).add(messagePushSign).add(appletPushSign);
|
BigDecimal all = common.add(AI).add(messagePushSign).add(appletPushSign);
|
||||||
serviceModeStatisticsList.add(new ServiceModeStatistics("AI", AI.divide(all, 2, RoundingMode.HALF_UP), AI));
|
//除法运算
|
||||||
serviceModeStatisticsList.add(new ServiceModeStatistics("短信", messagePushSign.divide(all, 2, RoundingMode.HALF_UP), messagePushSign));
|
if (all.equals(BigDecimal.ZERO)) {
|
||||||
serviceModeStatisticsList.add(new ServiceModeStatistics("微信", appletPushSign.divide(all, 2, RoundingMode.HALF_UP), appletPushSign));
|
serviceModeStatisticsList.add(new ServiceModeStatistics("AI", BigDecimal.ZERO, AI));
|
||||||
serviceModeStatisticsList.add(new ServiceModeStatistics("人工随访", common.divide(all, 2, RoundingMode.HALF_UP), common));
|
serviceModeStatisticsList.add(new ServiceModeStatistics("短信", BigDecimal.ZERO, messagePushSign));
|
||||||
|
serviceModeStatisticsList.add(new ServiceModeStatistics("微信", BigDecimal.ZERO, appletPushSign));
|
||||||
|
serviceModeStatisticsList.add(new ServiceModeStatistics("人工随访", BigDecimal.ZERO, common));
|
||||||
|
} else {
|
||||||
|
serviceModeStatisticsList.add(new ServiceModeStatistics("AI", AI.divide(all, 2, RoundingMode.HALF_UP), AI));
|
||||||
|
serviceModeStatisticsList.add(new ServiceModeStatistics("短信", messagePushSign.divide(all, 2, RoundingMode.HALF_UP), messagePushSign));
|
||||||
|
serviceModeStatisticsList.add(new ServiceModeStatistics("微信", appletPushSign.divide(all, 2, RoundingMode.HALF_UP), appletPushSign));
|
||||||
|
serviceModeStatisticsList.add(new ServiceModeStatistics("人工随访", common.divide(all, 2, RoundingMode.HALF_UP), common));
|
||||||
|
}
|
||||||
return serviceModeStatisticsList;
|
return serviceModeStatisticsList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user