Commit 13424559 by henry

修改配置文件

1 parent e99746f2
......@@ -64,9 +64,6 @@
<if test="logLev != null and logLev != ''">
and log_lev = #{logLev}
</if>
<if test="isWarn != null">
and is_warn = #{isWarn}
</if>
<if test="result != null and result != ''">
and result = #{result}
</if>
......@@ -124,9 +121,6 @@
<if test="logLev != null and logLev != ''">
and log_lev = #{logLev}
</if>
<if test="isWarn != null">
and is_warn = #{isWarn}
</if>
<if test="result != null and result != ''">
and result = #{result}
</if>
......@@ -148,14 +142,14 @@
<!--新增所有列-->
<insert id="insert" keyProperty="logId" useGeneratedKeys="true">
insert into sys_event_log(log_id,user_id, username, ip_addr, create_time, event_type, event_content, log_type, log_lev, result, user_code, is_read, request_time, request_params ,cost_time)
values (#{logId},#{userId}, #{username}, #{ipAddr}, #{createTime}, #{eventType}, #{eventContent}, #{logType}, #{logLev}, #{isWarn}, #{result}, #{userCode}, #{isRead}, #{requestTime}, #{requestParams}, #{costTime})
values (#{logId},#{userId}, #{username}, #{ipAddr}, #{createTime}, #{eventType}, #{eventContent}, #{logType}, #{logLev}, #{result}, #{userCode}, #{isRead}, #{requestTime}, #{requestParams}, #{costTime})
</insert>
<insert id="insertBatch" keyProperty="logId" useGeneratedKeys="true">
insert into sys_event_log(user_id, username, ip_addr, create_time, event_type, event_content, log_type, log_lev, result, user_code, is_read, request_time, request_params)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.userId}, #{entity.username}, #{entity.ipAddr}, #{entity.createTime}, #{entity.eventType}, #{entity.eventContent}, #{entity.logType}, #{entity.logLev}, #{entity.isWarn}, #{entity.result}, #{entity.userCode}, #{entity.isRead}, #{entity.requestTime}, #{entity.requestParams})
(#{entity.userId}, #{entity.username}, #{entity.ipAddr}, #{entity.createTime}, #{entity.eventType}, #{entity.eventContent}, #{entity.logType}, #{entity.logLev}, #{entity.result}, #{entity.userCode}, #{entity.isRead}, #{entity.requestTime}, #{entity.requestParams})
</foreach>
</insert>
......@@ -163,7 +157,7 @@
insert into sys_event_log(user_id, username, ip_addr, create_time, event_type, event_content, log_type, log_lev, result, user_code, is_read, request_time, request_params)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.userId}, #{entity.username}, #{entity.ipAddr}, #{entity.createTime}, #{entity.eventType}, #{entity.eventContent}, #{entity.logType}, #{entity.logLev}, #{entity.isWarn}, #{entity.result}, #{entity.userCode}, #{entity.isRead}, #{entity.requestTime}, #{entity.requestParams})
(#{entity.userId}, #{entity.username}, #{entity.ipAddr}, #{entity.createTime}, #{entity.eventType}, #{entity.eventContent}, #{entity.logType}, #{entity.logLev}, #{entity.result}, #{entity.userCode}, #{entity.isRead}, #{entity.requestTime}, #{entity.requestParams})
</foreach>
on duplicate key update
user_id = values(user_id),
......@@ -209,9 +203,6 @@
<if test="logLev != null and logLev != ''">
log_lev = #{logLev},
</if>
<if test="isWarn != null">
is_warn = #{isWarn},
</if>
<if test="result != null and result != ''">
result = #{result},
</if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!