Commit 952972c5 authored by 赵啸非's avatar 赵啸非

修改热门词汇

parent 4b0dcc56
Pipeline #2400 canceled with stages
......@@ -68,15 +68,15 @@ public class MatterDatumController extends BaseCRUDJsonBodyMappingController<Mat
@Override
protected void doListBefore(MatterDatumEntity query, Map<String, Object> model, Context context) throws AppException {
if (StringUtils.isNotEmpty(query.getMatterName())) {
query.setMatterName("%".concat(query.getMatterName()).concat("%"));
if (StringUtils.isNotEmpty(query.getMateriaFullName())) {
query.setMatterName("%".concat(query.getMateriaFullName()).concat("%"));
//添加更新热门词汇
HotwordEntity hotwordEntity = hotwordService.selectOne(new HotwordQuery().siteId(query.getSiteId()).hotwords(query.getMatterName()), context);
HotwordEntity hotwordEntity = hotwordService.selectOne(new HotwordQuery().siteId(query.getSiteId()).hotwords(query.getMateriaFullName()), context);
if (ObjectUtils.isEmpty(hotwordEntity)) {
//新增
hotwordEntity = new HotwordEntity();
hotwordEntity.initAttrValue();
hotwordEntity.setHotwords(query.getMatterName());
hotwordEntity.setHotwords(query.getMateriaFullName());
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