From 8adceece4ddc203eb143b18cb2fabb77b8902a64 Mon Sep 17 00:00:00 2001 From: "litao@lymsh.com" Date: Thu, 28 Sep 2017 06:40:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8C=E6=AD=A5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java | 1 + 1 file changed, 1 insertion(+) 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 518135b..55e4f71 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 @@ -344,6 +344,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient } if(StringUtils.isEmpty(patientWeight.getId()) && patients != null) { + patientWeight.setId(UUID.randomUUID().toString().replaceAll("-", "")); patientWeight.setCreated(new Date()); patientWeight.setHospitalId(patients.getHospitalId()); if(StringUtils.isNotBlank(patientWeight.getBeforeWeight()) && patientWeight.getBeforeHeight() != null) { -- 1.8.3.1