Commit 474637818cf11a30827acc8f1b491d320c6d8081
1 parent
51ebf75bd8
Exists in
master
and in
1 other branch
体重报告太数问题修改
Showing 2 changed files with 11 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
4746378
... | ... | @@ -535,7 +535,7 @@ |
535 | 535 | BloodSugarQuery buery = new BloodSugarQuery(); |
536 | 536 | buery.setPid(pid); |
537 | 537 | buery.setCreatedStart(queryDate); |
538 | - buery.setCreatedEnd(DateUtil.formatDate(new Date())); | |
538 | + buery.setCreatedEnd(DateUtil.formatDate(DateUtil.addDay(DateUtil.formatDate(new Date()),7))); | |
539 | 539 | List<BloodSugar> list = bloodSugarService.queryBloodSugarList(buery, Sort.Direction.DESC, "created"); |
540 | 540 | |
541 | 541 | int size = list == null ? 0 : list.size(); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
4746378
... | ... | @@ -310,7 +310,16 @@ |
310 | 310 | return RespBuilder.buildSuccess("建档数据未找到"); |
311 | 311 | } |
312 | 312 | Map<String, Object> map = ReflectionUtils.beanToMap(patientWeight); |
313 | - map.put("bregmatic", BregmaticEnums2.getName(patientWeight.getBregmatic())); | |
313 | + String bregmatic = ""; | |
314 | + if (StringUtils.isEmpty(patientWeight.getBregmatic()) || "null".equals(patientWeight.getBregmatic())) | |
315 | + { | |
316 | + bregmatic = "未知"; | |
317 | + } | |
318 | + else | |
319 | + { | |
320 | + bregmatic = BregmaticEnums2.getName(patientWeight.getBregmatic()); | |
321 | + } | |
322 | + map.put("bregmatic",bregmatic); | |
314 | 323 | map.put("bim", patientWeight.getBmi()); // 体质指数(BMI)=体重(kg)÷身高^2(m) |
315 | 324 | |
316 | 325 | Map<String, String> dayWeights = patientWeight.getDayWeights(); |