|
@@ -19,6 +19,7 @@ import com.redxun.knowledge.entity.dao.CommonEntity;
|
|
|
import com.redxun.knowledge.entity.vo.DicVo;
|
|
|
import com.redxun.knowledge.entity.vo.PositionSequenceVo;
|
|
|
import com.redxun.knowledge.mapper.CommonMapper;
|
|
|
+import com.redxun.search.service.impl.SearchServiceImpl;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -47,6 +48,9 @@ public class CommonServiceImpl extends SuperServiceImpl<CommonMapper, CommonEnti
|
|
|
@Autowired
|
|
|
private PvLogMapper pvLogMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SearchServiceImpl searchService;
|
|
|
+
|
|
|
@Resource
|
|
|
@Lazy
|
|
|
SystemClient systemClient;
|
|
@@ -111,8 +115,9 @@ public class CommonServiceImpl extends SuperServiceImpl<CommonMapper, CommonEnti
|
|
|
public void pageTrack(SystemLogDto systemLogDto) {
|
|
|
IUser users = ContextUtil.getCurrentUser();
|
|
|
PvLog pvLog = new PvLog();
|
|
|
- //地图详情补充字段处理
|
|
|
- if (("知识地图").equals(systemLogDto.getModule()) && ("详情").equals(systemLogDto.getSubModule())){
|
|
|
+ //专辑详情&地图详情补充字段处理
|
|
|
+ if (("知识专辑").equals(systemLogDto.getModule()) && ("详情").equals(systemLogDto.getSubModule()) ||
|
|
|
+ ("知识地图").equals(systemLogDto.getModule()) && ("详情").equals(systemLogDto.getSubModule())){
|
|
|
String ussd = systemLogDto.getUssd();
|
|
|
KnowledgeTypeParse knowledgeTypeParse = JSON.parseObject(ussd, KnowledgeTypeParse.class);
|
|
|
String id = knowledgeTypeParse.getId();
|
|
@@ -130,4 +135,13 @@ public class CommonServiceImpl extends SuperServiceImpl<CommonMapper, CommonEnti
|
|
|
pvLog.setUpdateTime(new Date());
|
|
|
pvLogMapper.insert(pvLog);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 搜索关键字上报
|
|
|
+ * @param keyword
|
|
|
+ */
|
|
|
+ public void searchKeywordTrack(String keyword) {
|
|
|
+ IUser users = ContextUtil.getCurrentUser();
|
|
|
+ searchService.keywordParticiple(keyword,users);
|
|
|
+ }
|
|
|
}
|