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