Commit acec938084c453a8b0573b48330d56ff98c73400
1 parent
ce3a3bb505
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/NewbornServiceImpl.java
View file @
acec938
| ... | ... | @@ -144,7 +144,7 @@ |
| 144 | 144 | if (CollectionUtils.isNotEmpty(permissionsModels)) { |
| 145 | 145 | Set<String> set = permissionsModels.get(0).getData().keySet(); |
| 146 | 146 | Iterator<String> it = set.iterator(); |
| 147 | - BabyModel babyModel = mongoTemplate.findOne(Query.query(Criteria.where("hospitalId").in(set) | |
| 147 | + BabyModel babyModel = mongoTemplate.findOne(Query.query(Criteria.where("hospitalId").in(it) | |
| 148 | 148 | .and("pid").is(pid)).with(new Sort(Sort.Direction.DESC, "created")), BabyModel.class); |
| 149 | 149 | if(babyModel == null) { |
| 150 | 150 | return false; // 需要建档 |