feat(微信用户): 添加用户信息完善状态字段
在微信用户相关实体类、DTO和数据库表中添加profileDone字段,用于标识用户信息是否完善。同时在用户更新逻辑中默认将profileDone设置为true
This commit is contained in:
parent
80a5f12857
commit
9a1c6b5d38
|
|
@ -397,6 +397,7 @@ public class WxUserApplicationService {
|
||||||
wxUserEntity.setAvatar(avatar);
|
wxUserEntity.setAvatar(avatar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxUserEntity.setProfileDone(true);
|
||||||
// 保存更新
|
// 保存更新
|
||||||
userService.updateById(wxUserEntity);
|
userService.updateById(wxUserEntity);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,9 @@ public class AddWxUserCommand {
|
||||||
@ExcelColumn(name = "用户头像")
|
@ExcelColumn(name = "用户头像")
|
||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
|
@ExcelColumn(name = "用户信息是否完善(0否 1是)")
|
||||||
|
private Boolean profileDone;
|
||||||
|
|
||||||
@ExcelColumn(name = "备注")
|
@ExcelColumn(name = "备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@ public class SearchWxUserDO {
|
||||||
|
|
||||||
private Integer wxBalance;
|
private Integer wxBalance;
|
||||||
|
|
||||||
|
private Boolean profileDone;
|
||||||
|
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,10 @@ public class WxUserEntity extends BaseEntity<WxUserEntity> {
|
||||||
@TableField("avatar")
|
@TableField("avatar")
|
||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
|
@ApiModelProperty("用户信息是否完善(0否 1是)")
|
||||||
|
@TableField("profile_done")
|
||||||
|
private Boolean profileDone;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Serializable pkVal() {
|
public Serializable pkVal() {
|
||||||
return this.wxUserId;
|
return this.wxUserId;
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,9 @@ public class WxUserDTO {
|
||||||
@ExcelColumn(name = "用户头像")
|
@ExcelColumn(name = "用户头像")
|
||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
|
@ExcelColumn(name = "用户信息是否完善(0否 1是)")
|
||||||
|
private Boolean profileDone;
|
||||||
|
|
||||||
@ExcelColumn(name = "创建时间")
|
@ExcelColumn(name = "创建时间")
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,3 +18,5 @@ CREATE TABLE `wx_user` (
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='微信用户信息表';
|
) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='微信用户信息表';
|
||||||
|
|
||||||
ALTER TABLE `wx_user` ADD COLUMN `avatar` tinytext COMMENT '用户头像';
|
ALTER TABLE `wx_user` ADD COLUMN `avatar` tinytext COMMENT '用户头像';
|
||||||
|
|
||||||
|
ALTER TABLE `wx_user` ADD COLUMN `profile_done` tinyint(1) NOT NULL DEFAULT 0 COMMENT '用户信息是否完善(0否 1是)';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue