Commit 8ac55336d04f086d8beb52b7fd292ef4e6a4b834

Authored by litao@lymsh.com
1 parent 7a901b91e1

改逻辑

Showing 1 changed file with 2 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ 8ac5533
... ... @@ -344,8 +344,8 @@
344 344 if(StringUtils.isEmpty(patientWeight.getId()) && patients != null) {
345 345 patientWeight.setCreated(new Date());
346 346 patientWeight.setHospitalId(patients.getHospitalId());
347   - if(StringUtils.isNotBlank(patientWeight.getNowWeight()) && patientWeight.getBeforeHeight() != null) {
348   - patientWeight.setBmi(getBmi(patientWeight.getNowWeight(), patientWeight.getBeforeHeight()));
  347 + if(StringUtils.isNotBlank(patientWeight.getBeforeWeight()) && patientWeight.getBeforeHeight() != null) {
  348 + patientWeight.setBmi(getBmi(patientWeight.getBeforeWeight(), patientWeight.getBeforeHeight()));
349 349 }
350 350 patientWeight.setYn("1");
351 351 patientWeight.setPid(patients.getPid());