Commit e0b5c8f2430773321160023bb86fa5bdd0f365b5
1 parent
1003670c65
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 4 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabySieveFacede.java
View file @
e0b5c8f
... | ... | @@ -1767,9 +1767,10 @@ |
1767 | 1767 | |
1768 | 1768 | public BaseObjectResponse syncBabyEyeCheckMonthId(String hospitalId,String checkMonthId) { |
1769 | 1769 | BaseObjectResponse objectResponse = new BaseObjectResponse(); |
1770 | - BabyModelQuery babyQuery=new BabyModelQuery(); | |
1771 | - babyQuery.setHospitalId(hospitalId); | |
1772 | - List<BabyModel> list=babyBookbuildingService.queryBabyBuildByCond(babyQuery); | |
1770 | + Criteria criteria = new Criteria(); | |
1771 | + criteria.and("hospitalId").is(hospitalId); | |
1772 | + criteria.and("lhEyeCheckId").exists(true); | |
1773 | + List<BabyModel> list = mongoTemplate.find(new Query(criteria), BabyModel.class); | |
1773 | 1774 | for (BabyModel model : list) { |
1774 | 1775 | LhBabyEyelCheckQuery checkQuery=new LhBabyEyelCheckQuery(); |
1775 | 1776 | checkQuery.setBabyId(model.getId()); |