Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
framework-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 13424559
authored
Jul 09, 2024
by
henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件
1 parent
e99746f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
arch-clouds/log/src/main/resources/mapper/SysEventLogMapper.xml
arch-clouds/log/src/main/resources/mapper/SysEventLogMapper.xml
View file @
1342455
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment