Commit 13424559 by henry

修改配置文件

1 parent e99746f2
...@@ -64,9 +64,6 @@ ...@@ -64,9 +64,6 @@
<if test="logLev != null and logLev != ''"> <if test="logLev != null and logLev != ''">
and log_lev = #{logLev} and log_lev = #{logLev}
</if> </if>
<if test="isWarn != null">
and is_warn = #{isWarn}
</if>
<if test="result != null and result != ''"> <if test="result != null and result != ''">
and result = #{result} and result = #{result}
</if> </if>
...@@ -124,9 +121,6 @@ ...@@ -124,9 +121,6 @@
<if test="logLev != null and logLev != ''"> <if test="logLev != null and logLev != ''">
and log_lev = #{logLev} and log_lev = #{logLev}
</if> </if>
<if test="isWarn != null">
and is_warn = #{isWarn}
</if>
<if test="result != null and result != ''"> <if test="result != null and result != ''">
and result = #{result} and result = #{result}
</if> </if>
...@@ -148,14 +142,14 @@ ...@@ -148,14 +142,14 @@
<!--新增所有列--> <!--新增所有列-->
<insert id="insert" keyProperty="logId" useGeneratedKeys="true"> <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) 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>
<insert id="insertBatch" keyProperty="logId" useGeneratedKeys="true"> <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) 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 values
<foreach collection="entities" item="entity" separator=","> <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> </foreach>
</insert> </insert>
...@@ -163,7 +157,7 @@ ...@@ -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) 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 values
<foreach collection="entities" item="entity" separator=","> <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> </foreach>
on duplicate key update on duplicate key update
user_id = values(user_id), user_id = values(user_id),
...@@ -209,9 +203,6 @@ ...@@ -209,9 +203,6 @@
<if test="logLev != null and logLev != ''"> <if test="logLev != null and logLev != ''">
log_lev = #{logLev}, log_lev = #{logLev},
</if> </if>
<if test="isWarn != null">
is_warn = #{isWarn},
</if>
<if test="result != null and result != ''"> <if test="result != null and result != ''">
result = #{result}, result = #{result},
</if> </if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!