Commit 5187e0f5 authored by shiyu's avatar shiyu

藏品详情2

parent 6642ac84
......@@ -1033,11 +1033,13 @@ public class SupplierItemServiceImpl implements SupplierItemService {
supplierItemVo.setDistributionPrice(PriceUtil.convertPriceFenToYuan(supplierItem.getDistributionPrice()));
supplierItemVo.setOfficialEstimatedPrice(PriceUtil.convertPriceFenToYuan(supplierItem.getOfficialEstimatedPrice()));
supplierItemVo.setHomePageImage(MediaUtil.getHomePageImage(supplierItem.getImages(), supplierItem.getVideos()));
if (supplierItem.getCreatorId() != null) {
User creator = cacheUtil.appletUserInfoCache.get(supplierItem.getCreatorId()).get();
supplierItemVo.setCreatorName(creator.getNickname());
String avatar = creator.getAvatar();
supplierItemVo.setCreatorAvatar(StringUtils.isEmpty(avatar) ? CommConsts.DEFAULT_AVATAR_URL : avatar);
supplierItemVo.setCreatorProfile(creator.getProfile());
}
//查询藏品被收藏的次数
long countNum = itemCollectedRecordDao.countByItemId(itemId);
supplierItemVo.setCollectedNum((int) countNum);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment