From c0eabff28c4bd9212d2550162f28193daf9976fe Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期一, 23 三月 2026 14:25:40 +0800
Subject: [PATCH] feat: 新增巡检记录通知功能及查询条件优化

---
 src/main/resources/mapper/production/ProductionProductMainMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/production/ProductionProductMainMapper.xml b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
index 4ac2dce..875c2a1 100644
--- a/src/main/resources/mapper/production/ProductionProductMainMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -64,8 +64,8 @@
         ppo.quantity,
         ppo.scrap_qty,
         ppo.other_data,
-        pm.unit,
-        sl.sales_contract_no salesContractNo
+        (ppo.quantity - ppo.scrap_qty) as qualifiedQty,
+        pm.unit
         from
         production_product_main ppm
         left join product_work_order pwo on pwo.id = ppm.work_order_id

--
Gitblit v1.9.3