Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
8d9f4c33
Commit
8d9f4c33
authored
Jul 20, 2021
by
吴泽佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人主页
parent
3a21d0b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
UserInfoNew.java
...npu/community/api/beans/vo/feign/fatools/UserInfoNew.java
+9
-5
HomePageManager.java
...ain/java/com/tanpu/community/manager/HomePageManager.java
+1
-2
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/vo/feign/fatools/UserInfoNew.java
View file @
8d9f4c33
...
...
@@ -22,8 +22,8 @@ public class UserInfoNew implements Serializable {
@ApiModelProperty
(
"主页等级 1普通主页 2首席投顾主页 3机构主页"
)
private
Integer
personalCenterType
;
@ApiModelProperty
(
"是否显示关注按钮 0不显示 1显示"
)
private
Integer
isShowFollowButton
;
//
@ApiModelProperty("是否显示关注按钮 0不显示 1显示")
//
private Integer isShowFollowButton;
@ApiModelProperty
(
"关注按钮状态 0未关注 1已关注"
)
private
Integer
showFollowStatus
;
...
...
@@ -62,8 +62,10 @@ public class UserInfoNew implements Serializable {
private
Integer
levelGrade
;
@ApiModelProperty
(
"当levelGrade=10有值 1投资萌新 2投资达人"
)
private
String
userInvestorType
;
@ApiModelProperty
(
"用户类型 1普通
账号
2机构账号 3机构人员"
)
@ApiModelProperty
(
"用户类型 1普通
个人
2机构账号 3机构人员"
)
private
Integer
userType
;
@ApiModelProperty
(
"是否为投顾 0不是 1是(user_type=3时有意义)"
)
private
Integer
isUserFinancialPractitioner
;
@ApiModelProperty
(
"专家投顾 认证信息"
)
private
String
certInfo
;
...
...
@@ -71,14 +73,16 @@ public class UserInfoNew implements Serializable {
// 机构人员
@ApiModelProperty
(
"认证职位"
)
private
String
certPosition
;
@ApiModelProperty
(
"名片是否已通过上传(是否展示工作室入口) 0不通过 1通过"
)
private
Integer
ocrStatus
;
//
@ApiModelProperty("名片是否已通过上传(是否展示工作室入口) 0不通过 1通过")
//
private Integer ocrStatus;
@ApiModelProperty
(
"所属机构id"
)
private
String
belongUserOrgId
;
@ApiModelProperty
(
"所属机构名"
)
private
String
belongUserOrgName
;
//工作室相关
@ApiModelProperty
(
"工作室展示状态 1不展示 2展示(未认证) 3展示(已认证)"
)
private
Integer
workshopStatus
=
1
;
//工作室展示状态
@ApiModelProperty
(
"工作室名"
)
private
String
workshopName
;
//工作室名
@ApiModelProperty
(
"工作室简介"
)
...
...
community-service/src/main/java/com/tanpu/community/manager/HomePageManager.java
View file @
8d9f4c33
...
...
@@ -77,7 +77,6 @@ public class HomePageManager {
UserInfoNew
userInfoNew
=
queryUsersListNew
.
getData
();
// 关注 按钮的显示逻辑
if
(
StringUtils
.
isNotBlank
(
userId
))
{
//查询别人的个人主页
userInfoNew
.
setIsShowFollowButton
(
0
);
//是否已关注
FollowRelEntity
followRelEntity
=
followRelService
.
queryRecord
(
userId
,
userIdMyself
);
if
(
ObjectUtils
.
allNotNull
(
followRelEntity
)
&&
BizStatus
.
DeleteTag
.
tag_init
==
followRelEntity
.
getDeleteTag
()){
...
...
@@ -85,9 +84,9 @@ public class HomePageManager {
}
else
{
userInfoNew
.
setShowFollowStatus
(
0
);
// 未关注
}
if
(
userInfoNew
.
getWorkshopStatus
()
==
2
)
userInfoNew
.
setWorkshopStatus
(
1
);
//别人的主页不需要展示 工作室
}
else
{
// 查询自己的主页
userInfoNew
.
setIsShowFollowButton
(
1
);
userId
=
userIdMyself
;
}
//设置粉丝数 关注数
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment