update 修改角色适配 采用 get set 转换数据类型

This commit is contained in:
疯狂的狮子Li
2022-03-30 11:48:31 +08:00
parent f644709a99
commit 73eb9cc7d7
4 changed files with 39 additions and 10 deletions

View File

@@ -84,7 +84,7 @@ public class SysDeptServiceImpl implements ISysDeptService {
@Override
public List<Long> selectDeptListByRoleId(Long roleId) {
SysRole role = roleMapper.selectById(roleId);
return baseMapper.selectDeptListByRoleId(roleId, role.getDeptCheckStrictly() == 1);
return baseMapper.selectDeptListByRoleId(roleId, role.getDeptCheckStrictly());
}
/**

View File

@@ -123,7 +123,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
@Override
public List<Long> selectMenuListByRoleId(Long roleId) {
SysRole role = roleMapper.selectById(roleId);
return baseMapper.selectMenuListByRoleId(roleId, role.getMenuCheckStrictly() == 1);
return baseMapper.selectMenuListByRoleId(roleId, role.getMenuCheckStrictly());
}
/**