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