Commit 4bd4b809aba5505afe45b1395bce0bacf614c041
1 parent
349834c568
Exists in
master
and in
6 other branches
体重管理相关代码
Showing 1 changed file with 1 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
4bd4b80
... | ... | @@ -289,6 +289,7 @@ |
289 | 289 | weights.put(DateUtil.getWeek(patients.getLastMenses(), new Date()), nowWeight); |
290 | 290 | } |
291 | 291 | pw.setWeights(weights); |
292 | + pw.setBmi(getBmi(patientWeight.getNowWeight(), pw.getBeforeHeight())); | |
292 | 293 | Update update = MongoConvertHelper.convertToNativeUpdate(ReflectionUtils.getUpdateField(pw)); |
293 | 294 | mongoTemplate.updateFirst(Query.query(Criteria.where("id").is(pw.getId())), update, PatientWeight.class); |
294 | 295 | return RespBuilder.buildSuccess(pw.getId()); |