Commit 14abf767bb8639ccb32bb2d80fe37d82fcf7dd43
1 parent
5b0d7e435c
Exists in
master
and in
6 other branches
血压报告孕周计算bug修改
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodPressureServiceImpl.java
View file @
14abf76
... | ... | @@ -689,7 +689,7 @@ |
689 | 689 | //2.通过pnationId ID获取到相应的信息例如:末次月经 |
690 | 690 | if (StringUtils.isNotEmpty(bloodPressure.getParentId()) && StringUtils.isNotEmpty(weight) && StringUtils.isNotEmpty(height) && StringUtils.isNotEmpty(bregmatic)) { |
691 | 691 | Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("_id").is(bloodPressure.getParentId())), Patients.class); |
692 | - Integer weeks = DateUtil.daysBetween(patients.getLastMenses(), new Date()) / 7; | |
692 | + Integer weeks = DateUtil.daysBetween(bloodPressure.getModified(), new Date()) / 7; | |
693 | 693 | Map paMap = new HashMap(); |
694 | 694 | paMap.put("vcCardNo", patients.getVcCardNo()); |
695 | 695 | paMap.put("username", patients.getUsername()); |
... | ... | @@ -753,7 +753,7 @@ |
753 | 753 | } else if (weeks >= 13 && weeks <= 28) { |
754 | 754 | mapxy.put("proposal", "建议(孕中期)"); |
755 | 755 | mapxy.put("proposalInfo", xy.getMiddleSuggests()); |
756 | - } else if (weeks>=29 && weeks <= 40) { | |
756 | + } else if (weeks >= 29 && weeks <= 40) { | |
757 | 757 | mapxy.put("proposal", "建议(孕晚期)"); |
758 | 758 | mapxy.put("proposalInfo", xy.getLaterSuggests()); |
759 | 759 | } |