Commit 1c680939bc684665de5802d0f3bbb54bb8baa2c7
1 parent
e20eff6e02
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyHealthFacade.java
View file @
1c68093
| ... | ... | @@ -210,7 +210,7 @@ |
| 210 | 210 | babyMap.put("mphone", babyModel.getMphone()); |
| 211 | 211 | row.put("baby", babyMap); |
| 212 | 212 | // ids.add(babyModel.getId()); |
| 213 | - Criteria criteriaCheck = Criteria.where("buildId").in(babyModel.getId()); | |
| 213 | + Criteria criteriaCheck = Criteria.where("buildId").in(babyModel.getId()).and("yn").is(1); | |
| 214 | 214 | // pageResult = findMongoPage(BabyCheckModel.class, new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), page, limit); |
| 215 | 215 | List<BabyCheckModel> babyCheckModelList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.ASC, "created")), BabyCheckModel.class); |
| 216 | 216 | |
| ... | ... | @@ -1111,7 +1111,7 @@ |
| 1111 | 1111 | // listFuture.add(commonThreadPool.submit(new Callable() { |
| 1112 | 1112 | // @Override |
| 1113 | 1113 | // public Object call() throws Exception { |
| 1114 | - Criteria criteriaCheck = Criteria.where("buildId").in(babyModel.getId()); | |
| 1114 | + Criteria criteriaCheck = Criteria.where("buildId").in(babyModel.getId()).and("yn").is(1); | |
| 1115 | 1115 | List<BabyCheckModel> babyCheckModelList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.ASC, "created")), BabyCheckModel.class); |
| 1116 | 1116 | |
| 1117 | 1117 | List<Map<String, Object>> listAge = new ArrayList<>(); |