init
This commit is contained in:
@@ -32,6 +32,7 @@ public class UserAppController {
|
|||||||
return R.ok(currentUserManager.currentInfo());
|
return R.ok(currentUserManager.currentInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
@Operation(summary = "修改当前用户信息")
|
@Operation(summary = "修改当前用户信息")
|
||||||
public R<Boolean> userUpdate(@Validated @RequestBody UserUpdateReq res){
|
public R<Boolean> userUpdate(@Validated @RequestBody UserUpdateReq res){
|
||||||
|
|||||||
@@ -73,6 +73,11 @@ public class CurrentUserInfoVo {
|
|||||||
*/
|
*/
|
||||||
@Schema(description = "可用状态 0-可用 1-封禁")
|
@Schema(description = "可用状态 0-可用 1-封禁")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
/**
|
||||||
|
* 资料是否完成 0 未完成 1已完成
|
||||||
|
*/
|
||||||
|
@Schema(description = "资料是否完成 0 未完成 1已完成")
|
||||||
|
private Integer finishStatus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 相册
|
* 相册
|
||||||
|
|||||||
@@ -155,11 +155,11 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|||||||
@Override
|
@Override
|
||||||
public void checkFinishStatus(Long userId) {
|
public void checkFinishStatus(Long userId) {
|
||||||
User user = this.getById(userId);
|
User user = this.getById(userId);
|
||||||
if(user == null || user.getIsAnchor() == 1 || user.getFinishStatus() == 1){
|
if(user == null || user.getFinishStatus() == 1){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(user.getCity() != null && user.getBirthday() != null && StringUtils.isNotEmpty(user.getNickname())
|
if(user.getCity() != null && user.getBirthday() != null && StringUtils.isNotEmpty(user.getNickname())
|
||||||
&& user.getAvatarState() == 1){
|
&& user.getGender() == 0){
|
||||||
this.update(Wrappers.lambdaUpdate(User.class)
|
this.update(Wrappers.lambdaUpdate(User.class)
|
||||||
.eq(User::getId,user.getId())
|
.eq(User::getId,user.getId())
|
||||||
.set(User::getFinishStatus,1));
|
.set(User::getFinishStatus,1));
|
||||||
|
|||||||
Reference in New Issue
Block a user