From 14abf767bb8639ccb32bb2d80fe37d82fcf7dd43 Mon Sep 17 00:00:00 2001 From: wangbo <184677810@qq.com> Date: Fri, 8 Mar 2019 17:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=80=E5=8E=8B=E6=8A=A5=E5=91=8A=E5=AD=95?= =?UTF-8?q?=E5=91=A8=E8=AE=A1=E7=AE=97bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/service/impl/BloodPressureServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodPressureServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodPressureServiceImpl.java index 1e6bce3..bc9121f 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodPressureServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodPressureServiceImpl.java @@ -689,7 +689,7 @@ public class BloodPressureServiceImpl extends BaseServiceImpl implements IBloodP //2.通过pnationId ID获取到相应的信息例如:末次月经 if (StringUtils.isNotEmpty(bloodPressure.getParentId()) && StringUtils.isNotEmpty(weight) && StringUtils.isNotEmpty(height) && StringUtils.isNotEmpty(bregmatic)) { Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("_id").is(bloodPressure.getParentId())), Patients.class); - Integer weeks = DateUtil.daysBetween(patients.getLastMenses(), new Date()) / 7; + Integer weeks = DateUtil.daysBetween(bloodPressure.getModified(), new Date()) / 7; Map paMap = new HashMap(); paMap.put("vcCardNo", patients.getVcCardNo()); paMap.put("username", patients.getUsername()); @@ -753,7 +753,7 @@ public class BloodPressureServiceImpl extends BaseServiceImpl implements IBloodP } else if (weeks >= 13 && weeks <= 28) { mapxy.put("proposal", "建议(孕中期)"); mapxy.put("proposalInfo", xy.getMiddleSuggests()); - } else if (weeks>=29 && weeks <= 40) { + } else if (weeks >= 29 && weeks <= 40) { mapxy.put("proposal", "建议(孕晚期)"); mapxy.put("proposalInfo", xy.getLaterSuggests()); } -- 1.8.3.1