refactor: 部分表大小写问题
This commit is contained in:
parent
38ea78a7b6
commit
17d97d2c93
|
@ -219,9 +219,9 @@
|
|||
api_test_case t1
|
||||
LEFT JOIN api_definition_exec_result t2 ON t1.last_result_id = t2.id
|
||||
inner join api_definition a on t1.api_definition_id = a.id
|
||||
LEFT JOIN USER u1 ON t1.update_user_id = u1.id
|
||||
LEFT JOIN USER u2 ON t1.create_user_id = u2.id
|
||||
LEFT JOIN USER u3 ON t2.user_id = u3.id
|
||||
LEFT JOIN `user` u1 ON t1.update_user_id = u1.id
|
||||
LEFT JOIN `user` u2 ON t1.create_user_id = u2.id
|
||||
LEFT JOIN `user` u3 ON t2.user_id = u3.id
|
||||
<where>
|
||||
<if test="request.name != null and request.name!=''">
|
||||
and t1.name like CONCAT('%', #{request.name},'%')
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
t2.`name` projectName
|
||||
FROM
|
||||
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 workspace w on t2.workspace_id = w.id
|
||||
<where>
|
||||
|
@ -67,7 +67,7 @@
|
|||
t2.`name` projectName
|
||||
FROM
|
||||
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 workspace w on t2.workspace_id = w.id
|
||||
<where>
|
||||
|
|
|
@ -8,8 +8,8 @@ INNER JOIN (
|
|||
ader.id AS result_id
|
||||
FROM
|
||||
api_test_case atc
|
||||
LEFT JOIN USER u1 ON atc.create_user_id = u1.id
|
||||
LEFT JOIN USER u2 ON atc.update_user_id = u2.id
|
||||
LEFT JOIN `user` u1 ON atc.create_user_id = u1.id
|
||||
LEFT JOIN `user` u2 ON atc.update_user_id = u2.id
|
||||
LEFT JOIN (
|
||||
SELECT
|
||||
max( create_time ) create_time,
|
||||
|
@ -24,4 +24,4 @@ INNER JOIN (
|
|||
) tc
|
||||
SET tt.last_result_id = tc.result_id
|
||||
WHERE
|
||||
tt.id = tc.id;
|
||||
tt.id = tc.id;
|
||||
|
|
Loading…
Reference in New Issue