Commit 244bdecf8a209a549b35f345a8a8b7cd4cbb529d
1 parent
4fd45d03a3
Exists in
master
and in
6 other branches
儿童统计修改
Showing 1 changed file with 9 additions and 24 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java
View file @
244bdec
... | ... | @@ -4447,32 +4447,17 @@ |
4447 | 4447 | } |
4448 | 4448 | |
4449 | 4449 | |
4450 | - private int getCheckDayCount(String hospitalId, Date start, Date end,Integer startDay,Integer endDay) { | |
4451 | - | |
4452 | - Criteria ca = Criteria.where("hospitalId").is(hospitalId).and("checkDate").gte(start).lte(end); | |
4453 | - if (startDay != null && end != null) | |
4454 | - { | |
4455 | - ca.and("checkDay").gte(startDay).and("checkDay").lte(endDay); | |
4456 | - } | |
4457 | - Aggregation aggregation4 = | |
4458 | - Aggregation.newAggregation( | |
4459 | - Aggregation.match(ca), | |
4460 | - Aggregation.group("buildId").count().as("总人数")); | |
4461 | - AggregationResults <BasicDBObject> outputTypeCount4 = | |
4462 | - mongoTemplate.aggregate(aggregation4, "lyms_babycheck", BasicDBObject.class); | |
4463 | - return outputTypeCount4.getMappedResults().size(); | |
4464 | - } | |
4465 | - | |
4466 | - | |
4467 | 4450 | private int getCheckMonthCountrc(String hospitalId, Date start, Date end,Integer startMonth,Integer endMonth) { |
4468 | 4451 | |
4469 | - Criteria ca = Criteria.where("hospitalId").is(hospitalId).and("checkDate").gte(start).lte(end).and("yn").is(YnEnums.YES.getId()); | |
4470 | - if (startMonth != null) | |
4471 | - { | |
4472 | - ca.and("checkMonth").gte(startMonth).lte(endMonth); | |
4473 | - } | |
4474 | - | |
4475 | - return (int)mongoTemplate.count(Query.query(ca),BabyCheckModel.class); | |
4452 | +// Criteria ca = Criteria.where("hospitalId").is(hospitalId).and("checkDate").gte(start).lte(end).and("yn").is(YnEnums.YES.getId()); | |
4453 | +// if (startMonth != null) | |
4454 | +// { | |
4455 | +// ca.and("checkMonth").gte(startMonth).lte(endMonth); | |
4456 | +// } | |
4457 | +// | |
4458 | +// return (int)mongoTemplate.count(Query.query(ca),BabyCheckModel.class); | |
4459 | + //暂时不查询 | |
4460 | + return 0; | |
4476 | 4461 | } |
4477 | 4462 | |
4478 | 4463 | private int getCheckMonthCount(String hospitalId, Date start, Date end,Integer startMonth,Integer endMonth) { |