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;