【修改】 wps 判分文件名称判断
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user