Commit b7dfaf4568690d306adfc1ba62baf0f6b550bd1c
1 parent
ead3b67011
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 17 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MeasureInfoFacade.java
View file @
b7dfaf4
| ... | ... | @@ -1048,6 +1048,15 @@ |
| 1048 | 1048 | } |
| 1049 | 1049 | pw.setDayWeights2(dayWeights2); |
| 1050 | 1050 | pw.setModified(new Date()); |
| 1051 | + | |
| 1052 | + | |
| 1053 | + Map<String,String> datas = patientWeightService.getWeightRangeIsNormal(patients,pw); | |
| 1054 | + String isNormal = datas.get("isNormal"); | |
| 1055 | + String isUp = datas.get("isUp"); | |
| 1056 | + pw.setIsNormal(isNormal); | |
| 1057 | + pw.setIsUp(Integer.parseInt(isUp)); | |
| 1058 | + pw.setType(patients.getType()); | |
| 1059 | + | |
| 1051 | 1060 | patientWeightService2.update(Query.query(Criteria.where("id").is(pw.getId())), pw); |
| 1052 | 1061 | } |
| 1053 | 1062 | } else { |
| ... | ... | @@ -1084,6 +1093,14 @@ |
| 1084 | 1093 | dayWeights2.add(m); |
| 1085 | 1094 | patientWeight.setDayWeights2(dayWeights2); |
| 1086 | 1095 | patientWeight.setModified(new Date()); |
| 1096 | + | |
| 1097 | + Map<String,String> datas = patientWeightService.getWeightRangeIsNormal(patients,patientWeight); | |
| 1098 | + String isNormal = datas.get("isNormal"); | |
| 1099 | + String isUp = datas.get("isUp"); | |
| 1100 | + patientWeight.setIsNormal(isNormal); | |
| 1101 | + patientWeight.setIsUp(Integer.parseInt(isUp)); | |
| 1102 | + patientWeight.setType(patients.getType()); | |
| 1103 | + | |
| 1087 | 1104 | patientWeightService2.add(patientWeight); |
| 1088 | 1105 | |
| 1089 | 1106 | } |