|
@@ -31,8 +31,46 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insertOperlog" parameterType="com.usky.system.domain.SysOperLog">
|
|
|
- insert into sys_oper_log(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, dept_id, tenant_id)
|
|
|
- values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, sysdate(), #{deptId}, #{tenantId})
|
|
|
+ insert into sys_oper_log
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="title != null"> title, </if>
|
|
|
+ <if test="businessType != null"> business_type, </if>
|
|
|
+ <if test="method != null"> method, </if>
|
|
|
+ <if test="requestMethod != null"> request_method, </if>
|
|
|
+ <if test="operatorType != null"> operator_type, </if>
|
|
|
+ <if test="operName != null"> oper_name, </if>
|
|
|
+ <if test="deptName != null"> dept_name, </if>
|
|
|
+ <if test="operUrl != null"> oper_url, </if>
|
|
|
+ <if test="operIp != null"> oper_ip, </if>
|
|
|
+ <if test="operLocation != null"> oper_location, </if>
|
|
|
+ <if test="operParam != null"> oper_param, </if>
|
|
|
+ <if test="jsonResult != null"> json_result, </if>
|
|
|
+ <if test="status != null"> status, </if>
|
|
|
+ <if test="errorMsg != null"> error_msg, </if>
|
|
|
+ <if test="operTime != null"> oper_time, </if>
|
|
|
+ <if test="deptId != null"> dept_id, </if>
|
|
|
+ <if test="tenantId != null"> tenant_id, </if>
|
|
|
+ </trim>
|
|
|
+ values
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="title != null"> #{title},</if>
|
|
|
+ <if test="businessType != null"> #{businessType},</if>
|
|
|
+ <if test="method != null"> #{method},</if>
|
|
|
+ <if test="requestMethod != null"> #{requestMethod},</if>
|
|
|
+ <if test="operatorType != null"> #{operatorType},</if>
|
|
|
+ <if test="operName != null"> #{operName},</if>
|
|
|
+ <if test="deptName != null"> #{deptName},</if>
|
|
|
+ <if test="operUrl != null"> #{operUrl},</if>
|
|
|
+ <if test="operIp != null"> #{operIp},</if>
|
|
|
+ <if test="operLocation != null"> #{operLocation},</if>
|
|
|
+ <if test="operParam != null"> #{operParam},</if>
|
|
|
+ <if test="jsonResult != null"> #{jsonResult},</if>
|
|
|
+ <if test="status != null"> #{status},</if>
|
|
|
+ <if test="errorMsg != null"> #{errorMsg},</if>
|
|
|
+ <if test="operTime != null"> #{operTime},</if>
|
|
|
+ <if test="deptId != null"> #{deptId},</if>
|
|
|
+ <if test="tenantId != null"> #{tenantId},</if>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
|
|
|
<select id="selectOperLogList" parameterType="com.usky.system.domain.SysOperLog" resultMap="SysOperLogResult">
|