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());