refactor(system): 重构系统角色服务代码结构
This commit is contained in:
-3
@@ -18,7 +18,6 @@ package cn.odboy.system.service;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.odboy.system.dal.dataobject.SystemDeptTb;
|
||||
import cn.odboy.system.dal.dataobject.SystemRoleDeptTb;
|
||||
import cn.odboy.system.dal.mysql.SystemDeptMapper;
|
||||
import cn.odboy.system.dal.mysql.SystemRoleDeptMapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -33,8 +32,6 @@ public class SystemRoleDeptService {
|
||||
|
||||
@Autowired
|
||||
private SystemRoleDeptMapper systemRoleDeptMapper;
|
||||
@Autowired
|
||||
private SystemDeptMapper systemDeptMapper;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void batchDeleteRoleDept(Set<Long> roleIds) {
|
||||
|
||||
+10
-14
@@ -60,7 +60,7 @@ public class SystemRoleService {
|
||||
private SystemUserRoleService systemUserRoleService;
|
||||
|
||||
/**
|
||||
* 创建
|
||||
* 创建 -> TestPassed
|
||||
*
|
||||
* @param args /
|
||||
*/
|
||||
@@ -91,7 +91,7 @@ public class SystemRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* 修改 -> TestPassed
|
||||
*
|
||||
* @param args /
|
||||
*/
|
||||
@@ -122,7 +122,7 @@ public class SystemRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改绑定的菜单
|
||||
* 修改绑定的菜单 -> TestPassed
|
||||
*
|
||||
* @param args /
|
||||
*/
|
||||
@@ -140,7 +140,7 @@ public class SystemRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* 删除 -> TestPassed
|
||||
*
|
||||
* @param ids /
|
||||
*/
|
||||
@@ -161,7 +161,7 @@ public class SystemRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询全部角色
|
||||
* 查询全部角色 -> TestPassed
|
||||
*/
|
||||
public List<SystemRoleTb> listAllRole() {
|
||||
LambdaQueryWrapper<SystemRoleTb> wrapper = new LambdaQueryWrapper<>();
|
||||
@@ -170,7 +170,7 @@ public class SystemRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据条件查询全部角色
|
||||
* 根据条件查询全部角色 -> TestPassed
|
||||
*
|
||||
* @param args 条件
|
||||
* @param rolePage 分页参数
|
||||
@@ -197,7 +197,7 @@ public class SystemRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询角色
|
||||
* 分页查询角色 -> TestPassed
|
||||
*
|
||||
* @param args 条件
|
||||
* @param page 分页条件
|
||||
@@ -210,7 +210,7 @@ public class SystemRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户权限信息
|
||||
* 获取用户权限信息 -> TestPassed
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 权限信息
|
||||
@@ -229,7 +229,7 @@ public class SystemRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证是否被用户关联
|
||||
* 验证是否被用户关联 -> TestPassed
|
||||
*
|
||||
* @param ids /
|
||||
*/
|
||||
@@ -263,7 +263,7 @@ public class SystemRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查用户的角色级别
|
||||
* 检查用户的角色级别 -> TestPassed
|
||||
*
|
||||
* @return /
|
||||
*/
|
||||
@@ -292,8 +292,4 @@ public class SystemRoleService {
|
||||
}
|
||||
KitExcelExporter.exportSimple(response, "部门数据", SystemRoleExportRowVo.class, rowVos);
|
||||
}
|
||||
|
||||
public List<SystemRoleTb> listByIds(Set<Long> roleIds) {
|
||||
return systemRoleMapper.selectByIds(roleIds);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ public class SystemUserRoleService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据角色查询角色级别
|
||||
* 根据角色查询角色级别 -> TestPassed
|
||||
*
|
||||
* @param roles /
|
||||
* @return /
|
||||
|
||||
Reference in New Issue
Block a user