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

This commit is contained in:
fit2-zhao 2022-02-17 14:39:20 +08:00 committed by zhangdahai112
parent c693fdccc5
commit d6594d261e
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 ">