From 3697f696db94399f0833ae02206c415629c454b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Thu, 5 Mar 2026 18:00:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(part):=20=E4=BF=AE=E5=A4=8D=E9=9B=B6?= =?UTF-8?q?=E4=BB=B6=E5=B1=9E=E6=80=A7=E6=9F=A5=E8=AF=A2=E4=B8=AD=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E9=A2=84=E7=95=99=E6=A0=87=E8=AF=86=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在查询条件中添加了 reserve_flag='N' 过滤条件 - 确保只返回未预留的零件库存记录 - 修复了可能返回已预留零件的查询问题 --- src/main/resources/mapper/factory/PartAttributeMapper.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/mapper/factory/PartAttributeMapper.xml b/src/main/resources/mapper/factory/PartAttributeMapper.xml index e096c4c..e3c2f0b 100644 --- a/src/main/resources/mapper/factory/PartAttributeMapper.xml +++ b/src/main/resources/mapper/factory/PartAttributeMapper.xml @@ -118,6 +118,7 @@ WHERE a.calling_flag != 'Y' AND a.wcs_location IS NOT NULL AND c.in_stock_flag = 'Y' + AND C.reserve_flag='N' AND c.site = #{site} AND c.part_no IN