Commit aadd7259cd380c51997a0312579a7414c4840546
1 parent
88c88a9399
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabySieveFacede.java
View file @
aadd725
... | ... | @@ -244,7 +244,7 @@ |
244 | 244 | } |
245 | 245 | List <Patients> patients = patientsService.queryPatient(patientsQuery); |
246 | 246 | Patients pat = null; |
247 | - if (patients == null && patients.size() == 0) { | |
247 | + if (CollectionUtils.isEmpty(patients)) { | |
248 | 248 | return new BaseResponse().setErrorcode(ErrorCodeConstants.BUSINESS_ERROR). |
249 | 249 | setErrormsg("该孕妇还未在本院建档,不能进行新生儿筛查申请!"); |
250 | 250 | } |