Commit 0ed82342 authored by 赵啸非's avatar 赵啸非

修改热门词汇

parent b0b3ea7e
Pipeline #2425 canceled with stages
...@@ -56,17 +56,18 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter ...@@ -56,17 +56,18 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
matterEntity.getMatterDatumList().forEach(matterDatumEntity -> { matterEntity.getMatterDatumList().forEach(matterDatumEntity -> {
matterDatumEntity.setMatterName(matterEntity.getMatterName()); matterDatumEntity.setMatterName(matterEntity.getMatterName());
matterDatumEntity.setMateriaFullName(matterEntity.getMatterFullName());
matterDatumEntity.setMatterNo(matterEntity.getMatterNo()); matterDatumEntity.setMatterNo(matterEntity.getMatterNo());
matterDatumEntity.setDeptCode(matterEntity.getDeptCode()); matterDatumEntity.setDeptCode(matterEntity.getDeptCode());
}); });
if (entity.getIsTerminal() == YesNoEnum.YES.getValue()) { if (entity.getIsTerminal() == YesNoEnum.YES.getValue()) {
String searchMatterName = StrUtil.subBetween(entity.getMatterName(), "%"); String searchMatterName = StrUtil.subBetween(entity.getMatterFullName(), "%");
if(!ObjectUtils.isEmpty(searchMatterName)){ if(!ObjectUtils.isEmpty(searchMatterName)){
//终端访问,标红查询参数 //终端访问,标红查询参数
String str = "<span style=\"color:red;font-weight:bold\">%s</span>"; String str = "<span style=\"color:red;font-weight:bold\">%s</span>";
String replaceStr = StrUtil.replace(matterEntity.getMatterName(), searchMatterName, String.format(str, searchMatterName)); String replaceStr = StrUtil.replace(matterEntity.getMatterName(), searchMatterName, String.format(str, searchMatterName));
matterEntity.setMatterName(replaceStr); matterEntity.setMatterFullName(replaceStr);
} }
} }
......
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