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
de422190
Commit
de422190
authored
Jul 19, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关注更新条数
parent
79e55670
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
+17
-5
ReportThemeReq.java
...m/tanpu/community/api/beans/req/theme/ReportThemeReq.java
+3
-0
ThemeManager.java
...c/main/java/com/tanpu/community/manager/ThemeManager.java
+1
-1
ThemeService.java
...c/main/java/com/tanpu/community/service/ThemeService.java
+12
-4
VisitSummaryService.java
...java/com/tanpu/community/service/VisitSummaryService.java
+1
-0
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/req/theme/ReportThemeReq.java
View file @
de422190
...
...
@@ -14,5 +14,8 @@ public class ReportThemeReq {
@ApiModelProperty
(
value
=
"举报理由"
)
private
String
reason
;
@ApiModelProperty
(
value
=
"举报理由"
)
private
String
ident
;
}
community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
View file @
de422190
...
...
@@ -100,7 +100,7 @@ public class ThemeManager {
List
<
ThemeEntity
>
themeEntities
=
new
ArrayList
<>();
if
(
ThemeListTypeEnum
.
RECOMMEND
.
getCode
().
equals
(
req
.
getType
()))
{
// TODO:推荐
themeEntities
=
themeService
.
select
All
(
req
.
getLastId
(),
req
.
getPageSize
());
themeEntities
=
themeService
.
select
ExcludeUser
(
userId
,
req
.
getLastId
(),
req
.
getPageSize
());
Set
<
String
>
recomondThemeIds
;
Set
<
String
>
hotThemeIds
;
Set
<
String
>
newThemeIds
;
...
...
community-service/src/main/java/com/tanpu/community/service/ThemeService.java
View file @
de422190
...
...
@@ -95,10 +95,18 @@ public class ThemeService {
return
themeMapper
.
selectList
(
queryWrapper
);
}
//分页倒叙lastId之前的主题
public
List
<
ThemeEntity
>
selectAll
(
String
lastId
,
Integer
pageSize
)
{
LambdaQueryWrapper
<
ThemeEntity
>
queryWrapper
=
new
LambdaQueryWrapper
<
ThemeEntity
>();
/**
* 分页查询,非当前用户的主题
* @param lastId
* @param pageSize
* @param userId
* @return
*/
public
List
<
ThemeEntity
>
selectExcludeUser
(
String
userId
,
String
lastId
,
Integer
pageSize
)
{
LambdaQueryWrapper
<
ThemeEntity
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
if
(!
StringUtils
.
isEmpty
(
userId
)){
queryWrapper
.
ne
(
ThemeEntity:
:
getAuthorId
,
userId
);
}
if
(
StringUtils
.
isNotEmpty
(
lastId
))
{
ThemeEntity
lastEntity
=
queryByThemeId
(
lastId
);
...
...
community-service/src/main/java/com/tanpu/community/service/VisitSummaryService.java
View file @
de422190
...
...
@@ -26,6 +26,7 @@ public class VisitSummaryService {
.
visitorId
(
userId
)
.
refId
(
targetId
)
.
refType
(
type
.
getCode
())
.
duration
(
0
)
.
build
());
}
...
...
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