From 0c8ae4b9a1bbd20baf137219090eb3d5d4e780c3 Mon Sep 17 00:00:00 2001 From: aike <17730485278@139.com> Date: Thu, 5 Feb 2026 09:54:28 +0800 Subject: [PATCH] =?UTF-8?q?demand:=20=20=20=20=E6=8C=89=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E7=89=B9=E5=8C=BA=E6=A0=87=E7=AD=BE=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=A0=A1=E9=AA=8Cnbsp=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/EmisSpecialZoneAddressMatchServiceImpl.java | 2 +- .../main/resources/mapper/EmisSpecialZoneAddressMatchMapper.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisSpecialZoneAddressMatchServiceImpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisSpecialZoneAddressMatchServiceImpl.java index c2ad483a6..2d965e6e9 100644 --- a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisSpecialZoneAddressMatchServiceImpl.java +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisSpecialZoneAddressMatchServiceImpl.java @@ -276,7 +276,7 @@ public class EmisSpecialZoneAddressMatchServiceImpl implements IEmisSpecialZoneA } // 去掉所有空白字符并统一转大写 - String normalizedAddress = address.replaceAll("\\s+", "").toUpperCase(); + String normalizedAddress = address.replaceAll("\\p{Z}+", "").toUpperCase(); if (StringUtils.isBlank(normalizedAddress)) { return null; diff --git a/emis-biz/src/main/resources/mapper/EmisSpecialZoneAddressMatchMapper.xml b/emis-biz/src/main/resources/mapper/EmisSpecialZoneAddressMatchMapper.xml index ecc763209..796cd50ab 100644 --- a/emis-biz/src/main/resources/mapper/EmisSpecialZoneAddressMatchMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSpecialZoneAddressMatchMapper.xml @@ -65,7 +65,7 @@ select id, country_code, province_code, special_zone_name, special_zone_tag, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_special_zone_address_match a where a.del_flag = '0' - and #{normalizedAddress} like concat('%', upper(replace(a.special_zone_tag, ' ', '')), '%') + and #{normalizedAddress} like concat('%', upper(replace(replace(replace(a.special_zone_tag, ' ', ''), char(160), ''), char(12288), '')), '%') limit 1