From c7eb9e5749cab745aac9034fb02ad0db5acb4d79 Mon Sep 17 00:00:00 2001 From: cheney <1251790704@qq.com> Date: Tue, 13 Dec 2022 18:11:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/huoran/iasf/service/impl/UserServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/huoran/iasf/service/impl/UserServiceImpl.java b/src/main/java/com/huoran/iasf/service/impl/UserServiceImpl.java index a01edba..10af37e 100644 --- a/src/main/java/com/huoran/iasf/service/impl/UserServiceImpl.java +++ b/src/main/java/com/huoran/iasf/service/impl/UserServiceImpl.java @@ -370,7 +370,7 @@ public class UserServiceImpl extends ServiceImpl impleme } //账号id - Integer usernameId = 0; + int usernameId = 0; vo1.setIndex(ii); //检验姓名 @@ -508,7 +508,7 @@ public class UserServiceImpl extends ServiceImpl impleme errMsg += countNum + " *请输入正确的邮箱格式!"; ret = false; } else { - if ("0".equals(usernameId)){ + if (0==usernameId){ LambdaQueryWrapper queryWrapper = Wrappers.lambdaQuery(); queryWrapper.eq(SysUser::getEmail, getEmail); SysUser selectOne = baseMapper.selectOne(queryWrapper); @@ -597,7 +597,7 @@ public class UserServiceImpl extends ServiceImpl impleme //ret判断 新增成功的插入到数据库 否则则不新增至数据库 if (ret) { //用户账号不存在 - if ("0".equals(usernameId)){ + if (0==usernameId){ SysUser vo = new SysUser(); vo.setSalt(PasswordUtils.getSalt()); String encode = PasswordUtils.encode("1122aa", vo.getSalt());