hongjli
2025-05-14 3d191e81842cf3bcd6f841fbe2fc3d451c45ef99
aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -37,13 +37,13 @@
         AND r.role_id = #{roleId}
      </if>
      <if test="roleName != null and roleName != ''">
         AND r.role_name like concat('%', #{roleName}, '%')
         AND r.role_name like '%' || #{roleName} || '%'
      </if>
      <if test="status != null and status != ''">
         AND r.status = #{status}
      </if>
      <if test="roleKey != null and roleKey != ''">
         AND r.role_key like concat('%', #{roleKey}, '%')
         AND r.role_key like '%' || #{roleKey} || '%'
      </if>
      <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
         and date_format(r.create_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
@@ -117,7 +117,7 @@
          <if test="status != null and status != ''">#{status},</if>
          <if test="remark != null and remark != ''">#{remark},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>
          sysdate()
          now()
       )
   </insert>
   
@@ -133,7 +133,7 @@
          <if test="status != null and status != ''">status = #{status},</if>
          <if test="remark != null">remark = #{remark},</if>
          <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
          update_time = sysdate()
          update_time = now()
       </set>
       where role_id = #{roleId}
   </update>