Commit 1d21b67c040bf2e3cf4d893f54fe5ad0b58b9138
1 parent
4ca3f988f9
Exists in
master
and in
6 other branches
修复bug
Showing 2 changed files with 4 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
1d21b67
| ... | ... | @@ -1267,7 +1267,7 @@ |
| 1267 | 1267 | data.put("weekRange",weekRange); |
| 1268 | 1268 | |
| 1269 | 1269 | // 添加报告解读人 |
| 1270 | - List<BloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientId).and("created").gt(DateUtil.getYMDTime())), BloodSugar.class); | |
| 1270 | + List<BloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("parentId").is(patientId).and("created").gt(DateUtil.getYMDTime())), BloodSugar.class); | |
| 1271 | 1271 | List<Date> dateList = new ArrayList<>(); |
| 1272 | 1272 | if (CollectionUtils.isNotEmpty(bloodSugars)){ |
| 1273 | 1273 | for (BloodSugar sugar: bloodSugars){ |
| ... | ... | @@ -1284,7 +1284,7 @@ |
| 1284 | 1284 | String doctorId = ""; |
| 1285 | 1285 | if (CollectionUtils.isNotEmpty(dateList)){ |
| 1286 | 1286 | Date maxDate = Collections.max(dateList); |
| 1287 | - List<BloodSugar> sugarList = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientId).and("created").is(maxDate)), BloodSugar.class); | |
| 1287 | + List<BloodSugar> sugarList = mongoTemplate.find(Query.query(Criteria.where("parentId").is(patientId).and("created").is(maxDate)), BloodSugar.class); | |
| 1288 | 1288 | if (CollectionUtils.isNotEmpty(sugarList)){ |
| 1289 | 1289 | BloodSugar bloodSugar = sugarList.get(0); |
| 1290 | 1290 | doctorId = bloodSugar.getDoctorId(); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TemporaryBloodSugarServiceImpl.java
View file @
1d21b67
| ... | ... | @@ -404,7 +404,7 @@ |
| 404 | 404 | data.put("weekRange", weekRange); |
| 405 | 405 | |
| 406 | 406 | // 添加报告解读人 |
| 407 | - List<TemporaryBloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("pid").is(id).and("created").gt(DateUtil.getYMDTime())), TemporaryBloodSugar.class); | |
| 407 | + List<TemporaryBloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("temporaryUserId").is(id).and("created").gt(DateUtil.getYMDTime())), TemporaryBloodSugar.class); | |
| 408 | 408 | List<Date> dateList = new ArrayList<>(); |
| 409 | 409 | if (CollectionUtils.isNotEmpty(bloodSugars)){ |
| 410 | 410 | for (TemporaryBloodSugar sugar: bloodSugars){ |
| ... | ... | @@ -421,7 +421,7 @@ |
| 421 | 421 | String doctorId = ""; |
| 422 | 422 | if (CollectionUtils.isNotEmpty(dateList)){ |
| 423 | 423 | Date maxDate = Collections.max(dateList); |
| 424 | - List<TemporaryBloodSugar> sugarList = mongoTemplate.find(Query.query(Criteria.where("pid").is(id).and("created").is(maxDate)), TemporaryBloodSugar.class); | |
| 424 | + List<TemporaryBloodSugar> sugarList = mongoTemplate.find(Query.query(Criteria.where("temporaryUserId").is(id).and("created").is(maxDate)), TemporaryBloodSugar.class); | |
| 425 | 425 | if (CollectionUtils.isNotEmpty(sugarList)){ |
| 426 | 426 | TemporaryBloodSugar bloodSugar = sugarList.get(0); |
| 427 | 427 | doctorId = bloodSugar.getDoctorId(); |