zhangjinli 3 years ago
parent 703eea3a3e
commit b0ca1e962b

@ -80,6 +80,8 @@ public class UserAccountController {
@Max(value = 3, message = "最小值为1")
@Schema(title = "状态",description = "1审核通过2审核拒绝3停用")
private Integer status;
@Schema(title = "拒绝原因")
private String reason;
}
@Operation(summary = "关联账号审核")
@ -95,6 +97,7 @@ public class UserAccountController {
}
UpdateWrapper<UserAccount> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("id", param.getId()).set("status",param.getStatus()).set("updateAt",LocalDateTime.now());
updateWrapper.set("reason",param.getStatus()==3?param.getReason():"");
userAccountService.update(updateWrapper);
return Result.success("修改完成");
}

@ -69,6 +69,8 @@ public class UserAccount extends Model {
@Schema(title = "账号状态",description = "0审核中1审核通过2审核拒绝3已停用")
private Integer status;
@Schema(title = "拒绝原因")
private String reason;
@TableField("creatAt")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime creatAt;

Loading…
Cancel
Save