【修改】 1、h2-h3 2、错题集部分内容

This commit is contained in:
dlaren
2025-08-26 10:02:07 +08:00
parent a03707d09e
commit 7664636df7
15 changed files with 275 additions and 76 deletions

View File

@@ -0,0 +1,131 @@
package com.example.exam.exam.dal;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.experimental.Accessors;
import java.util.List;
/**
* 错题集
*
* @author pengchen
*/
@TableName(value = "exam_error_question", autoResultMap = true)
@Accessors(chain = true)
public class ExamErrorQuestion {
@TableId
private String id;
/**
* 试题id
*/
private String quId;
/**
* 任务ID
*/
private String taskId;
/**
* 章节名称
*/
private String chapteridDictText;
/**
* 题型名称
*/
private String subjectName;
/**
* 题型难度0简单1一般2困难
*/
private Integer quLevel;
/**
* 试题内容(带样式:<p>下列表格123</p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 31.4907%;\">1</td>\)
*/
private String content;
/**
* 试题内容(纯文本)
*/
private String contentText;
/**
* 解析(带样式)
*/
private String analysis;
/**
* c语言参考答案
*/
private String answer;
/**
* 知识点
*/
private String pointNames;
/**
* 关键字
*/
private String keywords;
/**
* 是否人工0否1是简答题专用
*/
private String manual;
/**
* 状态0启用1禁用
*/
private String status;
/**
* 审核
*/
private String audit;
/**
* 课程类别
*/
private String courseName;
/**
* 专业分类
*/
private String specialtyName;
/**
* 数据库名
*/
private String tname;
/**
* 试题答案
*/
@TableField(exist = false)
private List<ExamQuestionAnswer> answerList;
/**
* 试题文件
*/
@TableField(exist = false)
private List<ExamQuestionFile> fileUploads;
/**
* 试题判分
*/
@TableField(exist = false)
private ExamQuestionScore questionScores;
/**
* 试题关键字
*/
@TableField(exist = false)
private List<ExamQuestionKeyword> questionKeywords;
}

View File

@@ -0,0 +1,19 @@
package com.example.exam.exam.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.exam.exam.dal.ExamErrorQuestion;
import com.example.exam.exam.dal.ExamQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 试题(hyc)Mapper接口
*
* @author pengchen
* @date 2025-03-13
*/
@Mapper
public interface ExamErrorQuestionMapper extends BaseMapper<ExamErrorQuestion>
{
}

View File

@@ -148,10 +148,10 @@ public class AutoForWinEmailSettingServiceImpl implements AutoForWinEmailSetting
Map<String, String> map = objectMapper.readValue(jsonText, Map.class);
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称: 邮箱 </h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称: 邮箱 </h3>";
judgementStr += "<p>✅ 开始QQ邮箱提判分</p>";
// 考试进行比对
for (ExamQuestionAnswer questionAnswer : examQuestion.getAnswerList()) {
@@ -183,7 +183,7 @@ public class AutoForWinEmailSettingServiceImpl implements AutoForWinEmailSetting
judgementStr = HtmlAppender.appendHtmlLine(judgementStr, questionAnswer.getContentIn() + " 得分失败 【❌】");
}
}
judgementStr += "<h2>试题得分: " + oneScore + " </h2>";
judgementStr += "<h3>试题得分: " + oneScore + " </h3>";
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());
insertInfo.setPaperId(stuInfoVo.getPaperId());
@@ -227,13 +227,13 @@ public class AutoForWinEmailSettingServiceImpl implements AutoForWinEmailSetting
// 根据ID查询试题
ExamQuestion examQuestion = examQuestionService.selectExamQuestionByQuId(quId);
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称: 邮箱 </p>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称: 邮箱 </p>";
judgementStr += "<p>✅ 开始QQ邮箱提判分</p>";
judgementStr += "<p>❌ 未成功检测到作答情况</p>";
judgementStr += "<h2>试题得分: 0分 </h2>";
judgementStr += "<h3>试题得分: 0分 </h3>";
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());
insertInfo.setPaperId(stuInfoVo.getPaperId());

View File

@@ -148,10 +148,10 @@ public class AutoForWinEdgeSettingServiceImpl implements AutoForWinEdgeSettingSe
Map<String, String> map = objectMapper.readValue(jsonText, Map.class);
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称: windows网络设置 </h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称: windows网络设置 </h3>";
judgementStr += "<p>✅ 开始EDGE浏览器网络设置判分</p>";
// 考试进行比对
for (ExamQuestionAnswer questionAnswer : examQuestion.getAnswerList()) {
@@ -183,7 +183,7 @@ public class AutoForWinEdgeSettingServiceImpl implements AutoForWinEdgeSettingSe
judgementStr = HtmlAppender.appendHtmlLine(judgementStr, questionAnswer.getContentIn() + " 得分失败 【❌】");
}
}
judgementStr += "<h2>试题得分: " + oneScore + " </h2>";
judgementStr += "<h3>试题得分: " + oneScore + " </h3>";
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());
insertInfo.setPaperId(stuInfoVo.getPaperId());
@@ -227,13 +227,13 @@ public class AutoForWinEdgeSettingServiceImpl implements AutoForWinEdgeSettingSe
// 根据ID查询试题
ExamQuestion examQuestion = examQuestionService.selectExamQuestionByQuId(quId);
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称: windows网络设置 </h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称: windows网络设置 </h3>";
judgementStr += "<p>✅ 开始EDGE浏览器网络设置判分</p>";
judgementStr += "<p>❌ 未成功检测到作答情况</p>";
judgementStr += "<h2>试题得分: 0分 </h2>";
judgementStr += "<h3>试题得分: 0分 </h3>";
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());
insertInfo.setPaperId(stuInfoVo.getPaperId());

View File

@@ -74,15 +74,15 @@ public class AutoForBrowerServiceImpl implements AutoForBrowerService {
EducationPaperQu educationPaperQu = results.get();
String quScore = educationPaperScheme.getQuScores();
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称:" + name + "</h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称:" + name + "</h3>";
judgementStr += "<p>✅ 开始网络提判分</p>";
SourceAndText cpojo = judgementBrowerService.Judgement(Double.parseDouble(quScore), stFile, examQuestion, judgementStr);
score = score.add(new BigDecimal(cpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP));
judgementStr = cpojo.getText();
judgementStr += "<h2>试题得分:" + cpojo.getScore() + "</h2>";
judgementStr += "<h3>试题得分:" + cpojo.getScore() + "</h3>";
// 4、需要更新学生试题得分
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());

View File

