|
@@ -26,11 +26,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="startTime" column="start_time" />
|
|
|
<result property="endTime" column="end_time" />
|
|
|
+ <result property="consumingTime" column="consuming_time" />
|
|
|
<result property="consumingTimeWithUnit" column="consuming_time_with_unit" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectOperLogVo">
|
|
|
- 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, start_time, end_time, consuming_time_with_unit
|
|
|
+ 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, start_time, end_time, consuming_time, consuming_time_with_unit
|
|
|
from sys_oper_log d
|
|
|
</sql>
|
|
|
|
|
@@ -57,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null"> create_by, </if>
|
|
|
<if test="startTime != null"> start_time, </if>
|
|
|
<if test="endTime != null"> end_time, </if>
|
|
|
+ <if test="consumingTime != null"> consuming_time, </if>
|
|
|
<if test="consumingTimeWithUnit !=null"> consuming_time_with_unit, </if>
|
|
|
</trim>
|
|
|
values
|
|
@@ -81,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null"> #{createBy},</if>
|
|
|
<if test="startTime != null"> #{startTime},</if>
|
|
|
<if test="endTime != null"> #{endTime},</if>
|
|
|
+ <if test="consumingTime != null"> #{consumingTime},</if>
|
|
|
<if test="consumingTimeWithUnit !=null"> #{consumingTimeWithUnit},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -122,7 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectOperLogListExport" parameterType="com.usky.system.domain.SysOperLog" resultType="com.usky.system.service.vo.SysOperLogExportVO">
|
|
|
- SELECT oper_id, oper_ip, oper_name, title, (CASE business_type WHEN '0' THEN '其它' WHEN '1' THEN '新增' WHEN '2' THEN '修改' ELSE '删除' END) AS businessType, request_method, (CASE STATUS WHEN '0' THEN '成功' ELSE '失败' END) AS STATUS, oper_time, start_time, end_time, consuming_time_with_unit
|
|
|
+ SELECT oper_id, oper_ip, oper_name, title, (CASE business_type WHEN '0' THEN '其它' WHEN '1' THEN '新增' WHEN '2' THEN '修改' ELSE '删除' END) AS businessType, request_method, (CASE STATUS WHEN '0' THEN '成功' ELSE '失败' END) AS STATUS, oper_time, start_time, end_time, consuming_time, consuming_time_with_unit
|
|
|
FROM sys_oper_log d
|
|
|
<where>
|
|
|
<if test="title != null and title != ''">
|