|
|
@@ -43,7 +43,7 @@ public class ResourceService {
|
|
|
private ContactHelpLogMapper helpLogMapper;
|
|
|
|
|
|
@Resource
|
|
|
- private PearlInteractionLogMapper interactionLogMapper;
|
|
|
+ private PearlInteractionLogMapper pearlInteractionLogMapper;
|
|
|
|
|
|
@Resource
|
|
|
private PearlInteractionReminderMapper reminderMapper;
|
|
|
@@ -212,12 +212,12 @@ public class ResourceService {
|
|
|
log.setContent(content != null ? content.trim() : null);
|
|
|
log.setHappenedAt(new Date());
|
|
|
log.setCreatedAt(new Date());
|
|
|
- interactionLogMapper.insert(log);
|
|
|
+ pearlInteractionLogMapper.insert(log);
|
|
|
|
|
|
item.setLastInteractionAt(log.getHappenedAt());
|
|
|
item.setInteractionCount((item.getInteractionCount() == null ? 0 : item.getInteractionCount()) + 1);
|
|
|
// 重新计算价值分(互动后价值提升)
|
|
|
- List<PearlInteractionLog> logs = interactionLogMapper.selectList(
|
|
|
+ List<PearlInteractionLog> logs = pearlInteractionLogMapper.selectList(
|
|
|
new LambdaQueryWrapper<PearlInteractionLog>()
|
|
|
.eq(PearlInteractionLog::getResourceItemId, itemId)
|
|
|
.orderByDesc(PearlInteractionLog::getHappenedAt)
|
|
|
@@ -242,7 +242,7 @@ public class ResourceService {
|
|
|
if (item == null || !item.getUserId().equals(userId)) {
|
|
|
return Result.error("资源不存在");
|
|
|
}
|
|
|
- List<PearlInteractionLog> logs = interactionLogMapper.selectList(
|
|
|
+ List<PearlInteractionLog> logs = pearlInteractionLogMapper.selectList(
|
|
|
new LambdaQueryWrapper<PearlInteractionLog>()
|
|
|
.eq(PearlInteractionLog::getResourceItemId, itemId)
|
|
|
.orderByDesc(PearlInteractionLog::getHappenedAt)
|