From 9f738bf9a4336ecdf00e44068ce73997a53be476 Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Thu, 5 Jun 2025 15:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=BA=E5=91=98=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E4=B8=BA=E7=A9=BA=E6=97=B6=20=E5=88=86=E6=9D=83?= =?UTF-8?q?=E5=90=8E=E9=A1=B5=E9=9D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organization/service/impl/ManagerDetachServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/engine/organization/service/impl/ManagerDetachServiceImpl.java b/src/com/engine/organization/service/impl/ManagerDetachServiceImpl.java index 69e7740d..8a6669d2 100644 --- a/src/com/engine/organization/service/impl/ManagerDetachServiceImpl.java +++ b/src/com/engine/organization/service/impl/ManagerDetachServiceImpl.java @@ -1,5 +1,6 @@ package com.engine.organization.service.impl; +import cn.hutool.core.collection.CollectionUtil; import com.api.browser.bean.BrowserBean; import com.api.browser.bean.SearchConditionGroup; import com.api.browser.bean.SearchConditionItem; @@ -252,9 +253,12 @@ public class ManagerDetachServiceImpl extends Service implements ManagerDetachSe HrmCommonService hrmCommonService = new HrmCommonServiceImpl(); List roleIds = new ArrayList<>(Arrays.asList(hrmCommonService.getRoleIds(uId).split(","))); List integerList = roleIds.stream() + .filter(s -> !s.trim().isEmpty()) .map(Integer::parseInt) .collect(Collectors.toList()); - detachListById.addAll(MapperProxyFactory.getProxy(ManagerDetachMapper.class).selectDetachListByManager(integerList)); + if (!CollectionUtil.isEmpty(integerList)) { + detachListById.addAll(MapperProxyFactory.getProxy(ManagerDetachMapper.class).selectDetachListByManager(integerList)); + } for (ManagerDetachPO managerDetachPO : detachListById) { List ids = Stream.of(managerDetachPO.getJclRolelevel().split(",")).map(Integer::parseInt).collect(Collectors.toList()); if (CollectionUtils.isNotEmpty(ids)) {