From acfcad37cef44d0817519ba53d2a2cb2cc7349a8 Mon Sep 17 00:00:00 2001 From: "litao@lymsh.com" Date: Thu, 21 Sep 2017 16:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9app=E7=9A=84=E6=9B=B2=E7=BA=BF?= =?UTF-8?q?=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/service/impl/PatientWeightServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java index 14b41ed..f51b73c 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java @@ -288,7 +288,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient if(StringUtils.isEmpty(patientWeight.getId()) && patients != null) { patientWeight.setCreated(new Date()); patientWeight.setHospitalId(patients.getHospitalId()); - if(StringUtils.isNotBlank(patientWeight.getPatientId())) { + if(StringUtils.isNotBlank(patientWeight.getPatientId()) && StringUtils.isNotEmpty(patientWeight.getNowWeight())) { weights.put(DateUtil.getWeek(patients.getLastMenses(), new Date()), nowWeight); patientWeight.setWeights(weights); } -- 1.8.3.1