fix(操作日志): 修复操作日志查询不全问题

This commit is contained in:
fit2-zhao 2022-02-17 14:39:20 +08:00 committed by fit2-zhao
parent 30b1267206
commit 30a2f8acf1
1 changed files with 12 additions and 12 deletions

View File

@ -4,22 +4,22 @@
<select id="list" resultType="io.metersphere.log.vo.OperatingLogDTO">
SELECT
t.id,
t.project_id,
t.oper_user,
t3.source_id,
t.oper_type,
t.oper_module,
t.oper_title,
t.oper_time,
t1.NAME userName,
t2.`name` projectName
t.id,
t.project_id,
t.oper_user,
t3.source_id,
t.oper_type,
t.oper_module,
t.oper_title,
t.oper_time,
t1.NAME userName,
t2.`name` projectName
FROM
operating_log t
operating_log t
LEFT JOIN `user` t1 ON t.oper_user = t1.id
LEFT JOIN project t2 ON t.project_id = t2.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>
(
<if test="request.projectIds != null and request.projectIds.size > 0 ">