8032-devToTest_2440 #3009
|
@ -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