|
|
@ -888,7 +888,11 @@ |
|
|
|
ldpl.warehouse_id warehouseId, |
|
|
|
ldpl.warehouse_id warehouseId, |
|
|
|
ldpl.id id, |
|
|
|
ldpl.id id, |
|
|
|
lww.name warehouse, |
|
|
|
lww.name warehouse, |
|
|
|
ldpl.conditions conditions, |
|
|
|
CASE ldpl.conditions |
|
|
|
|
|
|
|
WHEN 1 THEN '订制品' |
|
|
|
|
|
|
|
WHEN 2 THEN '库存品' |
|
|
|
|
|
|
|
WHEN 3 THEN '零担' |
|
|
|
|
|
|
|
END conditions, |
|
|
|
ldpl.order_package_code orderPackageCode, |
|
|
|
ldpl.order_package_code orderPackageCode, |
|
|
|
ldpl.firsts firsts, |
|
|
|
ldpl.firsts firsts, |
|
|
|
ldpl.second second, |
|
|
|
ldpl.second second, |
|
|
@ -915,7 +919,7 @@ |
|
|
|
IF(c.reservation_code is not null,c.reservation_code,IF(b.pickup_batch is not null,b.pickup_batch,a.reservation_code)) AS reservationCode, |
|
|
|
IF(c.reservation_code is not null,c.reservation_code,IF(b.pickup_batch is not null,b.pickup_batch,a.reservation_code)) AS reservationCode, |
|
|
|
IF(c.driver_name is not null,c.driver_name,IF(b.consignee is not null,b.consignee,a.driver_name)) AS driverName, |
|
|
|
IF(c.driver_name is not null,c.driver_name,IF(b.consignee is not null,b.consignee,a.driver_name)) AS driverName, |
|
|
|
IF(c.vehicle_name is not null,c.vehicle_name,IF(b.pick_up_plate is not null,b.pick_up_plate,a.vehicle_name)) AS vehicleName, |
|
|
|
IF(c.vehicle_name is not null,c.vehicle_name,IF(b.pick_up_plate is not null,b.pick_up_plate,a.vehicle_name)) AS vehicleName, |
|
|
|
IF(c.train_number is not null,c.train_number,IF(b.train_number is not null,b.train_number,a.train_number)) AS dvehicleName, |
|
|
|
IF(c.train_number is not null,c.train_number,IF(b.train_number is not null,b.train_number,a.train_number)) AS trainNumber, |
|
|
|
IF(c.scan_user is not null,c.scan_user,IF(b.scan_user is not null,b.scan_user,a.scan_user)) AS scanUser, |
|
|
|
IF(c.scan_user is not null,c.scan_user,IF(b.scan_user is not null,b.scan_user,a.scan_user)) AS scanUser, |
|
|
|
IF(c.signing_user is not null,c.signing_user,IF(b.signing_user is not null,b.signing_user,a.signing_user)) AS signingUser, |
|
|
|
IF(c.signing_user is not null,c.signing_user,IF(b.signing_user is not null,b.signing_user,a.signing_user)) AS signingUser, |
|
|
|
IF(c.scan_time is not null,c.scan_time,IF(b.scan_time is not null,b.scan_time,a.scan_time)) AS loadingTime, |
|
|
|
IF(c.scan_time is not null,c.scan_time,IF(b.scan_time is not null,b.scan_time,a.scan_time)) AS loadingTime, |
|
|
|