管理端首页修改
This commit is contained in:
parent
a55c23ef3f
commit
e480d521ef
@ -54,6 +54,8 @@ public class SystemHomePageServiceImpl implements SystemHomePageService {
|
|||||||
int patientPreHospitalizationCount = patientPreHospitalizationMapper.getPatientPreHospitalizationCountByCreateTime(firstDay, now);
|
int patientPreHospitalizationCount = patientPreHospitalizationMapper.getPatientPreHospitalizationCountByCreateTime(firstDay, now);
|
||||||
//本月患者数
|
//本月患者数
|
||||||
topStatisticsVO.setThisMonthPatient(createPatientCount + patientPreHospitalizationCount);
|
topStatisticsVO.setThisMonthPatient(createPatientCount + patientPreHospitalizationCount);
|
||||||
|
//本月本月出院患者数 统计门诊/出院的 患者数量
|
||||||
|
topStatisticsVO.setThisMonthDischargePatient(createPatientCount);
|
||||||
//本月签约数
|
//本月签约数
|
||||||
topStatisticsVO.setSignPatientCount(patientInfoMapper.selectPatientInfoCountBySignTime(firstDay, now));
|
topStatisticsVO.setSignPatientCount(patientInfoMapper.selectPatientInfoCountBySignTime(firstDay, now));
|
||||||
//本月任务数
|
//本月任务数
|
||||||
@ -87,9 +89,13 @@ public class SystemHomePageServiceImpl implements SystemHomePageService {
|
|||||||
LocalDate lastDay = localDate.with(TemporalAdjusters.lastDayOfMonth());
|
LocalDate lastDay = localDate.with(TemporalAdjusters.lastDayOfMonth());
|
||||||
//患者数量
|
//患者数量
|
||||||
int createPatientCount = patientInfoMapper.getPatientInfoCountByCreateTime(firstDay, lastDay);
|
int createPatientCount = patientInfoMapper.getPatientInfoCountByCreateTime(firstDay, lastDay);
|
||||||
|
int patientPreHospitalizationCount = patientPreHospitalizationMapper.getPatientPreHospitalizationCountByCreateTime(firstDay, lastDay);
|
||||||
int i = patientInfoMapper.selectPatientInfoCountBySignTime(firstDay, lastDay);
|
int i = patientInfoMapper.selectPatientInfoCountBySignTime(firstDay, lastDay);
|
||||||
|
//签约
|
||||||
|
int signPatient = patientInfoMapper.selectPatientInfoCountBySignTime(firstDay, now);
|
||||||
signPatientCount.setTime(localDate);
|
signPatientCount.setTime(localDate);
|
||||||
signPatientCount.setSignPatientCount(createPatientCount);
|
signPatientCount.setPatientCount(createPatientCount + patientPreHospitalizationCount);
|
||||||
|
signPatientCount.setSignPatientCount(signPatient);
|
||||||
signPatientCount.setProportion(new BigDecimal(i).divide(new BigDecimal(createPatientCount), 2, RoundingMode.HALF_UP));
|
signPatientCount.setProportion(new BigDecimal(i).divide(new BigDecimal(createPatientCount), 2, RoundingMode.HALF_UP));
|
||||||
signPatientCounts.add(signPatientCount);
|
signPatientCounts.add(signPatientCount);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,9 +20,14 @@ public class SignPatientCount {
|
|||||||
private LocalDate time;
|
private LocalDate time;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数量
|
* 患者数量
|
||||||
*/
|
*/
|
||||||
private Integer SignPatientCount;
|
private Integer patientCount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 签约数量
|
||||||
|
*/
|
||||||
|
private Integer signPatientCount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 百分比
|
* 百分比
|
||||||
|
|||||||
@ -16,6 +16,11 @@ public class TopStatisticsVO {
|
|||||||
*/
|
*/
|
||||||
private Integer thisMonthPatient;
|
private Integer thisMonthPatient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 本月新增患者数
|
||||||
|
*/
|
||||||
|
private Integer thisMonthDischargePatient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 本月签约患者数
|
* 本月签约患者数
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user