Commit c4a3ab0a18d5f24bdeaa783c7497a79a50b17891

Authored by litao@lymsh.com
1 parent 5d91036962

体重管理相关代码

Showing 1 changed file with 8 additions and 7 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ c4a3ab0
... ... @@ -37,15 +37,12 @@
37 37 @Autowired
38 38 private MongoUtil mongoUtil;
39 39  
40   - private static Map<Integer, Double> highMap = new HashMap<>();
41   - private static Map<Integer, Double> normalMap = new HashMap<>();
42   - private static Map<Integer, Double> lowMap = new HashMap<>();
43   - private static List<Integer> xAxis = new ArrayList<>();
44 40  
45   - /**
  41 +
  42 + /* *//**
46 43 * 最低:0~13 : 0~1.9 13~40 1.9~11.9
47 44 * 最高: 0~2.2 2.2~15.9
48   - */
  45 + *//*
49 46 static {
50 47 for (int i = 0; i <= 40; i++) {
51 48 xAxis.add(i);
... ... @@ -74,7 +71,7 @@
74 71 for (int i = 0; i <= 40; i++) {
75 72 normalMap.put(i, (highMap.get(i) + lowMap.get(i)) / 2);
76 73 }
77   - }
  74 + }*/
78 75  
79 76  
80 77  
... ... @@ -606,6 +603,10 @@
606 603 high2 = 8.9;
607 604 }
608 605  
  606 + Map<Integer, Double> highMap = new HashMap<>();
  607 + Map<Integer, Double> normalMap = new HashMap<>();
  608 + Map<Integer, Double> lowMap = new HashMap<>();
  609 + List<Integer> xAxis = new ArrayList<>();
609 610 double avg = low / 13;
610 611 for (int i = 0; i <= 13; i++) {
611 612 lowMap.put(i, i * avg);