Compare commits

..

No commits in common. "e64b5952cad472eb7fba39b997942dcbcddc1615" and "efaba0980dc2dc43c8ad4ae568f57cc4b3f3f4ce" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -20,12 +20,11 @@
-->
<update id="deleteByUserIds">
UPDATE sys_role_user SET del_flag = 1, update_date = NOW(), updater = #{updater}
UPDATE sys_role_user SET del_flag = 0, update_date = NOW(), updater = #{updater}
where user_id in
<foreach item="userId" collection="userIds" open="(" separator="," close=")">
#{userId}
</foreach>
AND del_flag = 0
</update>
<select id="getRoleIdList" resultType="long">

View File

@ -33,7 +33,7 @@
</if>
<if test="role_id != null">
AND EXISTS(SELECT 1 FROM sys_role_user WHERE sys_role_user.user_id = t1.id AND sys_role_user.role_id =
#{role_id} AND sys_role_user.del_flag = 0)
#{role_id}) AND sys_role_user.del_flag = 0
</if>
</select>