用户管理角色选择权限控制

master
RuoYi 5 years ago
parent da5c1328be
commit d452ddf5f0
  1. 3
      ruoyi/src/main/java/com/ruoyi/project/system/service/impl/SysRoleServiceImpl.java

@ -11,6 +11,7 @@ import org.springframework.transaction.annotation.Transactional;
import com.ruoyi.common.constant.UserConstants; import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.exception.CustomException; import com.ruoyi.common.exception.CustomException;
import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.spring.SpringUtils;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope; import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.system.domain.SysRole; import com.ruoyi.project.system.domain.SysRole;
import com.ruoyi.project.system.domain.SysRoleDept; import com.ruoyi.project.system.domain.SysRoleDept;
@ -82,7 +83,7 @@ public class SysRoleServiceImpl implements ISysRoleService
*/ */
public List<SysRole> selectRoleAll() public List<SysRole> selectRoleAll()
{ {
return roleMapper.selectRoleAll(); return SpringUtils.getAopProxy(this).selectRoleList(new SysRole());
} }
/** /**

Loading…
Cancel
Save