Commit f5f5ec809582dece47c69e653e549fc940a3b752

Authored by litao@lymsh.com
1 parent aa5120bf3c

改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 @ f5f5ec8
... ... @@ -1609,7 +1609,7 @@
1609 1609 checkDate = antenatal.getCheckDate();
1610 1610 username = findUserNameByPid(antenatal.getPid());
1611 1611 week = antenatal.getCurrentDueDate();
1612   - List<AntenatalExaminationModel> antExChuModels = mongoTemplate.find(Query.query(Criteria.where("pid").is(antenatal.getPid())).with(new Sort(Sort.Direction.ASC, "created")), AntenatalExaminationModel.class);
  1612 + List<AntenatalExaminationModel> antExChuModels = mongoTemplate.find(Query.query(Criteria.where("pid").is(antenatal.getPid()).and("parentId").is(antenatal.getParentId())).with(new Sort(Sort.Direction.ASC, "created")), AntenatalExaminationModel.class);
1613 1613  
1614 1614 id = antenatal.getId();
1615 1615 if(CollectionUtils.isNotEmpty(antExChuModels)) {