Commit d412e87a726bd7dec9d4029ee82936e83a5f5b64
1 parent
fc6f81e095
Exists in
master
and in
6 other branches
改逻辑
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
d412e87
| ... | ... | @@ -307,7 +307,7 @@ |
| 307 | 307 | public BaseResponse wxAddOrUpdate(PatientWeight patientWeight) { |
| 308 | 308 | String nowWeight = patientWeight.getNowWeight(); |
| 309 | 309 | Patients patients = mongoTemplate.findById(patientWeight.getPatientId(), Patients.class); |
| 310 | - PatientWeight pw = mongoTemplate.findOne(Query.query(Criteria.where("patientId").is(patientWeight.getPatientId())), PatientWeight.class); | |
| 310 | + PatientWeight pw = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(patientWeight.getPid())), PatientWeight.class); | |
| 311 | 311 | Map<String, String> dayWeights = new HashMap<>(); |
| 312 | 312 | if(pw == null && StringUtils.isEmpty(patientWeight.getBeforeWeight())) { |
| 313 | 313 | return RespBuilder.buildErro(ResponseCode.NEED_ADD_PATIENT_WEIGHT); |