fix(操作日志): 修复操作日志查询不全问题
This commit is contained in:
parent
30b1267206
commit
30a2f8acf1
|
@ -4,22 +4,22 @@
|
||||||
|
|
||||||
<select id="list" resultType="io.metersphere.log.vo.OperatingLogDTO">
|
<select id="list" resultType="io.metersphere.log.vo.OperatingLogDTO">
|
||||||
SELECT
|
SELECT
|
||||||
t.id,
|
t.id,
|
||||||
t.project_id,
|
t.project_id,
|
||||||
t.oper_user,
|
t.oper_user,
|
||||||
t3.source_id,
|
t3.source_id,
|
||||||
t.oper_type,
|
t.oper_type,
|
||||||
t.oper_module,
|
t.oper_module,
|
||||||
t.oper_title,
|
t.oper_title,
|
||||||
t.oper_time,
|
t.oper_time,
|
||||||
t1.NAME userName,
|
t1.NAME userName,
|
||||||
t2.`name` projectName
|
t2.`name` projectName
|
||||||
FROM
|
FROM
|
||||||
operating_log t
|
operating_log t
|
||||||
LEFT JOIN `user` t1 ON t.oper_user = t1.id
|
LEFT JOIN `user` t1 ON t.oper_user = t1.id
|
||||||
LEFT JOIN project t2 ON t.project_id = t2.id
|
LEFT JOIN project t2 ON t.project_id = t2.id
|
||||||
LEFT JOIN workspace w on t2.workspace_id = w.id
|
LEFT JOIN workspace w on t2.workspace_id = w.id
|
||||||
INNER JOIN operating_log_resource t3 ON t.id = t3.operating_log_id
|
LEFT JOIN operating_log_resource t3 ON t.id = t3.operating_log_id
|
||||||
<where>
|
<where>
|
||||||
(
|
(
|
||||||
<if test="request.projectIds != null and request.projectIds.size > 0 ">
|
<if test="request.projectIds != null and request.projectIds.size > 0 ">
|
||||||
|
|
Loading…
Reference in New Issue