From 3c00c6c4912d87d31709afdf854517a5be928b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Thu, 15 Jul 2021 23:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E5=8D=95=E6=8D=AE=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=9D=A1=E7=A0=81=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper_xml/DepotHeadMapperEx.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml b/jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml index 6fd7a2f1..44155bb7 100644 --- a/jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml +++ b/jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml @@ -50,6 +50,7 @@ left join jsh_account a on dh.account_id=a.id and ifnull(a.delete_Flag,'0') !='1' left join jsh_depot_item di on dh.id = di.header_id and ifnull(di.delete_flag,'0') !='1' left join jsh_material m on di.material_id = m.id and ifnull(m.delete_flag,'0') !='1' + left join jsh_material_extend me on di.material_extend_id = me.id and ifnull(me.delete_flag,'0') !='1' where 1=1 and dh.type=#{type} @@ -72,7 +73,7 @@ - and (m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}) + and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}) and dh.organ_id=#{organId} @@ -109,6 +110,7 @@ (select distinct dh.* FROM jsh_depot_head dh left join jsh_depot_item di on dh.Id = di.header_id and ifnull(di.delete_flag,'0') !='1' left join jsh_material m on di.material_id = m.Id and ifnull(m.delete_Flag,'0') !='1' + left join jsh_material_extend me on di.material_extend_id = me.id and ifnull(me.delete_flag,'0') !='1' WHERE 1=1 and dh.type=#{type} @@ -131,7 +133,7 @@ - and (m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}) + and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}) and dh.organ_id=#{organId}