Commit b0b3ea7e authored by 赵啸非's avatar 赵啸非

修改热门词汇

parent 949556d5
Pipeline #2424 canceled with stages
package com.mortals.xhx.module.matter.web;
import cn.hutool.core.util.StrUtil;
import com.mortals.framework.common.IBaseEnum;
import com.mortals.framework.common.Rest;
import com.mortals.framework.common.code.YesNo;
......@@ -71,7 +72,7 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
}
if (StringUtils.isNotEmpty(query.getMatterFullName())) {
query.setMatterName("%".concat(query.getMatterFullName()).concat("%"));
query.setMatterFullName("%".concat(query.getMatterFullName()).concat("%"));
}
List<OrderCol> orderColList = new ArrayList<>();
orderColList.add(new OrderCol("isRecommend",OrderCol.DESCENDING));
......@@ -84,7 +85,7 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
//新增
hotwordEntity = new HotwordEntity();
hotwordEntity.initAttrValue();
hotwordEntity.setHotwords(query.getMatterFullName());
hotwordEntity.setHotwords(StrUtil.subBetween(query.getMatterFullName(),"%"));
hotwordEntity.setSearchCount(1);
hotwordService.save(hotwordEntity, context);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment