Commit 71f9bde583a8e1626f611ebe747c721de5f770af

Authored by liquanyu
1 parent ff58bcc045

体重管理

Showing 1 changed file with 10 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MeasureInfoFacade.java View file @ 71f9bde
... ... @@ -820,6 +820,15 @@
820 820 patientWeight.setPatientId(patients.getId());
821 821 patientWeight.setBeforeWeight(nutritionInfoRequest.getBeforeWeight());
822 822 patientWeight.setBeforeHeight(nutritionInfoRequest.getBeforeHeight());
  823 + if (nutritionInfoRequest.getTireNumber() != null && Integer.valueOf(nutritionInfoRequest.getTireNumber()) < 3)
  824 + {
  825 + patientWeight.setBregmatic(nutritionInfoRequest.getTireNumber());
  826 + }
  827 + else
  828 + {
  829 + patientWeight.setBregmatic(3+"");
  830 + patientWeight.setBeforeWeight(nutritionInfoRequest.getTireNumber());
  831 + }
823 832  
824 833 dayWeights.put(DateUtil.getyyyy_MM_dd(new Date()), currentWeight);
825 834 patientWeight.setPid(patients.getPid());
... ... @@ -828,7 +837,7 @@
828 837 // patientWeight.setOperaterId(userId.toString());
829 838 patientWeight.setCreated(new Date());
830 839 if(StringUtils.isNotBlank(currentWeight) && nutritionInfoRequest.getBeforeHeight() != null) {
831   - patientWeight.setBmi(patientWeightService.getBmi(currentWeight, nutritionInfoRequest.getBeforeHeight()));
  840 + patientWeight.setBmi(patientWeightService.getBmi(nutritionInfoRequest.getBeforeWeight(), nutritionInfoRequest.getBeforeHeight()));
832 841 }
833 842 patientWeight.setYn("1");
834 843