From 244bdecf8a209a549b35f345a8a8b7cd4cbb529d Mon Sep 17 00:00:00 2001 From: liquanyu Date: Sat, 18 Sep 2021 15:22:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=84=BF=E7=AB=A5=E7=BB=9F=E8=AE=A1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operate/web/facade/BabyCheckFacade.java | 33 ++++++---------------- 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java index db291cf..285e1bc 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java @@ -4447,32 +4447,17 @@ public class BabyCheckFacade extends BaseServiceImpl { } - private int getCheckDayCount(String hospitalId, Date start, Date end,Integer startDay,Integer endDay) { - - Criteria ca = Criteria.where("hospitalId").is(hospitalId).and("checkDate").gte(start).lte(end); - if (startDay != null && end != null) - { - ca.and("checkDay").gte(startDay).and("checkDay").lte(endDay); - } - Aggregation aggregation4 = - Aggregation.newAggregation( - Aggregation.match(ca), - Aggregation.group("buildId").count().as("总人数")); - AggregationResults outputTypeCount4 = - mongoTemplate.aggregate(aggregation4, "lyms_babycheck", BasicDBObject.class); - return outputTypeCount4.getMappedResults().size(); - } - - private int getCheckMonthCountrc(String hospitalId, Date start, Date end,Integer startMonth,Integer endMonth) { - Criteria ca = Criteria.where("hospitalId").is(hospitalId).and("checkDate").gte(start).lte(end).and("yn").is(YnEnums.YES.getId()); - if (startMonth != null) - { - ca.and("checkMonth").gte(startMonth).lte(endMonth); - } - - return (int)mongoTemplate.count(Query.query(ca),BabyCheckModel.class); +// Criteria ca = Criteria.where("hospitalId").is(hospitalId).and("checkDate").gte(start).lte(end).and("yn").is(YnEnums.YES.getId()); +// if (startMonth != null) +// { +// ca.and("checkMonth").gte(startMonth).lte(endMonth); +// } +// +// return (int)mongoTemplate.count(Query.query(ca),BabyCheckModel.class); + //暂时不查询 + return 0; } private int getCheckMonthCount(String hospitalId, Date start, Date end,Integer startMonth,Integer endMonth) { -- 1.8.3.1