fix: support deployed outbound detail schema

This commit is contained in:
zgw
2026-09-04 12:07:03 +08:00
parent b940bf0eb1
commit cab1151fef
3 changed files with 33 additions and 4 deletions

View File

@@ -1065,7 +1065,7 @@ BEGIN
warehouse.project_no AS [@project_no],
outbound.product_id AS [@product_id], outbound.lot_no AS [@lot_no],
outbound.quantity AS [@quantity], outbound.assign_num AS [@assign_num],
outbound.allot_quantity AS [@allot_quantity], outbound.create_time AS [@create_time]
outbound.allot_quantity AS [@allot_quantity]
FROM dbo.out_stockout_detail outbound WITH (NOLOCK)
JOIN dbo.out_stockout stockout WITH (NOLOCK) ON stockout.stockout_id = outbound.stockout_id
LEFT JOIN dbo.bas_warehouse warehouse WITH (NOLOCK)
@@ -1279,7 +1279,7 @@ BEGIN
warehouse.project_no AS [@project_no],
outbound.product_id AS [@product_id], outbound.lot_no AS [@lot_no],
outbound.quantity AS [@quantity], outbound.assign_num AS [@assign_num],
outbound.allot_quantity AS [@allot_quantity], outbound.create_time AS [@create_time]
outbound.allot_quantity AS [@allot_quantity]
FROM dbo.out_stockout_detail outbound WITH (NOLOCK)
JOIN dbo.out_stockout stockout WITH (NOLOCK) ON stockout.stockout_id = outbound.stockout_id
LEFT JOIN dbo.bas_warehouse warehouse WITH (NOLOCK)