|
|
@ -320,10 +320,7 @@ |
|
|
|
newldrs.reservation_id = #{reservationId} ANd newldrs.stock_list_status != 2 AND |
|
|
|
newldrs.reservation_id = #{reservationId} ANd newldrs.stock_list_status != 2 AND |
|
|
|
FIND_IN_SET(newldrs.stocklist_id,t.aaa)) |
|
|
|
FIND_IN_SET(newldrs.stocklist_id,t.aaa)) |
|
|
|
AS planNum, |
|
|
|
AS planNum, |
|
|
|
CASE ldslNew.source_type |
|
|
|
GROUP_CONCAT(DISTINCT IF(ldslNew.source_type = 1,t1.allocation_ids,t2.allocation_ids)) AS allocations, |
|
|
|
WHEN 1 THEN t1.allocation_ids |
|
|
|
|
|
|
|
ELSE t2.allocation_ids |
|
|
|
|
|
|
|
END allocations |
|
|
|
|
|
|
|
FROM |
|
|
|
FROM |
|
|
|
( |
|
|
|
( |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|