From 1d5f0aefa887599b9ab771af3e67e082eb9db0cc Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Fri, 19 Dec 2025 11:00:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=95=86=E5=93=81=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E4=B9=8B=E5=90=8E=EF=BC=8C=E5=95=86=E5=93=81=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E5=92=8C=E5=95=86=E5=93=81=E5=BA=93=E5=AD=98=E9=A2=84?= =?UTF-8?q?=E8=AD=A6=E7=9B=B8=E5=85=B3=E6=8A=A5=E8=A1=A8=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper_xml/DepotItemMapperEx.xml | 6 ++++-- .../src/main/resources/mapper_xml/MaterialMapperEx.xml | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml b/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml index 30c2c261..c2add95c 100644 --- a/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml +++ b/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml @@ -359,7 +359,7 @@ left join jsh_depot_item di on di.material_id=m.id and ifnull(di.delete_Flag,'0') !='1' left join jsh_depot_head dh on di.header_id=dh.id and ifnull(dh.delete_flag,'0') !='1' left join jsh_unit u on m.unit_id=u.id and ifnull(u.delete_Flag,'0') !='1' - where 1=1 and me.default_flag=1 + where 1=1 and me.default_flag=1 and m.enabled=1 and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey} @@ -391,7 +391,7 @@ left join jsh_material_extend me on me.material_id=m.id and ifnull(me.delete_Flag,'0') !='1' left join jsh_depot_item di on di.material_id=m.id and ifnull(di.delete_Flag,'0') !='1' left join jsh_depot_head dh on di.header_id=dh.id and ifnull(dh.delete_flag,'0') !='1' - where 1=1 and me.default_flag=1 + where 1=1 and me.default_flag=1 and m.enabled=1 and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey} @@ -900,6 +900,7 @@ left join jsh_depot d on d.id=mis.depot_id and ifnull(u.delete_flag,'0') !='1' where 1=1 and me.default_flag=1 + and m.enabled=1 and ifnull(m.delete_flag,'0') !='1' and mis.depot_id=mcs.depot_id and ((ifnull(mis.low_safe_stock,0)!=0 and mcs.current_number < ifnull(mis.low_safe_stock,0)) @@ -939,6 +940,7 @@ left join jsh_depot d on d.id=mis.depot_id and ifnull(u.delete_flag,'0') !='1' where 1=1 and me.default_flag=1 + and m.enabled=1 and ifnull(m.delete_flag,'0') !='1' and mis.depot_id=mcs.depot_id and ((ifnull(mis.low_safe_stock,0)!=0 and mcs.current_number < ifnull(mis.low_safe_stock,0)) diff --git a/jshERP-boot/src/main/resources/mapper_xml/MaterialMapperEx.xml b/jshERP-boot/src/main/resources/mapper_xml/MaterialMapperEx.xml index bd0ebf2e..839607f4 100644 --- a/jshERP-boot/src/main/resources/mapper_xml/MaterialMapperEx.xml +++ b/jshERP-boot/src/main/resources/mapper_xml/MaterialMapperEx.xml @@ -671,6 +671,7 @@ left JOIN jsh_material_category mc on m.category_id = mc.id and ifnull(mc.delete_Flag,'0') !='1' where 1=1 and me.default_flag=1 + and m.enabled=1 and m.category_id in @@ -719,6 +720,7 @@ left JOIN jsh_material_category mc on m.category_id = mc.id and ifnull(mc.delete_Flag,'0') !='1' where 1=1 and me.default_flag=1 + and m.enabled=1 and m.category_id in @@ -756,6 +758,7 @@ left JOIN jsh_material_category mc on m.category_id = mc.id and ifnull(mc.delete_Flag,'0') !='1' where 1=1 and me.default_flag=1 + and m.enabled=1 and mcs.depot_id in @@ -845,4 +848,4 @@ - \ No newline at end of file +