From 37a5a2aed6ee64c02072a9294610b9913a63aa68 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期一, 22 六月 2026 10:09:13 +0800
Subject: [PATCH] 修改废品台账导出

---
 src/main/resources/mapper/sales/ShippingInfoMapper.xml |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/sales/ShippingInfoMapper.xml b/src/main/resources/mapper/sales/ShippingInfoMapper.xml
index 762c2d4..511dcd3 100644
--- a/src/main/resources/mapper/sales/ShippingInfoMapper.xml
+++ b/src/main/resources/mapper/sales/ShippingInfoMapper.xml
@@ -73,6 +73,7 @@
             slp.specification_model,
             slp.unit,
             slp.product_model_id,
+            COALESCE(spd.stock_type, slp.stock_type, 'qualified') AS stock_type,
             sor.outbound_batches,
             sor.stock_out_num,
             sor.batch_no,

--
Gitblit v1.9.3