Commit b180e65e902664d69808131bf0dfe12abc4b646d

Authored by liquanyu
1 parent 359e994097

体重管理

Showing 1 changed file with 2 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ b180e65
... ... @@ -170,7 +170,8 @@
170 170 patientWeight.setOperaterId(userId.toString());
171 171 patientWeight.setCreated(new Date());
172 172 if(StringUtils.isNotBlank(patientWeight.getNowWeight()) && patientWeight.getBeforeHeight() != null) {
173   - patientWeight.setBmi(getBmi(patientWeight.getBeforeWeight(), patientWeight.getBeforeHeight()));
  173 + patientWeight.setBmi(getBmi(patientWeight.getNowWeight(), patientWeight.getBeforeHeight()));
  174 + //patientWeight.setBmi(getBmi(patientWeight.getBeforeWeight(), patientWeight.getBeforeHeight()));
174 175 }
175 176 patientWeight.setYn("1");
176 177 // mongoTemplate.save(patientWeight);