Commit 09a3a971ff951dfc0382a024a70835a8e59be26c

Authored by RuoYi
1 parent f18b3bc6

操作日志排序调整

ruoyi/src/main/resources/mybatis/monitor/SysOperLogMapper.xml
... ... @@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
25 25  
26 26 <sql id="selectOperLogVo">
27 27 select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, oper_time
28   - from sys_oper_log order by oper_id desc
  28 + from sys_oper_log
29 29 </sql>
30 30  
31 31 <insert id="insertOperlog" parameterType="SysOperLog">
... ... @@ -39,7 +39,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
39 39 <if test="title != null and title != ''">
40 40 AND title like concat('%', #{title}, '%')
41 41 </if>
42   - <if test="businessType != null">
  42 + <if test="businessType != null and businessType != ''">
43 43 AND business_type = #{businessType}
44 44 </if>
45 45 <if test="businessTypes != null and businessTypes.length > 0">
... ... @@ -61,6 +61,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
61 61 and date_format(oper_time,'%y%m%d') &lt;= date_format(#{endTime},'%y%m%d')
62 62 </if>
63 63 </where>
  64 + order by oper_id desc
64 65 </select>
65 66  
66 67 <delete id="deleteOperLogByIds" parameterType="Long">
... ...