Commit 2daff5ed4ba61a2ac998139ebdb1bee72a3d26f2
1 parent
daabc9894b
Exists in
master
and in
6 other branches
12333
Showing 1 changed file with 3 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
2daff5e
... | ... | @@ -201,6 +201,7 @@ |
201 | 201 | @Override |
202 | 202 | public BaseResponse list(String key, String vcCardNo, Integer currentWeekStart, Integer currentWeekEnd, Integer age, Integer page, Integer limit, Integer userId) { |
203 | 203 | List<String> hospital = groupsFacade.findGroupHospital(userId, true) ; |
204 | + System.out.println("hospital>>> " + hospital); | |
204 | 205 | Criteria criteria = Criteria.where("yn").ne("0").and("hospitalId").in(hospital); |
205 | 206 | Criteria pCriteria = Criteria.where("yn").ne("0").and("hospitalId").in(hospital); |
206 | 207 | if(StringUtils.isNotBlank(key)) { |
207 | 208 | |
... | ... | @@ -225,8 +226,9 @@ |
225 | 226 | for (Patients patient : patients) { |
226 | 227 | ids.add(patient.getId()); |
227 | 228 | } |
229 | + criteria.and("patientId").in(ids); | |
228 | 230 | } |
229 | - criteria.and("patientId").in(ids); | |
231 | + System.out.println("ids>>> " + ids); | |
230 | 232 | |
231 | 233 | PageResult pageResult = findMongoPage(PatientWeight.class, new Query(criteria).with(new Sort(Sort.Direction.DESC, "created")), page, limit); |
232 | 234 | List<PatientWeight> patientWeights = (List<PatientWeight>) pageResult.getGrid(); |