导入修复

master
cheney 2 years ago
parent 657cfcae0e
commit c7eb9e5749
  1. 6
      src/main/java/com/huoran/iasf/service/impl/UserServiceImpl.java

@ -370,7 +370,7 @@ public class UserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impleme
}
//账号id
Integer usernameId = 0;
int usernameId = 0;
vo1.setIndex(ii);
//检验姓名
@ -508,7 +508,7 @@ public class UserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impleme
errMsg += countNum + " *请输入正确的邮箱格式!";
ret = false;
} else {
if ("0".equals(usernameId)){
if (0==usernameId){
LambdaQueryWrapper<SysUser> queryWrapper = Wrappers.lambdaQuery();
queryWrapper.eq(SysUser::getEmail, getEmail);
SysUser selectOne = baseMapper.selectOne(queryWrapper);
@ -597,7 +597,7 @@ public class UserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> 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());

Loading…
Cancel
Save