Commit f285f8ca691c99a39bd9a453da81e54d357e9d65
1 parent
84febaf07d
Exists in
master
and in
6 other branches
改bug
Showing 1 changed file with 4 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java
View file @
f285f8c
... | ... | @@ -632,8 +632,11 @@ |
632 | 632 | String parentId = null; |
633 | 633 | List<Patients> patients = mongoTemplate.find(Query.query(Criteria.where("pid").is(userId)).with(new Sort(Sort.Direction.DESC, "created")), Patients.class); |
634 | 634 | for (Patients patient : patients) { |
635 | - if(patient.getCreated().getTime() > createDate.getTime()) { | |
635 | + if(patient.getCreated().getTime() < createDate.getTime()) { | |
636 | 636 | parentId = patient.getId(); |
637 | + if(type != 1 && type != 3) { | |
638 | + break; | |
639 | + } | |
637 | 640 | if(type == 1 || type == 3) { |
638 | 641 | return DateUtil.getyyyy_MM_dd(patient.getBookbuildingDate()); |
639 | 642 | } |