diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java index 463344e4..d3856978 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java @@ -2871,8 +2871,9 @@ public class ResourceServiceImpl extends CrudServiceImpl ucsApplyDtoList = resourceDao.selectCensusApplyTable(params); result.addAll(ucsApplyDtoList); @@ -2890,7 +2891,8 @@ public class ResourceServiceImpl extends CrudServiceImpl lcApplyDtoList = lcSelectCensusApplyTable(params); result.addAll(lcApplyDtoList.stream().skip((curPage - 1) * limit).limit(limit).collect(Collectors.toList())); return new PageData(result, lcApplyDtoList.size()); @@ -2911,7 +2913,9 @@ public class ResourceServiceImpl extends CrudServiceImpl resultList = new ArrayList<>(); - if (params.containsKey("type") && (null == params.get("type") || org.apache.commons.lang3.StringUtils.isBlank(params.get("type").toString()))) { //查所有 + if (!params.containsKey("type") || + (params.containsKey("type") && org.apache.commons.lang3.StringUtils.isNotEmpty(params.get("type") != null ? params.get("type").toString() : null)) + ) { // 查所有 resultList = resourceDao.selectCensusApplyTable(params); try { List lcApplyDtoList = lcSelectCensusApplyTable(params); @@ -2924,7 +2928,8 @@ public class ResourceServiceImpl extends CrudServiceImpl