From e8fdc839940f4db1d9c64b6ca7dc5daebccd3c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Mon, 30 May 2022 23:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BF=9B=E9=94=80=E5=AD=98?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E7=9A=84=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper_xml/DepotItemMapperEx.xml | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml b/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml index c67b4470..2ab5fb98 100644 --- a/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml +++ b/jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml @@ -237,16 +237,13 @@ select count(1) from (select m.id from jsh_material m - left join jsh_depot_item di on di.material_id=m.id and ifnull(m.delete_Flag,'0') !='1' - left join jsh_material_extend me on me.id=di.material_extend_id and ifnull(me.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 + 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 and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}) @@ -276,7 +273,7 @@ and dh.oper_time <= #{endTime} - and ifnull(di.delete_flag,'0') !='1' + and ifnull(m.delete_flag,'0') !='1' group by m.id) cc