Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
event
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
陈世强
event
Commits
054916b6
提交
054916b6
authored
10月 15, 2025
作者:
925993793@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【ai资讯/自定义专题-研究中心】导出excel 增加通用打分、大模型打分字段
上级
d7fa29bb
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
3 行删除
+22
-3
FileController.java
src/main/java/com/zzsn/event/controller/FileController.java
+3
-2
SpecialInformation.java
src/main/java/com/zzsn/event/vo/es/SpecialInformation.java
+19
-1
没有找到文件。
src/main/java/com/zzsn/event/controller/FileController.java
浏览文件 @
054916b6
...
@@ -421,10 +421,11 @@ public class FileController {
...
@@ -421,10 +421,11 @@ public class FileController {
long
timestamp
=
System
.
currentTimeMillis
();
long
timestamp
=
System
.
currentTimeMillis
();
String
filename
=
subjectId
+
"_"
+
timestamp
+
".xlsx"
;
String
filename
=
subjectId
+
"_"
+
timestamp
+
".xlsx"
;
try
{
try
{
String
[]
fetchFields
=
new
String
[]{
"score"
,
"title"
,
"titleRaw"
,
"summary"
,
"summaryRaw"
,
"content"
,
"contentRaw"
,
"author"
,
"origin"
,
"publishDate"
,
"sourceAddress"
,
"hitWords"
};
String
[]
fetchFields
=
new
String
[]{
"score"
,
"title"
,
"titleRaw"
,
"summary"
,
"summaryRaw"
,
"content"
,
"contentRaw"
,
"author"
,
"origin"
,
"publishDate"
,
"sourceAddress"
,
"hitWords"
,
"modelScores"
};
searchCondition
.
setFetchFields
(
fetchFields
);
searchCondition
.
setFetchFields
(
fetchFields
);
searchCondition
.
setPageSize
(
1000
);
searchCondition
.
setPageSize
(
1000
);
String
[]
arr
=
new
String
[]{
"得分"
,
"标题"
,
"标题译文"
,
"摘要"
,
"摘要译文"
,
"正文"
,
"正文译文"
,
"作者"
,
"来源"
,
"发布时间"
,
"网址"
,
"命中词"
};
//String[] arr = new String[]{"得分", "标题", "标题译文", "摘要", "摘要译文", "正文", "正文译文", "作者", "来源", "发布时间", "网址", "命中词"};
String
[]
arr
=
new
String
[]{
"标题"
,
"标题译文"
,
"摘要"
,
"摘要译文"
,
"正文"
,
"正文译文"
,
"作者"
,
"来源"
,
"发布时间"
,
"网址"
,
"命中词"
,
"通用打分"
,
"大模型打分"
,
"综合打分(通用:大模型=6:4))"
};
List
<
String
>
headers
=
Arrays
.
asList
(
arr
);
List
<
String
>
headers
=
Arrays
.
asList
(
arr
);
SXSSFWorkbook
workbook
=
new
SXSSFWorkbook
();
SXSSFWorkbook
workbook
=
new
SXSSFWorkbook
();
for
(
int
i
=
1
;
;
i
++)
{
for
(
int
i
=
1
;
;
i
++)
{
...
...
src/main/java/com/zzsn/event/vo/es/SpecialInformation.java
浏览文件 @
054916b6
...
@@ -6,6 +6,7 @@ import org.apache.commons.lang3.ObjectUtils;
...
@@ -6,6 +6,7 @@ import org.apache.commons.lang3.ObjectUtils;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Data
@Data
...
@@ -208,7 +209,6 @@ public class SpecialInformation {
...
@@ -208,7 +209,6 @@ public class SpecialInformation {
public
List
<
String
>
toExcelList
(){
public
List
<
String
>
toExcelList
(){
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
getRealValue
(
score
));
list
.
add
(
getRealValue
(
title
));
list
.
add
(
getRealValue
(
title
));
list
.
add
(
getRealValue
(
titleRaw
));
list
.
add
(
getRealValue
(
titleRaw
));
list
.
add
(
getRealValue
(
summary
));
list
.
add
(
getRealValue
(
summary
));
...
@@ -224,6 +224,24 @@ public class SpecialInformation {
...
@@ -224,6 +224,24 @@ public class SpecialInformation {
}
else
{
}
else
{
list
.
add
(
""
);
list
.
add
(
""
);
}
}
if
(
CollectionUtils
.
isNotEmpty
(
modelScores
))
{
Optional
<
ModelScore
>
commonFirst
=
modelScores
.
stream
().
filter
(
modelScore
->
"Mark-Service"
.
equals
(
modelScore
.
getServiceName
())).
findFirst
();
if
(
commonFirst
.
isPresent
())
{
list
.
add
(
getRealValue
(
commonFirst
.
get
().
getScore
()));
}
else
{
list
.
add
(
""
);
}
Optional
<
ModelScore
>
llmFirst
=
modelScores
.
stream
().
filter
(
modelScore
->
"llm-score-model"
.
equals
(
modelScore
.
getServiceName
())).
findFirst
();
if
(
llmFirst
.
isPresent
())
{
list
.
add
(
getRealValue
(
llmFirst
.
get
().
getScore
()));
}
else
{
list
.
add
(
""
);
}
}
else
{
list
.
add
(
""
);
list
.
add
(
""
);
}
list
.
add
(
getRealValue
(
score
));
return
list
;
return
list
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论