|
@@ -17,6 +17,7 @@ import org.dromara.common.core.constant.SystemConstants;
|
|
|
import org.dromara.common.core.constant.TenantConstants;
|
|
|
import org.dromara.common.core.domain.model.LoginUser;
|
|
|
import org.dromara.common.core.exception.ServiceException;
|
|
|
+import org.dromara.common.core.service.RoleService;
|
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
|
import org.dromara.common.core.utils.StreamUtils;
|
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
@@ -47,7 +48,7 @@ import java.util.*;
|
|
|
*/
|
|
|
@RequiredArgsConstructor
|
|
|
@Service
|
|
|
-public class SysRoleServiceImpl implements ISysRoleService {
|
|
|
+public class SysRoleServiceImpl implements ISysRoleService, RoleService {
|
|
|
|
|
|
private final SysRoleMapper baseMapper;
|
|
|
private final SysRoleMenuMapper roleMenuMapper;
|
|
@@ -351,7 +352,7 @@ public class SysRoleServiceImpl implements ISysRoleService {
|
|
|
private int insertRoleMenu(SysRoleBo role) {
|
|
|
int rows = 1;
|
|
|
// 新增用户与角色管理
|
|
|
- List<SysRoleMenu> list = new ArrayList<SysRoleMenu>();
|
|
|
+ List<SysRoleMenu> list = new ArrayList<>();
|
|
|
for (Long menuId : role.getMenuIds()) {
|
|
|
SysRoleMenu rm = new SysRoleMenu();
|
|
|
rm.setRoleId(role.getRoleId());
|
|
@@ -372,7 +373,7 @@ public class SysRoleServiceImpl implements ISysRoleService {
|
|
|
private int insertRoleDept(SysRoleBo role) {
|
|
|
int rows = 1;
|
|
|
// 新增角色与部门(数据权限)管理
|
|
|
- List<SysRoleDept> list = new ArrayList<SysRoleDept>();
|
|
|
+ List<SysRoleDept> list = new ArrayList<>();
|
|
|
for (Long deptId : role.getDeptIds()) {
|
|
|
SysRoleDept rd = new SysRoleDept();
|
|
|
rd.setRoleId(role.getRoleId());
|