【修改】 wps 判分文件名称判断

This commit is contained in:
DESKTOP-932OMT8\REN
2025-06-13 16:26:27 +08:00
parent 80e280ed5f
commit 28e611df48

View File

@@ -415,6 +415,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{
}
// wps 类型存在多级文文件夹,需要个性化设置
if ("文字".equals(one_file.getName().split("\\.")[0])) {
if (file_one.getPath().contains("文档")) {
String judgementStrWord = "";
SourceAndText wordpojo = judgementWpsWordService.judgementWpsWord(Double.parseDouble(quScore), one_file.getPath(), file_one.getPath(), examQuestion, judgementStrWord);
double wps_word_score = wordpojo.getScore();
@@ -459,7 +460,9 @@ public class AutoToolsServiceImpl implements AutoToolsService{
System.out.println(wps_word_score+"wps_word得分");
break;
}
}
if ("演示".equals(one_file.getName().split("\\.")[0])) {
if (file_one.getPath().contains("文档")) {
String judgementStrPptx = "";
SourceAndText pptxpojo = judgementWpsPptxService.judgementWpsPptx(Double.parseDouble(quScore), one_file.getPath(), file_one.getPath(), examQuestion, judgementStrPptx);
double wps_pptx_score = pptxpojo.getScore();
@@ -504,6 +507,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{
System.out.println(wps_pptx_score+"wps_ppt得分");
break;
}
}
// if ("表格".equals(one_file.getName().split("\\.")[0])) {
// double wps_excel_score = judgementWpsExcelService.judgementWpsXlsx(Double.parseDouble(quScore), one_file.getPath(), file_one.getPath(), examQuestion);
// score += wps_excel_score;