From 77a3bd0f585553d558edc676a1a255227d05c642 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 27 Dec 2022 11:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91=E3=80=82?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ResourceServiceImpl.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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