绑定角色逻辑

This commit is contained in:
yuezhihang
2022-07-15 11:35:03 +08:00
parent e2ce4daf7d
commit 26adc2ca8d
3 changed files with 69 additions and 5 deletions
@@ -102,4 +102,7 @@ public interface TsRoleDao extends BaseMapper<TsRole> {
@Select("select *,DATE_ADD(ts_role.operate_time,INTERVAL 8 HOUR) as operateTime from ts_role where ts_role.ID = #{roleId}")
TsRole getAllDatas(@Param("roleId") String roleId);
@Select("select ROLE_ID from ts_user_role where USER_ID = #{userId}")
List<String> getRoleByUserId(@Param("userId") String userId);
}