diff --git a/emis-oms-biz/src/main/resources/mapper/EmisCountryMapper.xml b/emis-oms-biz/src/main/resources/mapper/EmisCountryMapper.xml
index b526888..f844021 100644
--- a/emis-oms-biz/src/main/resources/mapper/EmisCountryMapper.xml
+++ b/emis-oms-biz/src/main/resources/mapper/EmisCountryMapper.xml
@@ -27,14 +27,26 @@
and id = #{id}
- and name like concat('%', #{name}, '%')
- and name_en like concat('%', #{nameEn}, '%')
- and code like concat('%', #{code}, '%')
- and tel_area_code like concat('%', #{telAreaCode}, '%')
- and iso_code like concat('%', #{isoCode}, '%')
- and find_in_set(#{continentId},continent_id) and order_num = #{orderNum}
- and two_code like concat('%', #{twoCode}, '%')
- and three_code like concat('%', #{threeCode}, '%')
+ and (
+ three_code=#{name} or
+ two_code=#{name} or
+ name like concat('%', #{name}, '%')
+ or ( name_en!='' and name_en like concat('%', #{name}, '%') )
+
+ )
+ and (
+ three_code=#{name}
+ or two_code=#{name}
+ or ( name!='' and name like concat('%', #{nameEn}, '%') )
+ or ( name_en!='' and name_en like concat('%', #{nameEn}, '%') )
+ )
+ and find_in_set(code,#{code})
+ and tel_area_code=#{telAreaCode}
+ and iso_code=#{isoCode}
+ and find_in_set(#{continentId},continent_id)
+ and order_num = #{orderNum}
+ and two_code=#{twoCode}
+ and three_code=#{threeCode}
and remark like concat('%', #{remark}, '%')
and tenant_id like concat('%', #{tenantId}, '%')
and del_flag like concat('%', #{delFlag}, '%')
diff --git a/emis-oms-biz/src/main/resources/mapper/EmisRegionMapper.xml b/emis-oms-biz/src/main/resources/mapper/EmisRegionMapper.xml
index d9fca10..35f9304 100644
--- a/emis-oms-biz/src/main/resources/mapper/EmisRegionMapper.xml
+++ b/emis-oms-biz/src/main/resources/mapper/EmisRegionMapper.xml
@@ -35,11 +35,27 @@
and id = #{id}
and region_code=#{regionCode}
- and region_name like concat('%', #{regionName}, '%')
- and region_name_en like concat('%', #{regionNameEn}, '%')
+
+ and (
+ region_name like concat('%', #{regionName}, '%')
+ or ( region_name_en!='' and region_name_en like concat('%', #{regionName}, '%') )
+ or #{regionName} like concat('%',region_name, '%')
+ or ( region_name_en!='' and #{regionName} like concat('%',region_name_en, '%') )
+ )
+
+
+ and (
+ region_name like concat('%', #{regionName}, '%')
+ or ( region_name_en!='' and region_name_en like concat('%', #{regionName}, '%') )
+ or #{regionName} like concat('%',region_name, '%')
+ or ( region_name_en!='' and #{regionName} like concat('%',region_name_en, '%') )
+ )
+
+
and region_type = #{regionType}
and short_name like concat('%', #{shortName}, '%')
and parent_code=#{parentCode}
+ and send_area_id = #{sendAreaId}
and area_id = #{areaId}
and area_name like concat('%', #{areaName}, '%')
and country_code=#{countryCode}