Commit 6277106699a4b27d0709b51d399c50d939419e40

Authored by litao@lymsh.com
1 parent 7d8e3486d8

改bug

Showing 1 changed file with 4 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java View file @ 6277106
... ... @@ -708,9 +708,10 @@
708 708 private List<String> getNeedUsedIds(List<Patients> patients, List<AntExChuModel> antExChuModels, List<AntenatalExaminationModel> antenatalExaminationModels,
709 709 List<MaternalDeliverModel> maternalDeliverModels, List<DischargeAbstractMotherModel> deliverModels, List<PostReviewModel> postReviewModels) {
710 710 List<String> needUsedIds = new ArrayList<>();
711   - for (Patients patient : patients) {
  711 + /** 建档自动被使用 所以不统计 */
  712 + /* for (Patients patient : patients) {
712 713 needUsedIds.add(patient.getId());
713   - }
  714 + }*/
714 715 for (AntExChuModel antExChuModel : antExChuModels) {
715 716 needUsedIds.add(antExChuModel.getId());
716 717 }
... ... @@ -866,6 +867,7 @@
866 867 c.and("bookbuildingDate").gte(startDate).lt(DateUtil.addDay(endDate, 1));
867 868 }
868 869  
  870 + /** 建档自动被使用 所以不统计 */
869 871 List<Patients> patients = mongoTemplate.find(Query.query(c).with(new Sort(Sort.Direction.DESC, "created")), Patients.class);
870 872 List<String> parentIds = new ArrayList<>();
871 873 for (Patients patient : patients) {