From c4a3ab0a18d5f24bdeaa783c7497a79a50b17891 Mon Sep 17 00:00:00 2001 From: "litao@lymsh.com" Date: Fri, 15 Sep 2017 14:31:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E9=87=8D=E7=AE=A1=E7=90=86=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/service/impl/PatientWeightServiceImpl.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 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 b8ad65a..cd926ae 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 @@ -37,15 +37,12 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient @Autowired private MongoUtil mongoUtil; - private static Map highMap = new HashMap<>(); - private static Map normalMap = new HashMap<>(); - private static Map lowMap = new HashMap<>(); - private static List xAxis = new ArrayList<>(); - /** + + /* *//** * 最低:0~13 : 0~1.9 13~40 1.9~11.9 * 最高: 0~2.2 2.2~15.9 - */ + *//* static { for (int i = 0; i <= 40; i++) { xAxis.add(i); @@ -74,7 +71,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient for (int i = 0; i <= 40; i++) { normalMap.put(i, (highMap.get(i) + lowMap.get(i)) / 2); } - } + }*/ @@ -606,6 +603,10 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient high2 = 8.9; } + Map highMap = new HashMap<>(); + Map normalMap = new HashMap<>(); + Map lowMap = new HashMap<>(); + List xAxis = new ArrayList<>(); double avg = low / 13; for (int i = 0; i <= 13; i++) { lowMap.put(i, i * avg); -- 1.8.3.1