|
|
|
|
@ -39,10 +39,10 @@ public interface SysRoleMapper extends BaseMapperPlus<SysRole, SysRoleVo> {
|
|
|
|
|
* @param queryWrapper 查询条件
|
|
|
|
|
* @return 包含角色信息的分页结果
|
|
|
|
|
*/
|
|
|
|
|
@DataPermission({
|
|
|
|
|
@DataColumn(key = "deptName", value = "create_dept"),
|
|
|
|
|
@DataColumn(key = "userName", value = "create_by")
|
|
|
|
|
})
|
|
|
|
|
// @DataPermission({
|
|
|
|
|
// @DataColumn(key = "deptName", value = "create_dept"),
|
|
|
|
|
// @DataColumn(key = "userName", value = "create_by")
|
|
|
|
|
// })
|
|
|
|
|
default Page<SysRoleVo> selectPageRoleList(@Param("page") Page<SysRole> page, @Param(Constants.WRAPPER) Wrapper<SysRole> queryWrapper) {
|
|
|
|
|
return this.selectVoPage(page, queryWrapper);
|
|
|
|
|
}
|
|
|
|
|
@ -53,10 +53,10 @@ public interface SysRoleMapper extends BaseMapperPlus<SysRole, SysRoleVo> {
|
|
|
|
|
* @param queryWrapper 查询条件
|
|
|
|
|
* @return 角色数据集合信息
|
|
|
|
|
*/
|
|
|
|
|
@DataPermission({
|
|
|
|
|
@DataColumn(key = "deptName", value = "create_dept"),
|
|
|
|
|
@DataColumn(key = "userName", value = "create_by")
|
|
|
|
|
})
|
|
|
|
|
// @DataPermission({
|
|
|
|
|
// @DataColumn(key = "deptName", value = "create_dept"),
|
|
|
|
|
// @DataColumn(key = "userName", value = "create_by")
|
|
|
|
|
// })
|
|
|
|
|
default List<SysRoleVo> selectRoleList(@Param(Constants.WRAPPER) Wrapper<SysRole> queryWrapper) {
|
|
|
|
|
return this.selectVoList(queryWrapper);
|
|
|
|
|
}
|
|
|
|
|
@ -67,10 +67,10 @@ public interface SysRoleMapper extends BaseMapperPlus<SysRole, SysRoleVo> {
|
|
|
|
|
* @param roleIds 角色ID列表
|
|
|
|
|
* @return 匹配的角色数量
|
|
|
|
|
*/
|
|
|
|
|
@DataPermission({
|
|
|
|
|
@DataColumn(key = "deptName", value = "create_dept"),
|
|
|
|
|
@DataColumn(key = "userName", value = "create_by")
|
|
|
|
|
})
|
|
|
|
|
// @DataPermission({
|
|
|
|
|
// @DataColumn(key = "deptName", value = "create_dept"),
|
|
|
|
|
// @DataColumn(key = "userName", value = "create_by")
|
|
|
|
|
// })
|
|
|
|
|
default long selectRoleCount(List<Long> roleIds) {
|
|
|
|
|
return this.selectCount(new LambdaQueryWrapper<SysRole>().in(SysRole::getRoleId, roleIds));
|
|
|
|
|
}
|
|
|
|
|
@ -81,10 +81,10 @@ public interface SysRoleMapper extends BaseMapperPlus<SysRole, SysRoleVo> {
|
|
|
|
|
* @param roleId 角色ID
|
|
|
|
|
* @return 对应的角色信息
|
|
|
|
|
*/
|
|
|
|
|
@DataPermission({
|
|
|
|
|
@DataColumn(key = "deptName", value = "create_dept"),
|
|
|
|
|
@DataColumn(key = "userName", value = "create_by")
|
|
|
|
|
})
|
|
|
|
|
// @DataPermission({
|
|
|
|
|
// @DataColumn(key = "deptName", value = "create_dept"),
|
|
|
|
|
// @DataColumn(key = "userName", value = "create_by")
|
|
|
|
|
// })
|
|
|
|
|
default SysRoleVo selectRoleById(Long roleId) {
|
|
|
|
|
return this.selectVoById(roleId);
|
|
|
|
|
}
|
|
|
|
|
|