Commit 06b9c8ac2ccbd897dd93801d0a7fd4efffc265dc
1 parent
408a206c83
Exists in
master
and in
6 other branches
中医指导列表
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java
View file @
06b9c8a
| ... | ... | @@ -5621,7 +5621,8 @@ |
| 5621 | 5621 | String[] checkDates = checkDate.split(" - "); |
| 5622 | 5622 | Date start = DateUtil.parseYMD(checkDates[0]); |
| 5623 | 5623 | Date end = DateUtil.parseYMD(checkDates[1]); |
| 5624 | - int count = (int)mongoTemplate.count(new Query().addCriteria(Criteria.where("hospitalId").is(hospitalId).and("articleTypes").exists(true).and("yn") | |
| 5624 | + int count = (int)mongoTemplate.count(new Query().addCriteria(Criteria.where("hospitalId").is(hospitalId) | |
| 5625 | + .and("articleTypes").in(Arrays.asList(1,2,3,4,5)).and("yn") | |
| 5625 | 5626 | .is(YnEnums.YES.getId()).and("checkDate").gte(DateUtil.getDayFirstSecond(start)).lte(DateUtil.getDayLastSecond(end))),BabyCheckModel.class); |
| 5626 | 5627 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setData(count).setErrormsg("成功"); |
| 5627 | 5628 | } |