Commit 88124b60a3238029c47a123f474d87c738107bef

Authored by litao@lymsh.com
1 parent a63723a3cf

体重管理修改接口 加上同步修改体重数据的逻辑

Showing 1 changed file with 3 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ 88124b6
... ... @@ -512,7 +512,9 @@
512 512  
513 513 patientWeight.setDayWeights2(dayWeights2);
514 514 patientWeight.setDayWeights(dayWeights);
515   - patientWeight.setBmi(getBmi(beforeWeight, beforeHeight));
  515 + if(StringUtils.isNotEmpty(beforeWeight) && StringUtils.isNotEmpty(beforeHeight)) {
  516 + patientWeight.setBmi(getBmi(beforeWeight, beforeHeight));
  517 + }
516 518 }
517 519 patientWeightService2.update(Query.query(Criteria.where("id").is(id)), patientWeight);
518 520