From 8ac17b92415c8c0854a632258c8a7c5896ca3976 Mon Sep 17 00:00:00 2001 From: shanzhiliu <1350700145@qq.com> Date: Wed, 7 Apr 2021 15:02:03 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=B0=E5=A2=9E=E6=88=96=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=97=B6=E7=94=A8=E6=88=B7=E5=90=8D=E7=A7=B0?= =?UTF-8?q?,=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=A0=81,=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E7=9A=84=E5=94=AF=E4=B8=80=E6=80=A7=E6=A0=A1=E9=AA=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/user/SysUserServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/cn/iocoder/dashboard/modules/system/service/user/SysUserServiceImpl.java b/src/main/java/cn/iocoder/dashboard/modules/system/service/user/SysUserServiceImpl.java index 88997dfa0..31f72aedc 100644 --- a/src/main/java/cn/iocoder/dashboard/modules/system/service/user/SysUserServiceImpl.java +++ b/src/main/java/cn/iocoder/dashboard/modules/system/service/user/SysUserServiceImpl.java @@ -232,7 +232,7 @@ public class SysUserServiceImpl implements SysUserService { } private void checkUsernameUnique(Long id, String username) { - if (StrUtil.isNotBlank(username)) { + if (StrUtil.isBlank(username)) { return; } SysUserDO user = userMapper.selectByUsername(username); @@ -249,7 +249,7 @@ public class SysUserServiceImpl implements SysUserService { } private void checkEmailUnique(Long id, String email) { - if (StrUtil.isNotBlank(email)) { + if (StrUtil.isBlank(email)) { return; } SysUserDO user = userMapper.selectByEmail(email); @@ -265,11 +265,11 @@ public class SysUserServiceImpl implements SysUserService { } } - private void checkMobileUnique(Long id, String email) { - if (StrUtil.isNotBlank(email)) { + private void checkMobileUnique(Long id, String mobile) { + if (StrUtil.isBlank(mobile)) { return; } - SysUserDO user = userMapper.selectByMobile(email); + SysUserDO user = userMapper.selectByMobile(mobile); if (user == null) { return; }