From c7bdd3d1d05e4aa3aaf11e342c5fdefc878f9f9d Mon Sep 17 00:00:00 2001 From: liquanyu Date: Mon, 19 Jun 2017 10:58:42 +0800 Subject: [PATCH] update code --- .../java/com/lyms/platform/operate/web/facade/ViewFacade.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java index d74eef9..92cad31 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java @@ -1353,9 +1353,13 @@ public class ViewFacade { map.put("dueDate", DateUtil.getyyyy_MM_dd(patients.getFmDate())); map.put("mremark", patients.getMremark()); //高危因素 +// HighScoreResult highScoreResult = null; +// if (CollectionUtils.isNotEmpty(patients.getRiskFactorId())) { +// highScoreResult = ResolveUtils.queryRisk(patients.getRiskFactorId(), true, basicConfigService); +// } HighScoreResult highScoreResult = null; - if (CollectionUtils.isNotEmpty(patients.getRiskFactorId())) { - highScoreResult = ResolveUtils.queryRisk(patients.getRiskFactorId(), true, basicConfigService); + if (patients.getFmDate() != null) { + highScoreResult = antenatalExaminationFacade.getPatLastRiskByDate(patients.getPid(), false, patients.getLastMenses(), patients.getFmDate()); } map.put("riskFactor", ResolveUtils.queryHighRisk(highScoreResult)); -- 1.8.3.1