|
|
|
@ -1300,6 +1300,85 @@
|
|
|
|
|
and ldpl.waybill_number is not null |
|
|
|
|
and ldpl.waybill_number != '' |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectPackagePlanBillLading" |
|
|
|
|
resultType="com.logpm.distribution.vo.DistributionParcelListNodeVO"> |
|
|
|
|
SELECT |
|
|
|
|
ldpl.order_code AS orderCode, |
|
|
|
|
ldpl.order_package_code AS orderPackageCode, |
|
|
|
|
ldpl.warehouse AS warehouseName, |
|
|
|
|
ldpl.warehouse_id AS warehouseId, |
|
|
|
|
ldpl.quantity AS quantity, |
|
|
|
|
ldpl.train_number AS tranNumber, |
|
|
|
|
ldpl.waybill_number AS waybillNumber, |
|
|
|
|
ldbl.create_time AS nodeTime, |
|
|
|
|
ldbl.create_user AS nodeControlsUserId, |
|
|
|
|
'自提配送' AS nodeName, |
|
|
|
|
lwt.pallet_name, |
|
|
|
|
lwga.qr_code, |
|
|
|
|
CASE ldbp.packet_bar_status |
|
|
|
|
WHEN '3' THEN CONCAT('提货新增计划配送成功,自提单:',ldbl.pickup_batch) |
|
|
|
|
ELSE CONCAT('计划提货,自提单:',ldbl.pickup_batch) |
|
|
|
|
END description |
|
|
|
|
FROM |
|
|
|
|
logpm_distrilbution_bill_package AS ldbp |
|
|
|
|
LEFT JOIN logpm_distribution_parcel_list AS ldpl ON ldbp.parce_list_id = ldpl.id |
|
|
|
|
LEFT JOIN logpm_distrilbution_bill_lading AS ldbl ON ldbp.bill_lading_id = ldbl.id |
|
|
|
|
LEFT JOIN logpm_warehouse_updown_goods AS lwug ON ldpl.order_package_code = lwug.association_value |
|
|
|
|
LEFT JOIN logpm_warehouse_goods_allocation AS lwga ON lwug.allocation_id = lwga.id |
|
|
|
|
LEFT JOIN logpm_warehouse_tray_goods AS lwtg ON ldpl.order_package_code = lwtg.association_value |
|
|
|
|
LEFT JOIN logpm_warehouse_tray AS lwt ON lwtg.tray_id = lwt.id |
|
|
|
|
WHERE |
|
|
|
|
ldpl.order_package_code = #{orderPackageCode} AND ldpl.warehouse_id = #{warehouseId} |
|
|
|
|
AND ldbp.is_deleted = 0 |
|
|
|
|
</select> |
|
|
|
|
<select id="selectPackageSignForlBillLading" |
|
|
|
|
resultType="com.logpm.distribution.vo.DistributionParcelListNodeVO"> |
|
|
|
|
SELECT |
|
|
|
|
ldpl.order_code AS orderCode, |
|
|
|
|
ldpl.order_package_code AS orderPackageCode, |
|
|
|
|
ldpl.warehouse AS warehouseName, |
|
|
|
|
ldpl.warehouse_id AS warehouseId, |
|
|
|
|
ldpl.quantity AS quantity, |
|
|
|
|
ldbl.pickup_batch AS tranNumber, |
|
|
|
|
ldpl.waybill_number AS waybillNumber, |
|
|
|
|
ldbls.create_time AS nodeTime, |
|
|
|
|
ldbls.create_user AS nodeControlsUserId, |
|
|
|
|
'扫描签收' AS nodeName, |
|
|
|
|
CONCAT( '签收操作成功' ) AS description |
|
|
|
|
FROM |
|
|
|
|
logpm_distribution_bill_lading_scan AS ldbls |
|
|
|
|
LEFT JOIN logpm_distribution_parcel_list AS ldpl ON ldbls.parcel_list_id = ldpl.id |
|
|
|
|
LEFT JOIN logpm_distrilbution_bill_lading AS ldbl ON ldbls.bill_lading_id = ldbl.id |
|
|
|
|
WHERE |
|
|
|
|
ldpl.order_package_code = #{orderPackageCode} AND ldpl.warehouse_id = #{warehouseId} |
|
|
|
|
AND ldbls.is_deleted = 0 |
|
|
|
|
</select> |
|
|
|
|
<select id="selectPackageCancelBillLading" |
|
|
|
|
resultType="com.logpm.distribution.vo.DistributionParcelListNodeVO"> |
|
|
|
|
SELECT |
|
|
|
|
ldpl.order_code AS orderCode, |
|
|
|
|
ldpl.order_package_code AS orderPackageCode, |
|
|
|
|
ldpl.warehouse AS warehouseName, |
|
|
|
|
ldpl.warehouse_id AS warehouseId, |
|
|
|
|
ldpl.quantity AS quantity, |
|
|
|
|
ldpl.train_number AS tranNumber, |
|
|
|
|
ldpl.waybill_number AS waybillNumber, |
|
|
|
|
ldbl.update_time AS nodeTime, |
|
|
|
|
ldbl.update_user AS nodeControlsUserId, |
|
|
|
|
'自提取消' AS nodeName, |
|
|
|
|
lwt.pallet_name, |
|
|
|
|
lwga.qr_code, |
|
|
|
|
CONCAT('取消提货,自提单:',ldbl.pickup_batch) AS description |
|
|
|
|
FROM |
|
|
|
|
logpm_distrilbution_bill_package AS ldbp |
|
|
|
|
LEFT JOIN logpm_distribution_parcel_list AS ldpl ON ldbp.parce_list_id = ldpl.id |
|
|
|
|
LEFT JOIN logpm_distrilbution_bill_lading AS ldbl ON ldbp.bill_lading_id = ldbl.id |
|
|
|
|
LEFT JOIN logpm_warehouse_updown_goods AS lwug ON ldpl.order_package_code = lwug.association_value |
|
|
|
|
LEFT JOIN logpm_warehouse_goods_allocation AS lwga ON lwug.allocation_id = lwga.id |
|
|
|
|
LEFT JOIN logpm_warehouse_tray_goods AS lwtg ON ldpl.order_package_code = lwtg.association_value |
|
|
|
|
LEFT JOIN logpm_warehouse_tray AS lwt ON lwtg.tray_id = lwt.id |
|
|
|
|
WHERE |
|
|
|
|
ldpl.order_package_code = #{orderPackageCode} AND ldpl.warehouse_id = #{warehouseId} AND ldbp.packet_bar_status = '2' |
|
|
|
|
AND ldbp.is_deleted = 0 |
|
|
|
|
</select> |
|
|
|
|
</mapper> |
|
|
|
|