Commit 349834c5685654c6e7ae81511970ffd7e8ba11c2

Authored by litao@lymsh.com
1 parent 2f89dd79e2

体重管理相关代码

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 @ 349834c
... ... @@ -79,6 +79,7 @@
79 79 pw.setWeights(weights);
80 80 pw.setDayWeights(dayWeights);
81 81 pw.setNowWeight(patientWeight.getNowWeight());
  82 + pw.setBmi(getBmi(patientWeight.getNowWeight(), pw.getBeforeHeight()));
82 83 Update update = MongoConvertHelper.convertToNativeUpdate(ReflectionUtils.getUpdateField(pw));
83 84 mongoTemplate.updateFirst(Query.query(Criteria.where("id").is(pw.getId())), update, PatientWeight.class);
84 85 return RespBuilder.buildSuccess(pw.getId());