Commit fe9164baf6ca0ea8c8baa700549fc05afaf6489a
1 parent
77be6459f8
Exists in
master
and in
6 other branches
bbbbbb
Showing 1 changed file with 1 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java
View file @
fe9164b
... | ... | @@ -536,13 +536,12 @@ |
536 | 536 | |
537 | 537 | @Override |
538 | 538 | public BaseObjectResponse health(String parentId, Integer userId) { |
539 | - String hospitalId = autoMatchFacade.getHospitalId(userId); | |
540 | 539 | List<Map<String, Object>> restList = new ArrayList<>(); |
541 | 540 | Patients patients = mongoTemplate.findById(parentId, Patients.class); |
542 | 541 | if(patients == null) { |
543 | 542 | return RespBuilder.buildSuccess(); |
544 | 543 | } |
545 | - Patients p = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(patients.getPid())).with(new Sort(Sort.Direction.DESC, "lastMenses")), Patients.class); | |
544 | + Patients p = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(patients.getPid())).with(new Sort(Sort.Direction.DESC, "created")), Patients.class); | |
546 | 545 | if(p == null) { |
547 | 546 | return RespBuilder.buildSuccess(); |
548 | 547 | } |