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) {