fix: 录入数据,测试问题修复。

This commit is contained in:
tianyongbao
2024-12-22 17:47:41 +08:00
parent 7015f772be
commit 8777dda01d
2 changed files with 11 additions and 7 deletions

View File

@@ -27,11 +27,11 @@ public class HealthStaticPersonVo
private String doctorCost;
private String marDayCount;
private int marDayCount;
private String marCount;
private String feverDayCount;
private int feverDayCount;
private String marTypeCount;

View File

@@ -399,8 +399,7 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
//医生总数
map.put("doctorTotalCount",statisticAnalysisMapper.selectDoctorCount(new HealthMarRecordDto()));
//用药天数
map.put("marDayCount",statisticAnalysisMapper.selectMarDayCount(new HealthMarRecordDto()));
//用药次数
map.put("marCount",marRecordMapper.selectHealthMarRecordList(new HealthMarRecordDto()).size());
//用药类别
@@ -409,11 +408,16 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
List<HealthTemperatureRecordVo> temperatureRecordVoList=temperatureRecordMapper.selectHealthTemperatureRecordList(new HealthTemperatureRecordDto());
//测量体温次数
map.put("temperatureTotalCount",temperatureRecordVoList.size());
//发烧天数
map.put("feverDayCount",statisticAnalysisMapper.selectFeverDayCount(new HealthRecordDto()));
//成员列表展示
map.put("personList",statisticAnalysisMapper.selectStaticPersonList(new HealthRecordDto()));
List<HealthStaticPersonVo> personList=statisticAnalysisMapper.selectStaticPersonList(new HealthRecordDto());
//用药天数
map.put("marDayCount",personList.stream().mapToInt(HealthStaticPersonVo::getMarDayCount).sum());
//发烧天数
map.put("feverDayCount",personList.stream().mapToInt(HealthStaticPersonVo::getFeverDayCount).sum());
map.put("personList",personList);
//低烧次数
int lowerTempCount=0;
//中烧次数