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
ca0f49bf
Commit
ca0f49bf
authored
3 years ago
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转发存储es fix
parent
662ac7aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
ESThemeQo.java
...main/java/com/tanpu/community/api/beans/qo/ESThemeQo.java
+1
-4
ThemeManager.java
...c/main/java/com/tanpu/community/manager/ThemeManager.java
+7
-0
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/qo/ESThemeQo.java
View file @
ca0f49bf
package
com
.
tanpu
.
community
.
api
.
beans
.
qo
;
import
com.tanpu.community.api.beans.vo.ImagesDTO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
ESThemeQo
{
...
...
@@ -15,7 +12,7 @@ public class ESThemeQo {
@ApiModelProperty
(
value
=
"标题"
)
public
String
title
;
@ApiModelProperty
(
value
=
"类型 1:讨论无标题 2:长文有标题 3:转发
4:评论
"
)
@ApiModelProperty
(
value
=
"类型 1:讨论无标题 2:长文有标题 3:转发"
)
public
Integer
themeType
;
@ApiModelProperty
(
value
=
"文本内容"
)
...
...
This diff is collapsed.
Click to expand it.
community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
View file @
ca0f49bf
...
...
@@ -217,6 +217,13 @@ public class ThemeManager {
themeService
.
update
(
themeEntity
,
req
.
getEditThemeId
());
themeEntity
.
setThemeId
(
req
.
getEditThemeId
());
}
try
{
esService
.
insertOrUpdateTheme
(
ConvertUtil
.
convert
(
themeEntity
));
}
catch
(
Exception
e
)
{
log
.
error
(
"error in save theme to ES. themeId:{}, error:{}"
,
themeEntity
.
getThemeId
(),
ExceptionUtils
.
getStackTrace
(
e
));
}
return
CreateThemeResp
.
builder
().
themeId
(
themeEntity
.
getThemeId
()).
build
();
}
...
...
This diff is collapsed.
Click to expand it.
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