Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
event
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
陈世强
event
Commits
07631f3f
提交
07631f3f
authored
8月 30, 2025
作者:
925993793@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【定制专题】新增时增加通用打分配置逻辑
上级
4af8252c
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
3 行删除
+12
-3
SubjectSimpleServiceImpl.java
...com/zzsn/event/service/impl/SubjectSimpleServiceImpl.java
+12
-3
没有找到文件。
src/main/java/com/zzsn/event/service/impl/SubjectSimpleServiceImpl.java
浏览文件 @
07631f3f
...
...
@@ -113,7 +113,7 @@ public class SubjectSimpleServiceImpl implements SubjectSimpleService {
String
defaultConfig
=
"[{\"id\": \"1-1\", \"name\": \"信息源组\", \"children\": [], \"indexWeight\": 10}, {\"id\": \"1-2\", \"name\": \"文章长度\", \"indexWeight\": 15, \"keyWordsTopLimit\": 2500, \"keyWordsLowerLimit\": 500}, {\"id\": \"1-3\", \"name\": \"内容\", \"children\": [{\"id\": \"1-3-1\", \"name\": \"内容-关键词\", \"keyWords\": \"KEY_WORD\", \"indexWeight\": 75, \"titleWeight\": 10, \"keyWordsTopLimit\": 15, \"keyWordsLowerLimit\": 3}]}]"
;
List
<
SearchWordVO
>
collect
=
keywords
.
stream
().
filter
(
searchWordVO
->
!
"NOT"
.
equalsIgnoreCase
(
searchWordVO
.
getSearchLogicRelationship
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
collect
))
{
defaultConfig
=
defaultConfig
.
replace
(
"KEY_WORD"
,
String
.
join
(
"|"
,
collect
.
stream
().
map
(
SearchWordVO:
:
getSearchInfo
).
collect
(
Collectors
.
toList
()
)));
defaultConfig
=
defaultConfig
.
replace
(
"KEY_WORD"
,
collect
.
stream
().
map
(
SearchWordVO:
:
getSearchInfo
).
collect
(
Collectors
.
joining
(
"|"
)));
}
ScoreModel
scoreModel
=
new
ScoreModel
();
scoreModel
.
setSubjectId
(
subjectId
);
...
...
@@ -150,8 +150,17 @@ public class SubjectSimpleServiceImpl implements SubjectSimpleService {
List
<
SearchWordVO
>
keywords
=
subjectSimpleVO
.
getKeywords
();
if
(
CollectionUtils
.
isNotEmpty
(
keywords
))
{
modifyKeyword
(
subjectId
,
subject
.
getSubjectName
(),
keywords
);
//同步配置到采集
//configurationMessageService.bindKeyWordsSend(subjectId,1);
//默认通用打分配置
String
defaultConfig
=
"[{\"id\": \"1-1\", \"name\": \"信息源组\", \"children\": [], \"indexWeight\": 10}, {\"id\": \"1-2\", \"name\": \"文章长度\", \"indexWeight\": 15, \"keyWordsTopLimit\": 2500, \"keyWordsLowerLimit\": 500}, {\"id\": \"1-3\", \"name\": \"内容\", \"children\": [{\"id\": \"1-3-1\", \"name\": \"内容-关键词\", \"keyWords\": \"KEY_WORD\", \"indexWeight\": 75, \"titleWeight\": 10, \"keyWordsTopLimit\": 15, \"keyWordsLowerLimit\": 3}]}]"
;
List
<
SearchWordVO
>
collect
=
keywords
.
stream
().
filter
(
searchWordVO
->
!
"NOT"
.
equalsIgnoreCase
(
searchWordVO
.
getSearchLogicRelationship
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
collect
))
{
defaultConfig
=
defaultConfig
.
replace
(
"KEY_WORD"
,
collect
.
stream
().
map
(
SearchWordVO:
:
getSearchInfo
).
collect
(
Collectors
.
joining
(
"|"
)));
}
ScoreModel
scoreModel
=
new
ScoreModel
();
scoreModel
.
setSubjectId
(
subjectId
);
scoreModel
.
setType
(
"1"
);
scoreModel
.
setData
(
defaultConfig
);
scoreModelService
.
save
(
scoreModel
);
//默认绑定tpu流程
ClbModelArrangeSubjectMap
tpu
=
new
ClbModelArrangeSubjectMap
();
tpu
.
setSubjectId
(
subject
.
getId
());
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论