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
f30f70e3
Commit
f30f70e3
authored
Jul 16, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户简介
parent
3d0504bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ThemeQo.java
...c/main/java/com/tanpu/community/api/beans/qo/ThemeQo.java
+3
-0
ProductService.java
...main/java/com/tanpu/community/service/ProductService.java
+2
-1
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/qo/ThemeQo.java
View file @
f30f70e3
...
@@ -51,6 +51,9 @@ public class ThemeQo implements Serializable {
...
@@ -51,6 +51,9 @@ public class ThemeQo implements Serializable {
@ApiModelProperty
(
value
=
"用户头像"
)
@ApiModelProperty
(
value
=
"用户头像"
)
private
String
userImg
;
private
String
userImg
;
@ApiModelProperty
(
value
=
"用户简介"
)
private
String
userIntroduction
;
@ApiModelProperty
(
value
=
"当前用户是否关注该作者"
)
@ApiModelProperty
(
value
=
"当前用户是否关注该作者"
)
private
boolean
follow
;
private
boolean
follow
;
...
...
community-service/src/main/java/com/tanpu/community/service/ProductService.java
View file @
f30f70e3
...
@@ -377,6 +377,7 @@ public class ProductService {
...
@@ -377,6 +377,7 @@ public class ProductService {
if
(!
StringUtils
.
isEmpty
(
themeQo
.
getAuthorId
())
&&
userMap
.
containsKey
(
themeQo
.
getAuthorId
()))
{
if
(!
StringUtils
.
isEmpty
(
themeQo
.
getAuthorId
())
&&
userMap
.
containsKey
(
themeQo
.
getAuthorId
()))
{
themeQo
.
setNickName
(
userMap
.
get
(
themeQo
.
getAuthorId
()).
getUiUsernameMp
());
themeQo
.
setNickName
(
userMap
.
get
(
themeQo
.
getAuthorId
()).
getUiUsernameMp
());
themeQo
.
setUserImg
(
userMap
.
get
(
themeQo
.
getAuthorId
()).
getUiHeadimgMp
());
themeQo
.
setUserImg
(
userMap
.
get
(
themeQo
.
getAuthorId
()).
getUiHeadimgMp
());
themeQo
.
setUserIntroduction
(
userMap
.
get
(
themeQo
.
getAuthorId
()).
getUiIntroductionMp
());
}
}
if
(
themeQo
.
getContent
()
==
null
)
{
if
(
themeQo
.
getContent
()
==
null
)
{
continue
;
continue
;
...
@@ -415,7 +416,7 @@ public class ProductService {
...
@@ -415,7 +416,7 @@ public class ProductService {
.
product
(
product
).
build
());
.
product
(
product
).
build
());
}
}
}
else
if
(
themeContent
.
getType
().
equals
(
RelTypeEnum
.
SINGLE_IMG
.
type
))
{
}
else
if
(
themeContent
.
getType
().
equals
(
RelTypeEnum
.
SINGLE_IMG
.
type
))
{
//
//
单图封装到imglist列表中
if
(
imgUrlMap
.
containsKey
(
themeContent
.
getValue
()))
{
if
(
imgUrlMap
.
containsKey
(
themeContent
.
getValue
()))
{
FileRecordEntity
imgEntity
=
imgUrlMap
.
get
(
themeContent
.
getValue
());
FileRecordEntity
imgEntity
=
imgUrlMap
.
get
(
themeContent
.
getValue
());
String
extInfo
=
imgEntity
.
getExtInfo
();
String
extInfo
=
imgEntity
.
getExtInfo
();
...
...
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