Commit 4871919d144203bdce60b98dcd02e7076078f5bd
1 parent
37a1328a4d
Exists in
master
and in
6 other branches
营养管理添加到快速测量
Showing 1 changed file with 5 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MeasureInfoFacade.java
View file @
4871919
| ... | ... | @@ -781,6 +781,10 @@ |
| 781 | 781 | |
| 782 | 782 | public BaseObjectResponse addNutritionInfo(NutritionInfoRequest nutritionInfoRequest) { |
| 783 | 783 | |
| 784 | + System.out.println("patientId="+nutritionInfoRequest.getPatientId()+";beforeWeight=" | |
| 785 | + +nutritionInfoRequest.getBeforeWeight()+";beforeHeight="+nutritionInfoRequest.getBeforeHeight() | |
| 786 | + +"currentWeight="+nutritionInfoRequest.getCurrentWeight()); | |
| 787 | + | |
| 784 | 788 | Patients patients = patientsService.findOnePatientById(nutritionInfoRequest.getPatientId()); |
| 785 | 789 | List<PatientWeight> patientWeights = patientWeightService2.queryPatientWeight(Query.query(Criteria.where("patientId").is(nutritionInfoRequest.getPatientId()))); |
| 786 | 790 | String hospitalId = nutritionInfoRequest.getHospitalId(); |
| ... | ... | @@ -851,7 +855,7 @@ |
| 851 | 855 | patientWeight.setHospitalId(hospitalId); |
| 852 | 856 | // patientWeight.setOperaterId(userId.toString()); |
| 853 | 857 | patientWeight.setCreated(new Date()); |
| 854 | - if(StringUtils.isNotBlank(currentWeight) && nutritionInfoRequest.getBeforeHeight() != null) { | |
| 858 | + if(StringUtils.isNotBlank(nutritionInfoRequest.getBeforeWeight()) && nutritionInfoRequest.getBeforeHeight() != null) { | |
| 855 | 859 | patientWeight.setBmi(patientWeightService.getBmi(nutritionInfoRequest.getBeforeWeight(), nutritionInfoRequest.getBeforeHeight())); |
| 856 | 860 | } |
| 857 | 861 | patientWeight.setYn("1"); |