正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 25 | 25 | ||
| 26 | <sql id="selectOperLogVo"> | 26 | <sql id="selectOperLogVo"> |
| 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 | 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 | </sql> | 29 | </sql> |
| 30 | 30 | ||
| 31 | <insert id="insertOperlog" parameterType="SysOperLog"> | 31 | <insert id="insertOperlog" parameterType="SysOperLog"> |
| @@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 39 | <if test="title != null and title != ''"> | 39 | <if test="title != null and title != ''"> |
| 40 | AND title like concat('%', #{title}, '%') | 40 | AND title like concat('%', #{title}, '%') |
| 41 | </if> | 41 | </if> |
| 42 | - <if test="businessType != null"> | 42 | + <if test="businessType != null and businessType != ''"> |
| 43 | AND business_type = #{businessType} | 43 | AND business_type = #{businessType} |
| 44 | </if> | 44 | </if> |
| 45 | <if test="businessTypes != null and businessTypes.length > 0"> | 45 | <if test="businessTypes != null and businessTypes.length > 0"> |
| @@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 61 | and date_format(oper_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') | 61 | and date_format(oper_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') |
| 62 | </if> | 62 | </if> |
| 63 | </where> | 63 | </where> |
| 64 | + order by oper_id desc | ||
| 64 | </select> | 65 | </select> |
| 65 | 66 | ||
| 66 | <delete id="deleteOperLogByIds" parameterType="Long"> | 67 | <delete id="deleteOperLogByIds" parameterType="Long"> |
-
请 注册 或 登录 后发表评论