|
@@ -64,7 +64,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
//判断是否联动
|
|
|
//判断是否是关键词联动搜索
|
|
|
List<SearchFrequencyVo> searchFrequencyVoAll = baseMapper.getInfoBykeyword(keyword, fromType, 1);
|
|
|
- if (StringUtils.isNotEmpty(linkageFlag) && "1".equals(linkageFlag)) {
|
|
|
+ if (StringUtils.isNotEmpty(linkageFlag) && "1".equals(linkageFlag) && searchFrequencyVoAll.size() > 0) {
|
|
|
//联动次数加1,搜索次数重置,从新出现在关键词列表
|
|
|
Integer linkageFrequency = searchFrequencyVoAll.get(0).getLinkageFrequency() + 1;
|
|
|
Integer frequency = 0;
|