Commit cdda9321 authored by muhong's avatar muhong

修改 浏览量

parent e82c7bd3
...@@ -572,7 +572,6 @@ public class ItemServiceImpl implements ItemService { ...@@ -572,7 +572,6 @@ public class ItemServiceImpl implements ItemService {
} }
} }
if (Objects.nonNull(userItemsRelation) && !userItemsRelation.getUserId().equals(dto.getUserId())) {
// 添加或更新用户足迹 // 添加或更新用户足迹
Footprint footprint = footPrintDao.selectByUserIdItem(dto.getUserId(), item.getId()); Footprint footprint = footPrintDao.selectByUserIdItem(dto.getUserId(), item.getId());
Date now = new Date(); Date now = new Date();
...@@ -588,7 +587,7 @@ public class ItemServiceImpl implements ItemService { ...@@ -588,7 +587,7 @@ public class ItemServiceImpl implements ItemService {
// 更新藏品发布者的浏览量 // 更新藏品发布者的浏览量
if (Objects.nonNull(userItemsRelation)) { if (Objects.nonNull(userItemsRelation)) {
UserCollectBrowseNum userCollectBrowseNum = userCollectBrowseNumDao.findByUserId(userItemsRelation.getUserId()); UserCollectBrowseNum userCollectBrowseNum = userCollectBrowseNumDao.findByUserId(userItemsRelation.getUserId());
if (Objects.nonNull(userCollectBrowseNum)) { if (Objects.nonNull(userCollectBrowseNum) && !userItemsRelation.getUserId().equals(dto.getUserId())) {
userCollectBrowseNum.setBrowseNum(userCollectBrowseNum.getBrowseNum() + 1); userCollectBrowseNum.setBrowseNum(userCollectBrowseNum.getBrowseNum() + 1);
userCollectBrowseNumDao.update(userCollectBrowseNum); userCollectBrowseNumDao.update(userCollectBrowseNum);
} }
...@@ -598,7 +597,6 @@ public class ItemServiceImpl implements ItemService { ...@@ -598,7 +597,6 @@ public class ItemServiceImpl implements ItemService {
footPrintDao.upateTime(footprint); footPrintDao.upateTime(footprint);
} }
} }
}
// 设置藏品的发布用户昵称和头像 // 设置藏品的发布用户昵称和头像
itemCommonService.getNicknameAvatar(item.getId(), itemResponseVo); itemCommonService.getNicknameAvatar(item.getId(), itemResponseVo);
......
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