@@ -73,17 +73,17 @@ public class AutoForCServiceImpl implements AutoForCService {
String quScore = educationPaperScheme.getQuScores();
if (wjFile.getName().contains(".c")) {
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称:" + name + "</h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称:" + name + "</h3>";
judgementStr += "<p>✅ 开始C语言编程题判分</p>";
// 获取不带文件名称的路径
String filePaths = wjFile.getParent();
SourceAndText cpojo = judgementService.ProgrammingC(Double.parseDouble(quScore), filePaths, wjFile.getName(), examQuestion, judgementStr);
judgementStr = cpojo.getText();
BigDecimal dangSource = new BigDecimal(cpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP);
judgementStr += "<h2>试题得分:" + dangSource + "</h2>";
judgementStr += "<h3>试题得分:" + dangSource + "</h3>";
// 4、需要更新学生试题得分首先需要查询试题的数据库是否保存信息
score = score.add(new BigDecimal(cpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP));
// 直接进行新增,不需要进行更新
@@ -100,6 +100,13 @@ public class AutoForCServiceImpl implements AutoForCService {
insertInfo.setTemporaryId(stuInfoVo.getTemporaryId());
insertInfo.setIsTrue(cpojo.getScore() == 0 ? 1 : cpojo.getScore() >= Double.parseDouble(quScore) ? 0 : 2);
stuPaperScoreService.insertStuPaperScore(insertInfo);
// 判断是否进入错题集
int isError = cpojo.getScore() == 0 ? 1 : cpojo.getScore() >= Double.parseDouble(quScore) ? 0 : 2;
if (isError != 0) {
// 如果不是全对得话进入错题集
System.out.println("进入错题集" + quId);
ExamErrorQuestion examErrorQuestion = new ExamErrorQuestion();
}
break;
}
}

View File

@@ -122,22 +122,22 @@ public class AutoForChoiceServiceImpl implements AutoForChoiceService {
stuAnswerSort = convertToLetter(resultAnswer.get().getSort());
}
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称: 选择题 </h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称: 选择题 </h3>";
judgementStr += "<p>学生答案:" + stuAnswerSort + "</p>";
judgementStr += "<p>正确答案:" + trueAbswerSort + "</p>";
boolean isRight = false;
// 开始判断学生的答案是否正确
if (stuAnswerId.equals(trueAnswerId)) {
// 正确
judgementStr += "<h2>得分:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h3>得分:" + Double.parseDouble(quScore) + "</h3>";
isRight = true;
score += Double.parseDouble(quScore);
} else {
// 不正确
judgementStr += "<h2>得分0 </h2>";
judgementStr += "<h3>得分0 </h3>";
isRight = false;
}
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
@@ -165,13 +165,13 @@ public class AutoForChoiceServiceImpl implements AutoForChoiceService {
}
// 没有找到作答情况直接该题判0分
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2试题编号" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称: 选择题 </h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h2试题编号" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称: 选择题 </h3>";
judgementStr += "<p>学生答案: 未作答 </p>";
judgementStr += "<p>正确答案:" + trueAbswerSort + "</p>";
judgementStr += "<h2>得分0 </h2>";
judgementStr += "<h3>得分0 </h3>";
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());
insertInfo.setPaperId(stuInfoVo.getPaperId());
@@ -215,13 +215,13 @@ public class AutoForChoiceServiceImpl implements AutoForChoiceService {
EducationPaperQu educationPaperQu = resultss.get();
// 没有找到作答情况直接该题判0分
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2p>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称: 选择题 </h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h2p>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称: 选择题 </h3>";
judgementStr += "<p>学生答案: 未作答 </p>";
judgementStr += "<p>正确答案:" + trueAbswerSort + "</p>";
judgementStr += "<h2>得分0 </p>";
judgementStr += "<h3>得分0 </p>";
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());
insertInfo.setPaperId(stuInfoVo.getPaperId());

View File

@@ -80,15 +80,15 @@ public class AutoForFileServiceImpl implements AutoForFileService {
EducationPaperQu educationPaperQu = results.get();
String quScore = educationPaperScheme.getQuScores();
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称:" + name + "</h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称:" + name + "</h3>";
judgementStr += "<p>✅ 开始文件题判分</p>";
SourceAndText cpojo = fileServerice.Judgement(Double.parseDouble(quScore), stFile, examQuestion, judgementStr);
score = score.add(new BigDecimal(cpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP));
judgementStr = cpojo.getText();
judgementStr += "<h2>试题得分:" + cpojo.getScore() + "</h2>";
judgementStr += "<h3>试题得分:" + cpojo.getScore() + "</h3>";
// 4、需要更新学生试题得分
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());

View File

