企业同步
This commit is contained in:
@@ -112,4 +112,45 @@
|
||||
#{userId}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<delete id="deleteAuthMappingByIds">
|
||||
delete from user_auth_mapping_${eid}
|
||||
where id in
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectIdsByUserId" resultType="java.lang.Long">
|
||||
select id from user_auth_mapping_${eid} where user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<insert id="insertUserAuthMapping">
|
||||
insert into user_auth_mapping_${eid}
|
||||
(
|
||||
`user_id`,
|
||||
`mapping_id`,
|
||||
`type`,
|
||||
`source`,
|
||||
`create_id`,
|
||||
`create_time`
|
||||
)
|
||||
values
|
||||
(
|
||||
#{auth.userId},
|
||||
#{auth.mappingId},
|
||||
#{auth.type},
|
||||
#{auth.source},
|
||||
#{auth.createId},
|
||||
#{auth.createTime}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<delete id="deleteAuthMappingByIdAndType">
|
||||
delete from user_auth_mapping_${eid}
|
||||
where type=#{type} and mapping_id in
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user