Commit e27ba153de5bf989ce0bcc6b102c0b8745737449
1 parent
68f3e2014c
Exists in
master
and in
6 other branches
12333
Showing 1 changed file with 1 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
e27ba15
... | ... | @@ -201,7 +201,6 @@ |
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); | |
205 | 204 | Criteria criteria = Criteria.where("yn").ne("0").and("hospitalId").in(hospital); |
206 | 205 | Criteria pCriteria = Criteria.where("yn").ne("0").and("hospitalId").in(hospital); |
207 | 206 | if(StringUtils.isNotBlank(key)) { |
... | ... | @@ -228,7 +227,6 @@ |
228 | 227 | } |
229 | 228 | criteria.and("patientId").in(ids); |
230 | 229 | } |
231 | - System.out.println("ids>>> " + ids); | |
232 | 230 | |
233 | 231 | PageResult pageResult = findMongoPage(PatientWeight.class, new Query(criteria).with(new Sort(Sort.Direction.DESC, "created")), page, limit); |
234 | 232 | List<PatientWeight> patientWeights = (List<PatientWeight>) pageResult.getGrid(); |
... | ... | @@ -236,7 +234,7 @@ |
236 | 234 | if(CollectionUtils.isNotEmpty(patientWeights)) { |
237 | 235 | for (PatientWeight patientWeight : patientWeights) { |
238 | 236 | Patients p = mongoTemplate.findById(patientWeight.getPatientId(), Patients.class); |
239 | - if(patients != null) { | |
237 | + if(p != null) { | |
240 | 238 | Map<String, Object> temp = new LinkedHashMap<>(); |
241 | 239 | temp.put("id", patientWeight.getId()); |
242 | 240 | temp.put("username", p.getUsername()); |