项目权限(差一个认证参数列表权限没弄)

This commit is contained in:
CD
2022-11-14 11:27:21 +08:00
parent e8223399ac
commit bc514fdaf2
13 changed files with 973 additions and 27 deletions
@@ -43,4 +43,6 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
"where user_id = #{userId}")
List<SysRole> getRoleByUserId(@Param("userId") String userId);
@Select("SELECT count(0) from sys_user_role ur LEFT JOIN sys_role r ON r.id = ur.role_id WHERE r.role_code = #{roleCode} and ur.user_id = #{userId}")
Integer queryUserRoleByCode(@Param("roleCode")String roleCode, @Param("userId")String userId);
}