From b20239520e05fe22654ae760fdcabc36f1a9bf19 Mon Sep 17 00:00:00 2001 From: "[wangbo]" Date: Tue, 16 Jul 2019 18:26:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=84=BF=E4=BF=9D=E6=80=BB=E6=A6=82=E7=8E=87?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lyms/platform/operate/web/facade/PatientFacade.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java index 2a6517a..9f58d88 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java @@ -1730,11 +1730,14 @@ public class PatientFacade { healthy.add("d42eec03-aa86-45b8-a4e0-78a0ff365fb6");//健康id// healthy.add("a427da89-594a-46c2-b9f7-1b0d355ce54c");//28>BMI>25 healthy.add("5a40c6c5422b03d4ad2bf7bd");//BMI<18.5 - if (null == patients.getRiskFactorId() || healthy.containsAll(patients.getRiskFactorId())) { - patientBaseResult.setFlag(false); - } else { - patientBaseResult.setFlag(true); + if (patients != null) { + if (patients.getRiskFactorId() == null || healthy.containsAll(patients.getRiskFactorId())) { + patientBaseResult.setFlag(false); + } else { + patientBaseResult.setFlag(true); + } } + if (null != pw.getPrintingTime()) { int hasPrint = DateUtil.getDays(pw.getPrintingTime(), new Date()); if (hasPrint > 21) { -- 1.8.3.1