From 53b9db146153e09b58f009cd2de952e415494746 Mon Sep 17 00:00:00 2001 From: "[wangbo]" Date: Thu, 1 Aug 2019 09:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/service/impl/PatientWeightServiceImpl.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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 f8e9f54..cdc881b 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 @@ -532,11 +532,12 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient Map kmap = getComputeKul(Double.parseDouble(patientWeight.getBeforeWeight()), Double.parseDouble(nowWeight), week, bmi, patientWeight.getBregmatic(), patientWeight.getBeforeHeight()); - if (3 == type) { + /*if (3 == type) { kmap.put("type", "3"); } else { kmap.put("type", null); - } + }*/ + kmap.put("type", null); if (1 == type) { setGuide(week, map, patientWeight.getHospitalId()); // 设置指南 } else { @@ -1134,9 +1135,9 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient } else { suggests = configModel.getLaterSuggests(); } - if ("3".equals((String) kaclmap.get("type"))) { + /* if ("3".equals((String) kaclmap.get("type"))) { suggests = configModel.getDietaryIntake(); - } + }*/ map.put("suggest", suggests); } @@ -1770,12 +1771,14 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient BigDecimal b1 = new BigDecimal(Double.toString(addWeightStart)); BigDecimal b2 = new BigDecimal(Double.toString(addWeightEnd)); BigDecimal bw = null; - if (bmi >= 25) { + /*if (bmi >= 25) { bw = new BigDecimal(Double.toString(Integer.valueOf(height) - 105)); } else { bw = new BigDecimal(Double.toString(beforeWeight)); - } + }*/ + + bw = new BigDecimal(Double.toString(beforeWeight)); double kstart = (bw.add(b1)).multiply(new BigDecimal(25)).doubleValue() + basekul; double kend = (bw.add(b2)).multiply(new BigDecimal(25)).doubleValue() + basekul; -- 1.8.3.1