|
|
|
@ -158,7 +158,6 @@
|
|
|
|
|
</select> |
|
|
|
|
<select id="getBillOrderPack" resultType="com.logpm.distribution.vo.DistributionBillOrderPackVO"> |
|
|
|
|
SELECT |
|
|
|
|
lds.outbound_type, |
|
|
|
|
ldpl.order_package_code orderPackageCode, |
|
|
|
|
ldpl.warehouse, |
|
|
|
|
ldpl.id, |
|
|
|
@ -167,14 +166,14 @@
|
|
|
|
|
ldpl.third_product thirdProduct, |
|
|
|
|
ldpl.material_code materialCode, |
|
|
|
|
ldpl.material_name materialName, |
|
|
|
|
ldpl.train_number trainNumber, |
|
|
|
|
ldbl.pickup_batch AS trainNumber, |
|
|
|
|
ldpl.waybill_number waybillNumber, |
|
|
|
|
ldpl.send_warehouse_name sendWarehouseName, |
|
|
|
|
ldpl.order_code orderCode, |
|
|
|
|
ldpl.service_number serviceNumber, |
|
|
|
|
lwtg.tray_code pallet, |
|
|
|
|
lwug.allocation_title goodsAllocation, |
|
|
|
|
ldpl.order_package_status orderPackageStatus , |
|
|
|
|
ldpl.order_package_status orderPackageStatus, |
|
|
|
|
case |
|
|
|
|
when lds.id is null then '未备货' |
|
|
|
|
else '已备货' |
|
|
|
@ -296,12 +295,12 @@
|
|
|
|
|
|
|
|
|
|
<select id="billOrderPackExcel" resultType="com.logpm.distribution.excel.DistributionBillOrderPackExcel"> |
|
|
|
|
SELECT |
|
|
|
|
lds.outbound_type, |
|
|
|
|
ldpl.order_package_code orderPackageCode, |
|
|
|
|
ldpl.warehouse, |
|
|
|
|
ldpl.firsts, |
|
|
|
|
ldpl.SECOND, |
|
|
|
|
ldpl.third_product thirdProduct, |
|
|
|
|
ldbl.pickup_batch AS trainNumber, |
|
|
|
|
ldpl.material_code materialCode, |
|
|
|
|
ldpl.material_name materialName, |
|
|
|
|
ldpl.waybill_number waybillNumber, |
|
|
|
@ -322,10 +321,23 @@
|
|
|
|
|
ldbls.create_user stockupCreateUser, |
|
|
|
|
ldbl.pick_up_time stockuppickUpTime, |
|
|
|
|
ldbls.create_time signForCreateTime, |
|
|
|
|
case |
|
|
|
|
CASE |
|
|
|
|
ldpl.order_package_status |
|
|
|
|
WHEN 10 THEN |
|
|
|
|
'未入库' |
|
|
|
|
WHEN 20 THEN |
|
|
|
|
'已入库' |
|
|
|
|
WHEN 30 THEN |
|
|
|
|
'中转入库' |
|
|
|
|
WHEN 60 THEN |
|
|
|
|
'已出库' |
|
|
|
|
WHEN 70 THEN |
|
|
|
|
'已签收' ELSE '未知' |
|
|
|
|
END orderPackageStatusName, |
|
|
|
|
CASE |
|
|
|
|
WHEN ldbl.conditions = 30 THEN ldbl.update_user |
|
|
|
|
end as clerkCheck, |
|
|
|
|
case |
|
|
|
|
CASE |
|
|
|
|
WHEN ldbl.conditions = 30 THEN ldbl.update_time |
|
|
|
|
end as clerkUpdateTime |
|
|
|
|
FROM logpm_distrilbution_bill_lading ldbl |
|
|
|
|