refs #6156 new field #1718
|
@ -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