|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.iflytop.nuclear.service.impl; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.iflytop.nuclear.mapper.AccountMapper; |
|
|
|
import com.iflytop.nuclear.model.Account; |
|
|
@ -67,10 +68,13 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl |
|
|
|
.username(userInfo.get("username")) |
|
|
|
.password(bCryptPasswordEncoder.encode(userInfo.get("password"))) |
|
|
|
.role(userInfo.get("role")) |
|
|
|
.nickname(userInfo.get("nickname")) |
|
|
|
.nickname(userInfo.get("username")) |
|
|
|
.createTime(new Date()) |
|
|
|
.build(); |
|
|
|
boolean b = this.updateById(account); |
|
|
|
return b; |
|
|
|
UpdateWrapper<Account> updateWrapper = new UpdateWrapper<>(); |
|
|
|
updateWrapper.eq("username", userInfo.get("username")); |
|
|
|
boolean update = this.update(account, updateWrapper); |
|
|
|
return update; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|