Commit 360e63b432f011f355fffa7fde4b9abfecc139c7
1 parent
a36eacf4f6
Exists in
master
and in
6 other branches
b
Showing 1 changed file with 2 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
360e63b
... | ... | @@ -68,9 +68,8 @@ |
68 | 68 | |
69 | 69 | @Override |
70 | 70 | public BaseResponse list(String key, String vcCardNo, Integer weekStart, Integer weekEnd, Integer age, Integer page, Integer limit, Integer userId) { |
71 | - List<String> hospitalIds = accessPermissionFacade.getCurrentUserHospPermissions(userId); | |
72 | - Criteria criteria = Criteria.where("yn").is(1).and("hospitalId").in(hospitalIds); | |
73 | - List<String> pids = mongoUtil.getPidsByCondition2(hospitalIds, key, vcCardNo, weekStart, weekEnd, age); | |
71 | + Criteria criteria = Criteria.where("yn").is(1); | |
72 | + List<String> pids = mongoUtil.getPidsByCondition2(null, key, vcCardNo, weekStart, weekEnd, age); | |
74 | 73 | criteria.and("pid").in(pids); |
75 | 74 | PageResult pageResult = findMongoPage(BloodSugar.class, Query.query(criteria).with(new Sort(Sort.Direction.DESC, "created")), page, limit); |
76 | 75 | List<BloodSugar> bloodSugars = (List<BloodSugar>) pageResult.getGrid(); |