Commit 8d9f4c33 authored by 吴泽佳's avatar 吴泽佳

个人主页

parent 3a21d0b1
...@@ -22,8 +22,8 @@ public class UserInfoNew implements Serializable { ...@@ -22,8 +22,8 @@ public class UserInfoNew implements Serializable {
@ApiModelProperty("主页等级 1普通主页 2首席投顾主页 3机构主页") @ApiModelProperty("主页等级 1普通主页 2首席投顾主页 3机构主页")
private Integer personalCenterType; private Integer personalCenterType;
@ApiModelProperty("是否显示关注按钮 0不显示 1显示") // @ApiModelProperty("是否显示关注按钮 0不显示 1显示")
private Integer isShowFollowButton; // private Integer isShowFollowButton;
@ApiModelProperty("关注按钮状态 0未关注 1已关注") @ApiModelProperty("关注按钮状态 0未关注 1已关注")
private Integer showFollowStatus; private Integer showFollowStatus;
...@@ -62,8 +62,10 @@ public class UserInfoNew implements Serializable { ...@@ -62,8 +62,10 @@ public class UserInfoNew implements Serializable {
private Integer levelGrade; private Integer levelGrade;
@ApiModelProperty("当levelGrade=10有值 1投资萌新 2投资达人") @ApiModelProperty("当levelGrade=10有值 1投资萌新 2投资达人")
private String userInvestorType; private String userInvestorType;
@ApiModelProperty("用户类型 1普通账号 2机构账号 3机构人员") @ApiModelProperty("用户类型 1普通个人 2机构账号 3机构人员")
private Integer userType; private Integer userType;
@ApiModelProperty("是否为投顾 0不是 1是(user_type=3时有意义)")
private Integer isUserFinancialPractitioner;
@ApiModelProperty("专家投顾 认证信息") @ApiModelProperty("专家投顾 认证信息")
private String certInfo; private String certInfo;
...@@ -71,14 +73,16 @@ public class UserInfoNew implements Serializable { ...@@ -71,14 +73,16 @@ public class UserInfoNew implements Serializable {
// 机构人员 // 机构人员
@ApiModelProperty("认证职位") @ApiModelProperty("认证职位")
private String certPosition; private String certPosition;
@ApiModelProperty("名片是否已通过上传(是否展示工作室入口) 0不通过 1通过") // @ApiModelProperty("名片是否已通过上传(是否展示工作室入口) 0不通过 1通过")
private Integer ocrStatus; // private Integer ocrStatus;
@ApiModelProperty("所属机构id") @ApiModelProperty("所属机构id")
private String belongUserOrgId; private String belongUserOrgId;
@ApiModelProperty("所属机构名") @ApiModelProperty("所属机构名")
private String belongUserOrgName; private String belongUserOrgName;
//工作室相关 //工作室相关
@ApiModelProperty("工作室展示状态 1不展示 2展示(未认证) 3展示(已认证)")
private Integer workshopStatus = 1;//工作室展示状态
@ApiModelProperty("工作室名") @ApiModelProperty("工作室名")
private String workshopName;//工作室名 private String workshopName;//工作室名
@ApiModelProperty("工作室简介") @ApiModelProperty("工作室简介")
......
...@@ -77,7 +77,6 @@ public class HomePageManager { ...@@ -77,7 +77,6 @@ public class HomePageManager {
UserInfoNew userInfoNew = queryUsersListNew.getData(); UserInfoNew userInfoNew = queryUsersListNew.getData();
// 关注 按钮的显示逻辑 // 关注 按钮的显示逻辑
if (StringUtils.isNotBlank(userId)) { //查询别人的个人主页 if (StringUtils.isNotBlank(userId)) { //查询别人的个人主页
userInfoNew.setIsShowFollowButton(0);
//是否已关注 //是否已关注
FollowRelEntity followRelEntity = followRelService.queryRecord(userId, userIdMyself); FollowRelEntity followRelEntity = followRelService.queryRecord(userId, userIdMyself);
if (ObjectUtils.allNotNull(followRelEntity) && BizStatus.DeleteTag.tag_init == followRelEntity.getDeleteTag()){ if (ObjectUtils.allNotNull(followRelEntity) && BizStatus.DeleteTag.tag_init == followRelEntity.getDeleteTag()){
...@@ -85,9 +84,9 @@ public class HomePageManager { ...@@ -85,9 +84,9 @@ public class HomePageManager {
} else { } else {
userInfoNew.setShowFollowStatus(0); // 未关注 userInfoNew.setShowFollowStatus(0); // 未关注
} }
if (userInfoNew.getWorkshopStatus() == 2) userInfoNew.setWorkshopStatus(1); //别人的主页不需要展示 工作室
} else { } else {
// 查询自己的主页 // 查询自己的主页
userInfoNew.setIsShowFollowButton(1);
userId = userIdMyself; userId = userIdMyself;
} }
//设置粉丝数 关注数 //设置粉丝数 关注数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment