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
548def1c
Commit
548def1c
authored
Jul 22, 2021
by
张辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
int->long
parent
f1e0cc67
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
58 additions
and
4 deletions
+58
-4
BlackListEntity.java
...tanpu/community/dao/entity/community/BlackListEntity.java
+6
-0
CollectionEntity.java
...anpu/community/dao/entity/community/CollectionEntity.java
+6
-0
CommentEntity.java
...m/tanpu/community/dao/entity/community/CommentEntity.java
+6
-0
FollowRelEntity.java
...tanpu/community/dao/entity/community/FollowRelEntity.java
+6
-0
HomePageEntity.java
.../tanpu/community/dao/entity/community/HomePageEntity.java
+6
-0
ReportLogEntity.java
...tanpu/community/dao/entity/community/ReportLogEntity.java
+6
-0
ThemeEntity.java
...com/tanpu/community/dao/entity/community/ThemeEntity.java
+6
-0
TopicEntity.java
...com/tanpu/community/dao/entity/community/TopicEntity.java
+6
-0
VisitSummaryEntity.java
...pu/community/dao/entity/community/VisitSummaryEntity.java
+6
-0
TopicManager.java
...c/main/java/com/tanpu/community/manager/TopicManager.java
+1
-1
TopicService.java
...c/main/java/com/tanpu/community/service/TopicService.java
+3
-3
No files found.
community-service/src/main/java/com/tanpu/community/dao/entity/community/BlackListEntity.java
View file @
548def1c
...
...
@@ -7,6 +7,9 @@ import java.time.LocalDateTime;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.NoArgsConstructor
;
/**
* <p>
...
...
@@ -18,6 +21,9 @@ import io.swagger.annotations.ApiModelProperty;
*/
@TableName
(
"black_list"
)
@ApiModel
(
value
=
"BlackListEntity对象"
,
description
=
"黑名单"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
BlackListEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/CollectionEntity.java
View file @
548def1c
...
...
@@ -5,6 +5,9 @@ import java.time.LocalDateTime;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.NoArgsConstructor
;
/**
* <p>
...
...
@@ -16,6 +19,9 @@ import io.swagger.annotations.ApiModelProperty;
*/
@TableName
(
"collection"
)
@ApiModel
(
value
=
"CollectionEntity对象"
,
description
=
"收藏/点赞"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
CollectionEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/CommentEntity.java
View file @
548def1c
...
...
@@ -7,6 +7,9 @@ import java.time.LocalDateTime;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.NoArgsConstructor
;
/**
* <p>
...
...
@@ -18,6 +21,9 @@ import io.swagger.annotations.ApiModelProperty;
*/
@TableName
(
"comment"
)
@ApiModel
(
value
=
"CommentEntity对象"
,
description
=
"评论"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
CommentEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/FollowRelEntity.java
View file @
548def1c
...
...
@@ -7,6 +7,9 @@ import java.time.LocalDateTime;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.NoArgsConstructor
;
/**
* <p>
...
...
@@ -18,6 +21,9 @@ import io.swagger.annotations.ApiModelProperty;
*/
@TableName
(
"follow_rel"
)
@ApiModel
(
value
=
"FollowRelEntity对象"
,
description
=
"粉丝关系"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
FollowRelEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/HomePageEntity.java
View file @
548def1c
...
...
@@ -7,6 +7,9 @@ import java.time.LocalDateTime;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.NoArgsConstructor
;
/**
* <p>
...
...
@@ -18,6 +21,9 @@ import io.swagger.annotations.ApiModelProperty;
*/
@TableName
(
"home_page"
)
@ApiModel
(
value
=
"HomePageEntity对象"
,
description
=
"个人主页"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
HomePageEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/ReportLogEntity.java
View file @
548def1c
...
...
@@ -7,6 +7,9 @@ import java.time.LocalDateTime;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.NoArgsConstructor
;
/**
* <p>
...
...
@@ -18,6 +21,9 @@ import io.swagger.annotations.ApiModelProperty;
*/
@TableName
(
"report_log"
)
@ApiModel
(
value
=
"ReportLogEntity对象"
,
description
=
"举报记录"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
ReportLogEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/ThemeEntity.java
View file @
548def1c
...
...
@@ -7,6 +7,9 @@ import java.time.LocalDateTime;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.NoArgsConstructor
;
/**
* <p>
...
...
@@ -18,6 +21,9 @@ import io.swagger.annotations.ApiModelProperty;
*/
@TableName
(
"theme"
)
@ApiModel
(
value
=
"ThemeEntity对象"
,
description
=
"主题内容"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
ThemeEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/TopicEntity.java
View file @
548def1c
...
...
@@ -7,6 +7,9 @@ import java.time.LocalDateTime;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.NoArgsConstructor
;
/**
* <p>
...
...
@@ -18,6 +21,9 @@ import io.swagger.annotations.ApiModelProperty;
*/
@TableName
(
"topic"
)
@ApiModel
(
value
=
"TopicEntity对象"
,
description
=
"话题"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
TopicEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/VisitSummaryEntity.java
View file @
548def1c
...
...
@@ -5,6 +5,9 @@ import java.time.LocalDateTime;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.NoArgsConstructor
;
/**
* <p>
...
...
@@ -16,6 +19,9 @@ import io.swagger.annotations.ApiModelProperty;
*/
@TableName
(
"visit_summary"
)
@ApiModel
(
value
=
"VisitSummaryEntity对象"
,
description
=
"浏览记录"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
VisitSummaryEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
community-service/src/main/java/com/tanpu/community/manager/TopicManager.java
View file @
548def1c
...
...
@@ -110,7 +110,7 @@ public class TopicManager {
List
<
TopicEntity
>
topicEntities
=
topicService
.
queryAll
();
for
(
TopicEntity
topic
:
topicEntities
)
{
String
topicId
=
topic
.
getTopicId
();
Long
viewCountModify
=
topic
.
get
v
iewCntAdjust
();
Long
viewCountModify
=
topic
.
get
V
iewCntAdjust
();
List
<
String
>
themeIds
=
themeService
.
queryThemeIdsByTopic
(
topicId
);
Integer
likeCountByThemeIds
=
collectionService
.
getCountByTypeAndIds
(
themeIds
,
CollectionTypeEnum
.
LIKE_THEME
);
Integer
bookCountByThemeIds
=
collectionService
.
getCountByTypeAndIds
(
themeIds
,
CollectionTypeEnum
.
COLLECT_THEME
);
...
...
community-service/src/main/java/com/tanpu/community/service/TopicService.java
View file @
548def1c
...
...
@@ -95,10 +95,10 @@ public class TopicService {
public
void
modifyViewCount
(
String
topicId
,
long
Count
)
{
TopicEntity
topicEntity
=
queryById
(
topicId
);
Long
oldCount
=
topicEntity
.
get
v
iewCntAdjust
();
topicEntity
.
setViewAmountModify
(
topicEntity
.
get
v
iewCntAdjust
()
+
Count
);
Long
oldCount
=
topicEntity
.
get
V
iewCntAdjust
();
topicEntity
.
setViewAmountModify
(
topicEntity
.
get
V
iewCntAdjust
()
+
Count
);
topicMapper
.
update
(
topicEntity
,
new
LambdaUpdateWrapper
<
TopicEntity
>()
.
eq
(
TopicEntity:
:
get
v
iewCntAdjust
,
oldCount
));
.
eq
(
TopicEntity:
:
get
V
iewCntAdjust
,
oldCount
));
return
;
}
...
...
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