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