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
faced86f
Commit
faced86f
authored
Jul 12, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
follow表修改
parent
0b385b67
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
13 deletions
+37
-13
FileRecordEntity.java
...anpu/community/dao/entity/community/FileRecordEntity.java
+12
-1
FollowRelEntity.java
...tanpu/community/dao/entity/community/FollowRelEntity.java
+7
-7
ThemeAttachmentEntity.java
...community/dao/entity/community/ThemeAttachmentEntity.java
+12
-1
FollowRelService.java
...in/java/com/tanpu/community/service/FollowRelService.java
+3
-3
FileRecordEntityMapper.xml
...ain/resources/mapper/community/FileRecordEntityMapper.xml
+1
-0
FollowRelEntityMapper.xml
...main/resources/mapper/community/FollowRelEntityMapper.xml
+1
-1
ThemeAttachmentEntityMapper.xml
...esources/mapper/community/ThemeAttachmentEntityMapper.xml
+1
-0
No files found.
community-service/src/main/java/com/tanpu/community/dao/entity/community/FileRecordEntity.java
View file @
faced86f
...
...
@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
* </p>
*
* @author xudong
* @since 2021-07-
07
* @since 2021-07-
12
*/
@TableName
(
"file_record"
)
@Builder
...
...
@@ -54,6 +54,8 @@ public class FileRecordEntity implements Serializable {
private
Integer
deleteTag
;
private
String
extInfo
;
public
Integer
getId
()
{
return
id
;
...
...
@@ -127,6 +129,14 @@ public class FileRecordEntity implements Serializable {
this
.
deleteTag
=
deleteTag
;
}
public
String
getExtInfo
()
{
return
extInfo
;
}
public
void
setExtInfo
(
String
extInfo
)
{
this
.
extInfo
=
extInfo
;
}
@Override
public
String
toString
()
{
return
"FileRecordEntity{"
+
...
...
@@ -139,6 +149,7 @@ public class FileRecordEntity implements Serializable {
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", deleteTag="
+
deleteTag
+
", extInfo="
+
extInfo
+
"}"
;
}
}
community-service/src/main/java/com/tanpu/community/dao/entity/community/FollowRelEntity.java
View file @
faced86f
...
...
@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
* </p>
*
* @author xudong
* @since 2021-07-
07
* @since 2021-07-
12
*/
@TableName
(
"follow_rel"
)
@Builder
...
...
@@ -34,7 +34,7 @@ public class FollowRelEntity implements Serializable {
private
Integer
id
;
@ApiModelProperty
(
value
=
"被关注的人id"
)
private
String
followId
;
private
String
follow
User
Id
;
@ApiModelProperty
(
value
=
"粉丝id"
)
private
String
followerId
;
...
...
@@ -60,12 +60,12 @@ public class FollowRelEntity implements Serializable {
this
.
id
=
id
;
}
public
String
getFollowId
()
{
return
followId
;
public
String
getFollow
User
Id
()
{
return
follow
User
Id
;
}
public
void
setFollow
Id
(
String
follow
Id
)
{
this
.
follow
Id
=
follow
Id
;
public
void
setFollow
UserId
(
String
followUser
Id
)
{
this
.
follow
UserId
=
followUser
Id
;
}
public
String
getFollowerId
()
{
...
...
@@ -120,7 +120,7 @@ public class FollowRelEntity implements Serializable {
public
String
toString
()
{
return
"FollowRelEntity{"
+
"id="
+
id
+
", follow
Id="
+
follow
Id
+
", follow
UserId="
+
followUser
Id
+
", followerId="
+
followerId
+
", followTime="
+
followTime
+
", unfollowTime="
+
unfollowTime
+
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/ThemeAttachmentEntity.java
View file @
faced86f
...
...
@@ -16,7 +16,7 @@ import java.time.LocalDateTime;
* </p>
*
* @author xudong
* @since 2021-07-
07
* @since 2021-07-
12
*/
@TableName
(
"theme_attachment"
)
@Builder
...
...
@@ -49,6 +49,8 @@ public class ThemeAttachmentEntity implements Serializable {
private
Integer
deleteTag
;
private
String
extInfo
;
public
String
getId
()
{
return
id
;
...
...
@@ -122,6 +124,14 @@ public class ThemeAttachmentEntity implements Serializable {
this
.
deleteTag
=
deleteTag
;
}
public
String
getExtInfo
()
{
return
extInfo
;
}
public
void
setExtInfo
(
String
extInfo
)
{
this
.
extInfo
=
extInfo
;
}
@Override
public
String
toString
()
{
return
"ThemeAttachmentEntity{"
+
...
...
@@ -134,6 +144,7 @@ public class ThemeAttachmentEntity implements Serializable {
", updateBy="
+
updateBy
+
", updateTime="
+
updateTime
+
", deleteTag="
+
deleteTag
+
", extInfo="
+
extInfo
+
"}"
;
}
}
community-service/src/main/java/com/tanpu/community/service/FollowRelService.java
View file @
faced86f
...
...
@@ -20,20 +20,20 @@ public class FollowRelService {
public
List
<
String
>
queryFansByFollowerId
(
String
followerId
)
{
return
followRelMapper
.
selectList
(
new
LambdaQueryWrapper
<
FollowRelEntity
>()
.
eq
(
FollowRelEntity:
:
getFollowerId
,
followerId
))
.
stream
().
map
(
FollowRelEntity:
:
getFollowId
).
collect
(
Collectors
.
toList
());
.
stream
().
map
(
FollowRelEntity:
:
getFollow
User
Id
).
collect
(
Collectors
.
toList
());
}
// @Cacheable(value = "tempCache", keyGenerator = "communityKeyGenerator")
public
List
<
String
>
queryFansByIdolId
(
String
idolId
)
{
LambdaQueryWrapper
<
FollowRelEntity
>
queryWrapper
=
new
LambdaQueryWrapper
<
FollowRelEntity
>()
.
eq
(
FollowRelEntity:
:
getFollowId
,
idolId
);
.
eq
(
FollowRelEntity:
:
getFollow
User
Id
,
idolId
);
return
followRelMapper
.
selectList
(
queryWrapper
)
.
stream
().
map
(
FollowRelEntity:
:
getFollowerId
).
collect
(
Collectors
.
toList
());
}
public
void
addFans
(
String
idolId
,
String
followerId
)
{
FollowRelEntity
rel
=
new
FollowRelEntity
();
rel
.
setFollowId
(
idolId
);
rel
.
setFollow
User
Id
(
idolId
);
rel
.
setFollowerId
(
followerId
);
followRelMapper
.
insert
(
rel
);
...
...
community-service/src/main/resources/mapper/community/FileRecordEntityMapper.xml
View file @
faced86f
...
...
@@ -13,6 +13,7 @@
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"delete_tag"
property=
"deleteTag"
/>
<result
column=
"ext_info"
property=
"extInfo"
/>
</resultMap>
</mapper>
community-service/src/main/resources/mapper/community/FollowRelEntityMapper.xml
View file @
faced86f
...
...
@@ -5,7 +5,7 @@
<!-- 通用查询映射结果 -->
<resultMap
id=
"BaseResultMap"
type=
"com.tanpu.community.dao.entity.community.FollowRelEntity"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"follow_
id"
property=
"follow
Id"
/>
<result
column=
"follow_
user_id"
property=
"followUser
Id"
/>
<result
column=
"follower_id"
property=
"followerId"
/>
<result
column=
"follow_time"
property=
"followTime"
/>
<result
column=
"unfollow_time"
property=
"unfollowTime"
/>
...
...
community-service/src/main/resources/mapper/community/ThemeAttachmentEntityMapper.xml
View file @
faced86f
...
...
@@ -13,6 +13,7 @@
<result
column=
"update_by"
property=
"updateBy"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"delete_tag"
property=
"deleteTag"
/>
<result
column=
"ext_info"
property=
"extInfo"
/>
</resultMap>
</mapper>
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