@@ -78,15 +78,15 @@ public class AutoForMysqlServiceImpl implements AutoForMysqlService {
if (wjFile.getName().contains(".sql")) {
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称:" + name + "</h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称:" + name + "</h3>";
judgementStr += "<p>✅ 开始MYSQL判分</p>";
SourceAndText cpojo = mysqlLocalService.Judgement(Double.parseDouble(quScore), stFile, examQuestion, judgementStr);
score = score.add(new BigDecimal(cpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP));
judgementStr = cpojo.getText();
judgementStr += "<h2>试题得分:" + cpojo.getScore() + "</h2>";
judgementStr += "<h3>试题得分:" + cpojo.getScore() + "</h3>";
// 4、需要更新学生试题得分
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());

View File

@@ -69,15 +69,15 @@ public class AutoForPsServiceImpl implements AutoForPsService {
if (wjFile.getName().contains("原始")) {
String filePaths = wjFile.getParent();
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称:" + name + "</h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称:" + name + "</h3>";
judgementStr += "<p>✅ 开始QQ邮箱提判分</p>";
SourceAndText wordpojo = psService.Judgement(Double.parseDouble(quScore), filePaths, wjFile.getPath(), examQuestion, judgementStr);
score = score.add(new BigDecimal(wordpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP));
judgementStr = wordpojo.getText();
judgementStr += "<h2>试题得分:" + wordpojo.getScore() + "</h2>";
judgementStr += "<h3>试题得分:" + wordpojo.getScore() + "</h3>";
// 4、需要更新学生试题得分
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());

View File

@@ -0,0 +1,26 @@
package com.example.exam.exam.service.error;
import com.example.exam.exam.dal.*;
import com.example.exam.exam.mapper.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 错题集Service业务层处理
*
* @author pengchen
*/
@Service
public class ExamErrorQuestionServiceImpl implements IExamErrorQuestionService
{
@Autowired
ExamErrorQuestionMapper examErrorQuestionMapper;
@Override
public int insertExamErrorQuestion(ExamErrorQuestion examErrorQuestion) {
return examErrorQuestionMapper.insert(examErrorQuestion);
}
}

View File

@@ -0,0 +1,16 @@
package com.example.exam.exam.service.error;
import com.example.exam.exam.dal.ExamErrorQuestion;
/**
* 错题集Service接口
*
* @author pengchen
*/
public interface IExamErrorQuestionService {
/**
* 新增错题集数据
*/
public int insertExamErrorQuestion(ExamErrorQuestion examErrorQuestion);
}

View File

@@ -73,16 +73,16 @@ public class JudgementForExcelServiceImpl implements JudgementForExcelService {
System.out.println(wjFile.getName());
if (wjFile.getName().contains("文档")) {
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称:" + name + "</h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称:" + name + "</h3>";
judgementStr += "<p>✅ 开始WPS_EXCEL判分</p>";
SourceAndText excelpojo = judgementWpsExcelService.judgementWpsXlsx(Double.parseDouble(quScore), wjFile.getPath(), wjFile.getPath(), examQuestion, judgementStr);
score = score.add(new BigDecimal(excelpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP));
judgementStr = excelpojo.getText();
BigDecimal dangSource = new BigDecimal(excelpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP);
judgementStr += "<h2>试题得分:" + dangSource + "</h2>";
judgementStr += "<h3>试题得分:" + dangSource + "</h3>";
// 4、需要新增生试题得分
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());

View File

@@ -74,16 +74,16 @@ public class JudgementForPptxServiceImpl implements JudgementForPptxService {
String quScore = educationPaperScheme.getQuScores();
if (wjFile.getName().contains("文档")) {
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称:" + name + "</h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称:" + name + "</h3>";
judgementStr += "<p>✅ 开始WPS_PPTX判分</p>";
SourceAndText pptxpojo = judgementWpsPptxService.judgementWpsPptx(Double.parseDouble(quScore), wjFile.getPath(), wjFile.getPath(), examQuestion, judgementStr);
score = score.add(new BigDecimal(pptxpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP));
judgementStr = pptxpojo.getText();
BigDecimal dangSource = new BigDecimal(pptxpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP);
judgementStr += "<h2>试题得分:" + dangSource + "</h2>";
judgementStr += "<h3>试题得分:" + dangSource + "</h3>";
// 4、需要新增生试题得分
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());

View File

@@ -71,16 +71,16 @@ public class JudgementForWordServiceImpl implements JudgementForWordService {
String quScore = educationPaperScheme.getQuScores();
if (wjFile.getName().contains("文档")) {
String judgementStr = "<p>-----------------------------------------------------------</p>";
judgementStr += "<h2>试题序号:" + educationPaperQu.getSort() + "</h2>";
judgementStr += "<h2>试题编号:" + examQuestion.getQuNum() + "</h2>";
judgementStr += "<h2>试题分数:" + Double.parseDouble(quScore) + "</h2>";
judgementStr += "<h2>试题名称:" + name + "</h2>";
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
judgementStr += "<h3>试题名称:" + name + "</h3>";
judgementStr += "<p>✅ 开始WPS_WORD判分</p>";
SourceAndText wordpojo = judgementWpsWordService.judgementWpsWord(Double.parseDouble(quScore), wjFile.getPath(), wjFile.getPath(), examQuestion, judgementStr);
score = score.add(new BigDecimal(wordpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP));
judgementStr = wordpojo.getText();
BigDecimal dangSource = new BigDecimal(wordpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP);
judgementStr += "<h2>试题得分:" + dangSource + "</h2>";
judgementStr += "<h3>试题得分:" + dangSource + "</h3>";
// 4、需要新增学生试题得分
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
insertInfo.setStuId(stuInfoVo.getStuId());