This commit is contained in:
parent
e7a6d0109c
commit
9910ae5c64
|
@ -186,7 +186,7 @@ BEGIN
|
|||
SELECT DISTINCT tl.originFk ticketFk
|
||||
FROM ticketLog tl
|
||||
JOIN (
|
||||
SELECT MAX(tl.id)ids, tw.ticketFk
|
||||
SELECT MAX(tl.id)ids
|
||||
FROM ticket t
|
||||
JOIN ticketLog tl ON tl.originFk = t.id
|
||||
LEFT JOIN ticketWeekly tw ON tw.ticketFk =t.id
|
||||
|
|
Loading…
Reference in New Issue