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
13ac331e
Commit
13ac331e
authored
Jul 28, 2021
by
张辰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://47.100.44.39:10001/tp-backend/tanpu-community
into dev
parents
66a77c5d
c201a1c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
22 deletions
+9
-22
ThemeManager.java
...c/main/java/com/tanpu/community/manager/ThemeManager.java
+7
-2
RankService.java
...rc/main/java/com/tanpu/community/service/RankService.java
+1
-19
VisitSummaryService.java
...java/com/tanpu/community/service/VisitSummaryService.java
+1
-1
No files found.
community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
View file @
13ac331e
...
...
@@ -124,8 +124,13 @@ public class ThemeManager {
themeEntity
.
setAuthorId
(
userId
);
themeEntity
.
setContent
(
JsonUtil
.
toJson
(
req
.
getContent
()));
//讨论类型,将讨论中的文本放入到discussContent中
if
(
ThemeTypeEnum
.
DISCUSSION
.
getCode
().
equals
(
themeEntity
.
getThemeType
()))
themeEntity
.
setDiscussContent
(
req
.
getContent
().
get
(
0
).
getValue
());
if
(
ThemeTypeEnum
.
DISCUSSION
.
getCode
().
equals
(
themeEntity
.
getThemeType
()))
{
String
content
=
req
.
getContent
().
get
(
0
).
getValue
();
if
(
content
.
length
()>
256
){
content
=
content
.
substring
(
0
,
255
);
}
themeEntity
.
setDiscussContent
(
content
);
}
//腾讯云敏感词校验
checkContent
(
themeEntity
.
getContent
());
...
...
community-service/src/main/java/com/tanpu/community/service/RankService.java
View file @
13ac331e
...
...
@@ -138,25 +138,7 @@ public class RankService {
}
/**
* 最新和热门主题集合
*
* @param hotCount
* @param newCount
* @return
*/
// public List<String> getHotAndNewThemes(Integer hotCount, Integer newCount, String userId) {
// Set<String> hotThemeIds = this.hotestThemes.stream().limit(hotCount)
// .filter(o -> !userId.equals(o.getAuthorId()))
// .map(ThemeAnalysDO::getThemeId)
// .collect(Collectors.toSet());
// Set<String> newThemeIds = themeService.selectExcludeUser(null, null, newCount)
// .stream().map(ThemeEntity::getThemeId).collect(Collectors.toSet());
// hotThemeIds.addAll(newThemeIds);
// return new ArrayList<>(hotThemeIds);
// }
/**
* 话题详情
* 从排序列表中返回话题详情
*
* @param topicId 话题Id
* @return
...
...
community-service/src/main/java/com/tanpu/community/service/VisitSummaryService.java
View file @
13ac331e
...
...
@@ -111,7 +111,7 @@ public class VisitSummaryService {
}
}
//统计
主题
集合的浏览量
//统计
行为
集合的浏览量
public
Map
<
String
,
Integer
>
getCountMapByTargetIds
(
List
<
String
>
refIds
,
VisitTypeEnum
type
)
{
if
(
CollectionUtils
.
isEmpty
(
refIds
)){
return
new
HashMap
<>();
...
...
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