Commit 84febaf07d4399f411be64ac7c7bfd5fcebe2320

Authored by litao@lymsh.com
1 parent 136d89762c

改bug

Showing 1 changed file with 1 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java View file @ 84febaf
... ... @@ -632,7 +632,7 @@
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 637 if(type == 1 || type == 3) {
638 638 return DateUtil.getyyyy_MM_dd(patient.getBookbuildingDate());