Skip to content

Commit

Permalink
fix(系统模块): 修复角色授权语句错误
Browse files Browse the repository at this point in the history
  • Loading branch information
houtaroy committed Nov 3, 2023
1 parent d681c48 commit 00553f8
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,17 @@

<insert id="authorize">
delete from k_role_permission where role_id = #{id};
<if test="!checkedIds.isEmpty() || !halfCheckedIds.isEmpty()">
<if test="!checkedIds.isEmpty()">
insert into k_role_permission values
<foreach item="checkedId" index="index" collection="checkedIds" separator=",">
(#{id}, #{checkedId}, ${@cn.koala.persist.domain.YesNo@NO.value})
</foreach>
</foreach>;
</if>
<if test="!halfCheckedIds.isEmpty()">
insert into k_role_permission values
<foreach item="halfCheckedId" index="index" collection="halfCheckedIds" separator=",">
(#{id}, #{halfCheckedId}, ${@cn.koala.persist.domain.YesNo@YES.value})
</foreach>
</foreach>;
</if>
</insert>

Expand Down

0 comments on commit 00553f8

Please sign in to comment.