fix: 录入数据,测试问题修复。
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
//中烧次数
|
||||
|
||||
Reference in New Issue
Block a user