From aaea59af89a2bfc7b6992fd82e6827123de37167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E5=9B=BD=E4=B8=9C?= Date: Thu, 29 Dec 2022 16:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/ent/SysEnterpriseMapper.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inventory-dao/src/main/resources/mapper/ent/SysEnterpriseMapper.xml b/inventory-dao/src/main/resources/mapper/ent/SysEnterpriseMapper.xml index 7429b8a..f4eac94 100644 --- a/inventory-dao/src/main/resources/mapper/ent/SysEnterpriseMapper.xml +++ b/inventory-dao/src/main/resources/mapper/ent/SysEnterpriseMapper.xml @@ -1072,12 +1072,11 @@ select sys.*,org.OrgName,bc.IndustryClassName from SysEnterprise sys - left join SysOrg org on sys.OrgCode = org.OrgCode + left join SysOrg org on sys.area_code = org.OrgCode left join BaseInClass bc on sys.work_class_id = bc.BaseInClassId where sys.State='启用' - And ( sys.OrgCode = #{areaCode} or sys.street_code = #{areaCode} - or sys.community_code = #{areaCode}) + AND FIND_IN_SET(#{areaCode},sys.area_path) and sys.EntName like concat('%',#{entName},'%')