|
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<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
|
|
|
- from sys_oper_log
|
|
|
+ from sys_oper_log d
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insertOperlog" parameterType="com.usky.system.domain.SysOperLog">
|
|
@@ -111,7 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<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
|
|
|
- FROM sys_oper_log
|
|
|
+ FROM sys_oper_log d
|
|
|
<where>
|
|
|
<if test="title != null and title != ''">
|
|
|
AND title like concat('%', #{title}, '%')
|
|
@@ -152,7 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectOperLogById" parameterType="Long" resultMap="SysOperLogResult">
|
|
|
<include refid="selectOperLogVo"/>
|
|
|
- where oper_id = #{operId}
|
|
|
+ where d.oper_id = #{operId}
|
|
|
</select>
|
|
|
|
|
|
<update id="cleanOperLog">
|