Commit 979b32a8638cee40ac8e2f0ee7228457429ce02a

Authored by liquanyu
1 parent 9b87dd5de5

营养管理添加到快速测量

Showing 1 changed file with 3 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MeasureInfoFacade.java View file @ 979b32a
... ... @@ -640,6 +640,7 @@
640 640 {
641 641 measureMap.put("weight",dataInfoModel.getValueOne());
642 642 measureMap.put("height",dataInfoModel.getValueTwo());
  643 + measureMap.put("beforeWeight",dataInfoModel.getValueThree());
643 644 }
644 645 else if (dataInfoModel.getValueType() != null && dataInfoModel.getValueType() == 2)
645 646 {
... ... @@ -875,7 +876,7 @@
875 876 measureInfoRequest.setPhone(patients.getPhone());
876 877 measureInfoRequest.setSex(0);
877 878 measureInfoRequest.setUserName(patients.getUsername());
878   - measureInfoRequest.setAge(DateUtil.getAge(patients.getBirth())+"");
  879 + measureInfoRequest.setAge(DateUtil.getAge(patients.getBirth()) + "");
879 880 addMeasureUserInfo(measureInfoRequest);
880 881  
881 882  
... ... @@ -886,6 +887,7 @@
886 887 request.setValueType(1);//体重和身高
887 888 request.setValueOne(currentWeight);
888 889 request.setValueTwo(nutritionInfoRequest.getBeforeHeight() == null ? patientWeights.get(0).getBeforeHeight() : nutritionInfoRequest.getBeforeHeight());
  890 + request.setValueThree(nutritionInfoRequest.getBeforeWeight() == null ? patientWeights.get(0).getBeforeWeight() : nutritionInfoRequest.getBeforeWeight());
889 891  
890 892 addToDataInfo(request);
891 893