|
|
|
@ -94,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<update id="updateRole" parameterType="SysRole">
|
|
|
|
|
update sys_role
|
|
|
|
|
update ${prefix}sys_role
|
|
|
|
|
<set>
|
|
|
|
|
<if test="roleName != null and roleName != ''">role_name = #{roleName},</if>
|
|
|
|
|
<if test="roleKey != null and roleKey != ''">role_key = #{roleKey},</if>
|
|
|
|
@ -109,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
|
|
|
|
|
insert into sys_role(
|
|
|
|
|
insert into ${prefix}sys_role(
|
|
|
|
|
<if test="roleId != null and roleId != 0">role_id,</if>
|
|
|
|
|
<if test="roleName != null and roleName != ''">role_name,</if>
|
|
|
|
|
<if test="roleKey != null and roleKey != ''">role_key,</if>
|
|
|
|
|