瀏覽代碼

更新字段匹配

tags/v2.4.1
xiaoying 1 年之前
父節點
當前提交
da03a5666e
共有 5 個文件被更改,包括 13 次插入1 次删除
  1. +1
    -1
      tuoheng_oidc_admin/src/main/resources/mapper/AuthoritiesMapper.xml
  2. 二進制
      tuoheng_oidc_admin/target/classes/com/tuoheng/mapper/AuthoritiesMapper.class
  3. 二進制
      tuoheng_oidc_admin/target/classes/com/tuoheng/mapper/ClientUserRoleMapper.class
  4. +6
    -0
      tuoheng_oidc_admin/target/classes/mapper/AuthoritiesMapper.xml
  5. +6
    -0
      tuoheng_oidc_admin/target/classes/mapper/ClientUserRoleMapper.xml

+ 1
- 1
tuoheng_oidc_admin/src/main/resources/mapper/AuthoritiesMapper.xml 查看文件

@@ -13,7 +13,7 @@
delete
from authorities
where user_id = #{userId}
and client_id = #{clientId}
and authority = #{clientId}
</delete>
<select id="selectByUserId" resultType="com.tuoheng.model.po.AuthoritiesPo">
SELECT id, user_id, username, authority

二進制
tuoheng_oidc_admin/target/classes/com/tuoheng/mapper/AuthoritiesMapper.class 查看文件


二進制
tuoheng_oidc_admin/target/classes/com/tuoheng/mapper/ClientUserRoleMapper.class 查看文件


+ 6
- 0
tuoheng_oidc_admin/target/classes/mapper/AuthoritiesMapper.xml 查看文件

@@ -9,6 +9,12 @@
(#{it.userId}, #{it.username}, #{it.authority}, #{it.createUser})
</foreach>
</insert>
<delete id="deleteByUserIdAndClient">
delete
from authorities
where user_id = #{userId}
and client_id = #{clientId}
</delete>
<select id="selectByUserId" resultType="com.tuoheng.model.po.AuthoritiesPo">
SELECT id, user_id, username, authority
FROM authorities

+ 6
- 0
tuoheng_oidc_admin/target/classes/mapper/ClientUserRoleMapper.xml 查看文件

@@ -27,6 +27,12 @@
</set>
where user_id = #{userId} and client_id = #{clientId}
</update>
<delete id="deleteByUserIdAndClient">
delete
from t_client_user_role
where user_id = #{userId}
and client_id = #{clientId}
</delete>
<select id="selectListByUserId" resultType="com.tuoheng.model.po.ClientUserRolePo">
SELECT *
FROM t_client_user_role

Loading…
取消
儲存