parent
f70f475223
commit
f9a25617f0
|
@ -45,7 +45,10 @@ BEGIN
|
|||
CREATE OR REPLACE TEMPORARY TABLE tmp.filter
|
||||
(INDEX (id))
|
||||
SELECT dest.*,
|
||||
origin.*
|
||||
origin.*,
|
||||
IFNULL(dest.nickname, origin.nickname) nickname,
|
||||
(origin.futureLines = origin.hasStock) AS isFullMovable,
|
||||
origin.futureLines - origin.hasStock AS notMovableLines
|
||||
FROM (
|
||||
SELECT s.ticketFk futureId,
|
||||
t.workerFk,
|
||||
|
|
Loading…
Reference in New Issue