组件功能调整
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.njcn.user.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
@@ -127,6 +128,9 @@ public class ComponentServiceImpl extends ServiceImpl<ComponentMapper, Component
|
||||
list = componentMapper.getAllComponent();
|
||||
} else {
|
||||
List<String> componentList = roleComponentService.selectRoleComponent(roleList.stream().map(Role::getId).collect(Collectors.toList()));
|
||||
if (CollectionUtil.isEmpty(componentList)) {
|
||||
return result;
|
||||
}
|
||||
list = componentMapper.getComponentByList(componentList);
|
||||
}
|
||||
list.forEach(item -> {
|
||||
|
||||
Reference in New Issue
Block a user