From 81a7e2ae20bdd647ed81c7205cdad7ed6b84aacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A5=8E=E5=85=B4?= <2220574228@qq.com> Date: Wed, 17 Jun 2026 13:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A7=94=E6=89=98=E6=96=B9=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=97=B6=E5=80=99=E6=A3=80=E9=AA=8C=E4=BF=A1=E7=94=A8;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/UserShipperApplicationService.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mhd-user-center/src/main/java/com/mhd/user/application/service/UserShipperApplicationService.java b/mhd-user-center/src/main/java/com/mhd/user/application/service/UserShipperApplicationService.java index 86a7b53ab..88f5dcc87 100644 --- a/mhd-user-center/src/main/java/com/mhd/user/application/service/UserShipperApplicationService.java +++ b/mhd-user-center/src/main/java/com/mhd/user/application/service/UserShipperApplicationService.java @@ -316,11 +316,15 @@ public class UserShipperApplicationService { if (ObjectUtil.isNull(configSwitch)) { throw new ServiceException("获取组织配置失败"); } - List userEntities = userMapper.selectByUserPhone(userShipperDO.getUserAccount()); - if (userEntities.size()>0){ - throw new ServiceException("账户名已存在"); + String userAccount = userShipperDO.getUserAccount(); + if (StringUtils.isNotBlank(userAccount)) { + List userEntities = userMapper.selectByUserPhone(userAccount); + if (userEntities.size()>0){ + throw new ServiceException("账户名已存在"); + } } + LoginUser loginUser = SecurityUtils.getLoginUser(); Map result = new HashMap<>();