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
5c86090f
Commit
5c86090f
authored
Aug 08, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片翻转
parent
7766da9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+3
-0
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
5c86090f
...
...
@@ -876,6 +876,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
}
supplierItemVo
.
setIsCollected
(
true
);
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
itemId
);
logger
.
info
(
"藏品id:{}, 数据库查询结果:{}"
,
itemId
,
JsonUtils
.
from
(
supplierItem
));
if
(
supplierItem
.
getIsOnSale
())
{
supplierItemVo
.
setPostType
(
DistributionEnum
.
PostTypeEnum
.
SALE
.
getCode
());
supplierItemVo
.
setAppendImageUrl
(
APPEND_IMAGE_URL
);
...
...
@@ -931,6 +932,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
supplierItemVo
.
setCollectorsAvatar
(
avatarList
);
}
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
logger
.
info
(
"藏品id:{}, 转换后结果:{}"
,
itemId
,
JsonUtils
.
from
(
supplierItemVo
));
supplierItemVo
.
setItemId
(
supplierItem
.
getId
());
supplierItemVo
.
setDistributionPrice
(
PriceUtil
.
convertPriceFenToYuan
(
supplierItem
.
getDistributionPrice
()));
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
...
...
@@ -983,6 +985,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
supplierItemVo
.
setBookIdList
(
list
);
}
}
logger
.
info
(
"藏品id:{}, 最终返回结果:{}"
,
itemId
,
JsonUtils
.
from
(
supplierItemVo
));
return
Result
.
success
(
supplierItemVo
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"查询上传的藏品详情 error : {}"
,
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