|
@@ -124,8 +124,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
|
|
<if test="authorityLv != null and authorityLv != ''">authority_lv,</if>
|
|
|
- <if test="parentId != null and parentId != ''">parent_id,</if>
|
|
|
- create_time
|
|
|
+ parent_id,
|
|
|
+ create_time
|
|
|
)values(
|
|
|
<if test="roleId != null and roleId != 0">#{roleId},</if>
|
|
|
<if test="roleName != null and roleName != ''">#{roleName},</if>
|
|
@@ -139,8 +139,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
|
|
<if test="authorityLv != null and authorityLv != ''">#{authorityLv},</if>
|
|
|
- <if test="parentId != null and parentId != ''">#{parentId},</if>
|
|
|
- sysdate()
|
|
|
+ #{parentId},
|
|
|
+ sysdate()
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -157,7 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
<if test="authorityLv != null and authorityLv != ''">authority_lv = #{authorityLv},</if>
|
|
|
- <if test="parentId != null and parentId != ''">parent_id = #{parentId},</if>
|
|
|
+ parent_id = #{parentId},
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where role_id = #{roleId}
|