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
8f5c23ee
Commit
8f5c23ee
authored
Aug 06, 2021
by
张辰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!7
parents
30e71f2b
e4a9d965
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
ThemeContentQo.java
...java/com/tanpu/community/api/beans/qo/ThemeContentQo.java
+1
-1
RankService.java
...rc/main/java/com/tanpu/community/service/RankService.java
+2
-0
create.sql
docs/create.sql
+1
-1
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/qo/ThemeContentQo.java
View file @
8f5c23ee
...
...
@@ -17,7 +17,7 @@ import java.util.List;
@NoArgsConstructor
public
class
ThemeContentQo
{
@ApiModelProperty
(
value
=
"RelTypeEnum类型,108:文本,88:产品 3:直播 6:短视频 303:新版课程-
视频,304: 新版课程-音
频,109:单图(长文) 110:多图(讨论)"
)
@ApiModelProperty
(
value
=
"RelTypeEnum类型,108:文本,88:产品 3:直播 6:短视频 303:新版课程-
音频,304: 新版课程-视
频,109:单图(长文) 110:多图(讨论)"
)
private
String
type
;
@ApiModelProperty
(
value
=
"文本的值是内容,附件的值为id"
)
...
...
community-service/src/main/java/com/tanpu/community/service/RankService.java
View file @
8f5c23ee
...
...
@@ -150,6 +150,8 @@ public class RankService {
LocalDateTime
start
=
LocalDateTime
.
now
();
List
<
TopicEntity
>
topicEntities
=
topicService
.
queryAll
();
if
(
CollectionUtils
.
isEmpty
(
topicEntities
))
{
this
.
rankTopicList
=
new
ArrayList
<>();
this
.
rankTopicListTop4
=
new
ArrayList
<>();
return
;
}
List
<
TopicRankQo
>
topicRankQos
=
ConvertUtil
.
topicEntityToHotQos
(
topicEntities
);
...
...
docs/create.sql
View file @
8f5c23ee
...
...
@@ -126,7 +126,7 @@ CREATE TABLE `theme` (
`theme_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'主题主键Id'
,
`title`
varchar
(
128
)
NOT
NULL
DEFAULT
''
COMMENT
'标题'
,
`theme_type`
int
(
4
)
NOT
NULL
DEFAULT
'-1'
COMMENT
'类型 1:讨论无标题 2:长文有标题 3:转发'
,
`content`
longtext
NOT
NULL
COMMENT
'文本内容(json),type:附件类型(108:文本,88:产品 3:直播 6:短视频 303:新版课程-
视频,304: 新版课程-音
频,109:单图(长文) 110:多图(讨论)),productType:基金类型(0 公募,1 私募,2 白名单,3 私有)'
,
`content`
longtext
NOT
NULL
COMMENT
'文本内容(json),type:附件类型(108:文本,88:产品 3:直播 6:短视频 303:新版课程-
音频,304: 新版课程-视
频,109:单图(长文) 110:多图(讨论)),productType:基金类型(0 公募,1 私募,2 白名单,3 私有)'
,
`author_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'作者id'
,
`former_theme_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'转发的主题'
,
`topic_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'所属的话题'
,
...
...
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