Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
a65ae929
Commit
a65ae929
authored
Sep 25, 2023
by
muhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 藏品详情
parent
fdc94f47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
+4
-4
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
View file @
a65ae929
...
@@ -547,6 +547,8 @@ public class ItemServiceImpl implements ItemService {
...
@@ -547,6 +547,8 @@ public class ItemServiceImpl implements ItemService {
// 设置是否收藏或是否是自己发布的
// 设置是否收藏或是否是自己发布的
itemResponseVo
.
setIsCollected
(
0
);
itemResponseVo
.
setIsCollected
(
0
);
itemResponseVo
.
setIsMine
(
0
);
itemResponseVo
.
setIsMine
(
0
);
// 设置藏品的发布用户昵称和头像
itemCommonService
.
getNicknameAvatar
(
item
.
getId
(),
itemResponseVo
);
itemResponseVo
.
setIsFollowed
(
false
);
itemResponseVo
.
setIsFollowed
(
false
);
itemResponseVo
.
setFollowedId
(
null
);
itemResponseVo
.
setFollowedId
(
null
);
if
(
Objects
.
nonNull
(
dto
.
getUserId
())
&&
!
dto
.
getUserId
().
equals
(
0L
))
{
if
(
Objects
.
nonNull
(
dto
.
getUserId
())
&&
!
dto
.
getUserId
().
equals
(
0L
))
{
...
@@ -558,9 +560,9 @@ public class ItemServiceImpl implements ItemService {
...
@@ -558,9 +560,9 @@ public class ItemServiceImpl implements ItemService {
itemResponseVo
.
setIsCollected
(
0
);
itemResponseVo
.
setIsCollected
(
0
);
}
}
itemResponseVo
.
setIsMine
(
userItemsRelationDao
.
isExisted
(
dto
.
getUserId
(),
item
.
getId
())
?
1
:
0
);
itemResponseVo
.
setIsMine
(
userItemsRelationDao
.
isExisted
(
dto
.
getUserId
(),
item
.
getId
())
?
1
:
0
);
if
(
itemResponseVo
.
getIsMine
()
==
0
&&
item
.
getSourceType
().
equals
(
CommonEnum
.
SourceTypeEnum
.
USER_UPLOAD
.
getCode
())
)
{
if
(
itemResponseVo
.
getIsMine
()
==
0
)
{
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
followFansRecordRequestDto
.
setFollowerId
(
userItemsRelation
.
get
UserId
());
followFansRecordRequestDto
.
setFollowerId
(
itemResponseVo
.
getItem
UserId
());
followFansRecordRequestDto
.
setFansId
(
dto
.
getUserId
());
followFansRecordRequestDto
.
setFansId
(
dto
.
getUserId
());
Result
result
=
followFansRecordService
.
findFollowRelation
(
followFansRecordRequestDto
);
Result
result
=
followFansRecordService
.
findFollowRelation
(
followFansRecordRequestDto
);
if
(
result
.
getSuccess
())
{
if
(
result
.
getSuccess
())
{
...
@@ -599,8 +601,6 @@ public class ItemServiceImpl implements ItemService {
...
@@ -599,8 +601,6 @@ public class ItemServiceImpl implements ItemService {
}
}
}
}
// 设置藏品的发布用户昵称和头像
itemCommonService
.
getNicknameAvatar
(
item
.
getId
(),
itemResponseVo
);
logger
.
info
(
"【请求结束】查看藏品详情成功"
);
logger
.
info
(
"【请求结束】查看藏品详情成功"
);
return
Result
.
success
(
itemResponseVo
);
return
Result
.
success
(
itemResponseVo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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