xuhy
2025-12-26 8ed3d4aa2d4f93da55c040bbc81382038f7f0109
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
@@ -90,8 +90,9 @@
            sol.operator_type AS operatorType,sol.oper_name AS operName,sol.dept_name AS deptName, sol.oper_url AS operUrl, sol.oper_ip AS operIp,
            sol.oper_location AS operLocation, sol.oper_param AS operLocation,sol.json_result AS jsonResult, sol.status AS status,sol.error_msg AS errorMsg,
            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
            sol.userId AS userId,sol.nickName AS nickName,sol.role_type AS roleType
      from sys_oper_log sol
      left join sys_user u on sol.userId = u.user_id
      <where>
         <if test="query.nickName != null and query.nickName != ''">
            AND sol.nickName like concat('%', #{query.nickName}, '%')
@@ -103,6 +104,12 @@
            AND sol.oper_time &gt;= #{query.startTime}
            AND sol.oper_time &lt;= #{query.endTime}
         </if>
         <if test="query.roleType != null">
            AND sol.role_type = #{query.roleType}
         </if>
         <if test="query.objectId != null and query.objectId != ''">
            AND u.object_id = #{query.objectId}
         </if>
      </where>
      ORDER BY sol.oper_time DESC
   </select>