diff --git a/kernel-s-group/group-api/src/main/java/cn/stylefeng/roses/kernel/group/api/GroupConditionApi.java b/kernel-s-group/group-api/src/main/java/cn/stylefeng/roses/kernel/group/api/GroupConditionApi.java index 174a33672..13034442d 100644 --- a/kernel-s-group/group-api/src/main/java/cn/stylefeng/roses/kernel/group/api/GroupConditionApi.java +++ b/kernel-s-group/group-api/src/main/java/cn/stylefeng/roses/kernel/group/api/GroupConditionApi.java @@ -67,6 +67,6 @@ public interface GroupConditionApi { * @author fengshuonan * @since 2023/5/30 17:15 */ - void renderBizListGroupName(String groupBizCode, List businessList); + void renderBizListGroupName(String groupBizCode, List businessList); } diff --git a/kernel-s-group/group-business/src/main/java/cn/stylefeng/roses/kernel/group/modular/service/impl/SysGroupServiceImpl.java b/kernel-s-group/group-business/src/main/java/cn/stylefeng/roses/kernel/group/modular/service/impl/SysGroupServiceImpl.java index 3aa2a9efe..50cfc9846 100644 --- a/kernel-s-group/group-business/src/main/java/cn/stylefeng/roses/kernel/group/modular/service/impl/SysGroupServiceImpl.java +++ b/kernel-s-group/group-business/src/main/java/cn/stylefeng/roses/kernel/group/modular/service/impl/SysGroupServiceImpl.java @@ -156,7 +156,11 @@ public class SysGroupServiceImpl extends ServiceImpl i } @Override - public void renderBizListGroupName(String groupBizCode, List businessList) { + public void renderBizListGroupName(String groupBizCode, List businessList) { + + if (ObjectUtil.isEmpty(businessList)) { + return; + } // 查询结果中有没有用户挂标签的,有的话就返回中文分组名称 SysGroupRequest sysGroupRequest = new SysGroupRequest();