diff --git a/jshERP-boot/src/main/resources/mapper_xml/MaterialMapperEx.xml b/jshERP-boot/src/main/resources/mapper_xml/MaterialMapperEx.xml index 41823f6d..80a0e6ce 100644 --- a/jshERP-boot/src/main/resources/mapper_xml/MaterialMapperEx.xml +++ b/jshERP-boot/src/main/resources/mapper_xml/MaterialMapperEx.xml @@ -302,7 +302,7 @@ select me.bar_code, m.name, m.standard, m.model, m.color, me.commodity_unit unit from jsh_material m left join jsh_material_extend me on m.id = me.material_id and ifnull(me.delete_Flag,'0') !='1' - where 1=1 + where m.enabled=1 and me.id is not null and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})