无关风月
2025-02-14 3b5b47c0a839c2245d045f93cff916db701dcb5d
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
@@ -92,21 +92,6 @@
            sol.oper_time AS operTime, sol.cost_time AS costTime,sol.companyName AS companyName,sol.roleName AS roleName,sol.phonenumber AS phonenumber,
            sol.userId AS userId,sol.nickName AS nickName
      from sys_oper_log sol
      <where>
         <if test="query.companyName != null and query.companyName != ''">
            AND sol.companyName LIKE concat('%',#{query.companyName},'%')
         </if>
         <if test="query.roleName != null and query.roleName != ''">
            AND sol.roleName LIKE concat('%',#{query.roleName},'%')
         </if>
         <if test="query.nickName != null and query.nickName != ''">
            AND sol.nickName LIKE concat('%',#{query.nickName},'%')
         </if>
         <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''">
            AND DATE_FORMAT(sol.oper_time, '%Y-%m-%d %H:%i:%s') &gt;= #{query.startTime}
            AND DATE_FORMAT(sol.oper_time, '%Y-%m-%d %H:%i:%s') &lt;= #{query.endTime}
         </if>
      </where>
      ORDER BY sol.oper_time DESC
   </select>