xuhy
2025-07-11 7221f94146162703991df36995b9e3ca50402ff1
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -189,6 +189,7 @@
          <if test="createBy != null and createBy != ''">create_by,</if>
          <if test="removeDays != null">removeDays,</if>
          <if test="postType != null">postType,</if>
          <if test="roleType != null">role_type,</if>
          create_time
       )values(
          <if test="roleId != null and roleId != 0">#{roleId},</if>
@@ -203,7 +204,9 @@
          <if test="createBy != null and createBy != ''">#{createBy},</if>
          <if test="removeDays != null">#{removeDays},</if>
          <if test="postType != null">#{postType},</if>
          sysdate()
      <if test="roleType != null">#{roleType},</if>
      sysdate()
       )
   </insert>
   
@@ -221,6 +224,7 @@
          <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
          <if test="removeDays != null">removeDays = #{removeDays},</if>
          <if test="postType != null">postType = #{postType},</if>
          <if test="roleType != null">role_type = #{roleType},</if>
          update_time = sysdate()
       </set>
       where role_id = #{roleId}