|
|
@ -353,15 +353,11 @@ |
|
|
|
lds.loader_name loaderName, lds.forklift_id forkliftId,lds.loader_id loaderId,lds.fix_time |
|
|
|
lds.loader_name loaderName, lds.forklift_id forkliftId,lds.loader_id loaderId,lds.fix_time |
|
|
|
fixTime,lds.assign_time assignTime, |
|
|
|
fixTime,lds.assign_time assignTime, |
|
|
|
lds.type_service typeService,lds.outbound_date outboundDate,lds.stockup_code stockupCode, |
|
|
|
lds.type_service typeService,lds.outbound_date outboundDate,lds.stockup_code stockupCode, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COALESCE(group_concat(DISTINCT ldsa.mall_name separator ','), '') as consignee |
|
|
|
COALESCE(group_concat(DISTINCT ldsa.mall_name separator ','), '') as consignee |
|
|
|
from logpm_distribution_stockup lds |
|
|
|
from logpm_distribution_stockup lds |
|
|
|
LEFT JOIN logpm_distribution_stockup_info ldsi on ldsi.stockup_id = lds.id |
|
|
|
LEFT JOIN logpm_distribution_stockup_info ldsi on ldsi.stockup_id = lds.id |
|
|
|
LEFT JOIN logpm_distrilbution_bill_stock ldbs on ldbs.bill_lading_id = ldsi.reservation_id |
|
|
|
LEFT JOIN logpm_distrilbution_bill_stock ldbs on ldbs.bill_lading_id = ldsi.reservation_id |
|
|
|
LEFT JOIN logpm_distribution_stock_article ldsa on ldsa.id = ldbs.stock_article_id and ldbs.order_status in (1,2) |
|
|
|
LEFT JOIN logpm_distribution_stock_article ldsa on ldsa.id = ldbs.stock_article_id and ldbs.order_status in (1,2) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LEFT JOIN ( |
|
|
|
LEFT JOIN ( |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|
IFNULL(COUNT( b.reservation_id ),0 )AS aaa, |
|
|
|
IFNULL(COUNT( b.reservation_id ),0 )AS aaa, |
|
|
|