From 1e9d66afda722a8ace7c5a21c9c0bfa0f14989c4 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 24 九月 2021 15:23:27 +0800 Subject: [PATCH] 热门搜索采用大淘客的搜索排行 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/msg/MsgAccountDetailServiceImpl.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/msg/MsgAccountDetailServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/msg/MsgAccountDetailServiceImpl.java index acfaf28..d73fe02 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/msg/MsgAccountDetailServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/msg/MsgAccountDetailServiceImpl.java @@ -6,6 +6,7 @@ import javax.annotation.Resource; import com.yeshi.fanli.service.inter.msg.MsgOverViewsService; +import com.yeshi.fanli.util.factory.msg.MsgOverViewsFactory; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -35,7 +36,8 @@ @Resource private MsgExtraService msgExtraService; - + @Resource + private MsgOverViewsService msgOverViewsService; @Override @Transactional(rollbackFor = Exception.class) @@ -49,7 +51,8 @@ detail.setRead(false); msgAccountDetailMapper.insertSelective(detail); - + //鍔犲叆娑堟伅绱㈠紩 + msgOverViewsService.save(MsgOverViewsFactory.create(detail)); // 娑堟伅鍐呭 msgExtraService.addMsgExtra(detail.getId(), detail.getExtraInfo(), MsgExtra.MSG_TYPE_ACCOUNT); // 绾㈢偣 -- Gitblit v1.8.0