Commit b42851927928b6df9e66feb1ef16d9974b2f2edb
1 parent
0845fe94eb
Exists in
master
and in
6 other branches
体重管理相关代码
Showing 1 changed file with 4 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
b428519
| ... | ... | @@ -605,8 +605,8 @@ |
| 605 | 605 | 最高 0-2.1 2.1-8.9 |
| 606 | 606 | */ |
| 607 | 607 | public void setReport(Map<String, Object> restMap, Map<Integer, String> weights, String beforeWeight, String bmi, Map<String, String> dayWeights) { |
| 608 | + List<Map<String, Object>> restList = new ArrayList<>(); | |
| 608 | 609 | if(MapUtils.isNotEmpty(dayWeights)) { |
| 609 | - List<Map<String, Object>> restList = new ArrayList<>(); | |
| 610 | 610 | for (String key : dayWeights.keySet()) { |
| 611 | 611 | Map<String, Object> temp = new HashMap<>(); |
| 612 | 612 | temp.put("nowWeight", dayWeights.get(key)); |
| ... | ... | @@ -671,6 +671,9 @@ |
| 671 | 671 | series.put("lowData", CollectionUtils.getValList(lowMap)); |
| 672 | 672 | series.put("highData", CollectionUtils.getValList(highMap)); |
| 673 | 673 | series.put("normalData", CollectionUtils.getValList(normalMap)); |
| 674 | + | |
| 675 | + series.put("dayWeights", restList); | |
| 676 | + | |
| 674 | 677 | reportModel.put("series", series); |
| 675 | 678 | |
| 676 | 679 | for (int i = 0; i <= 40; i++) { |