【修改】 样式由h3->h4
This commit is contained in:
@@ -153,10 +153,10 @@ public class AutoForWinEmailSettingServiceImpl implements AutoForWinEmailSetting
|
||||
Map<String, String> map = objectMapper.readValue(jsonText, Map.class);
|
||||
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称: 邮箱 </h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称: 邮箱 </h4>";
|
||||
judgementStr += "<p>✅ 开始QQ邮箱提判分</p>";
|
||||
// 考试进行比对
|
||||
for (ExamQuestionAnswer questionAnswer : examQuestion.getAnswerList()) {
|
||||
@@ -188,7 +188,7 @@ public class AutoForWinEmailSettingServiceImpl implements AutoForWinEmailSetting
|
||||
judgementStr = HtmlAppender.appendHtmlLine(judgementStr, "【❌】"+questionAnswer.getContentIn() + " 得分失败");
|
||||
}
|
||||
}
|
||||
judgementStr += "<h3>试题得分: " + oneScore + " </h3>";
|
||||
judgementStr += "<h4>试题得分: " + oneScore + " </h4>";
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
insertInfo.setPaperId(stuInfoVo.getPaperId());
|
||||
@@ -245,13 +245,13 @@ public class AutoForWinEmailSettingServiceImpl implements AutoForWinEmailSetting
|
||||
// 根据ID查询试题
|
||||
ExamQuestion examQuestion = examQuestionService.selectExamQuestionByQuId(quId);
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称: 邮箱 </p>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称: 邮箱 </p>";
|
||||
judgementStr += "<p>✅ 开始QQ邮箱提判分</p>";
|
||||
judgementStr += "<p>❌ 未成功检测到作答情况</p>";
|
||||
judgementStr += "<h3>试题得分: 0分 </h3>";
|
||||
judgementStr += "<h4>试题得分: 0分 </h4>";
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
insertInfo.setPaperId(stuInfoVo.getPaperId());
|
||||
|
@@ -150,10 +150,10 @@ public class AutoForWinEdgeSettingServiceImpl implements AutoForWinEdgeSettingSe
|
||||
Map<String, String> map = objectMapper.readValue(jsonText, Map.class);
|
||||
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称: windows网络设置 </h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称: windows网络设置 </h4>";
|
||||
judgementStr += "<p>✅ 开始EDGE浏览器网络设置判分</p>";
|
||||
// 考试进行比对
|
||||
for (ExamQuestionAnswer questionAnswer : examQuestion.getAnswerList()) {
|
||||
@@ -185,7 +185,7 @@ public class AutoForWinEdgeSettingServiceImpl implements AutoForWinEdgeSettingSe
|
||||
judgementStr = HtmlAppender.appendHtmlLine(judgementStr, "【❌】"+questionAnswer.getContentIn() + " 得分失败 ");
|
||||
}
|
||||
}
|
||||
judgementStr += "<h3>试题得分: " + oneScore + " </h3>";
|
||||
judgementStr += "<h4>试题得分: " + oneScore + " </h4>";
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
insertInfo.setPaperId(stuInfoVo.getPaperId());
|
||||
@@ -240,13 +240,13 @@ public class AutoForWinEdgeSettingServiceImpl implements AutoForWinEdgeSettingSe
|
||||
// 根据ID查询试题
|
||||
ExamQuestion examQuestion = examQuestionService.selectExamQuestionByQuId(quId);
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称: windows网络设置 </h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称: windows网络设置 </h4>";
|
||||
judgementStr += "<p>✅ 开始EDGE浏览器网络设置判分</p>";
|
||||
judgementStr += "<p>❌ 未成功检测到作答情况</p>";
|
||||
judgementStr += "<h3>试题得分: 0分 </h3>";
|
||||
judgementStr += "<h4>试题得分: 0分 </h4>";
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
insertInfo.setPaperId(stuInfoVo.getPaperId());
|
||||
|
@@ -79,15 +79,15 @@ public class AutoForBrowerServiceImpl implements AutoForBrowerService {
|
||||
String taskId = educationPaperScheme.getTaskId();
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称:" + name + "</h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称:" + name + "</h4>";
|
||||
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 += "<h3>试题得分:" + cpojo.getScore() + "</h3>";
|
||||
judgementStr += "<h4>试题得分:" + cpojo.getScore() + "</h4>";
|
||||
// 4、需要更新学生试题得分
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
|
@@ -80,17 +80,17 @@ public class AutoForCServiceImpl implements AutoForCService {
|
||||
String taskId = educationPaperScheme.getTaskId();
|
||||
if (wjFile.getName().contains(".c")) {
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称:" + name + "</h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称:" + name + "</h4>";
|
||||
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 += "<h3>试题得分:" + dangSource + "</h3>";
|
||||
judgementStr += "<h4>试题得分:" + dangSource + "</h4>";
|
||||
// 4、需要更新学生试题得分,首先需要查询试题的数据库是否保存信息
|
||||
score = score.add(new BigDecimal(cpojo.getScore()).setScale(1, BigDecimal.ROUND_HALF_UP));
|
||||
// 直接进行新增,不需要进行更新
|
||||
|
@@ -127,22 +127,22 @@ public class AutoForChoiceServiceImpl implements AutoForChoiceService {
|
||||
stuAnswerSort = convertToLetter(resultAnswer.get().getSort());
|
||||
}
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称: 选择题 </h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称: 选择题 </h4>";
|
||||
judgementStr += "<p>学生答案:" + stuAnswerSort + "</p>";
|
||||
judgementStr += "<p>正确答案:" + trueAbswerSort + "</p>";
|
||||
boolean isRight = false;
|
||||
// 开始判断学生的答案是否正确
|
||||
if (stuAnswerId.equals(trueAnswerId)) {
|
||||
// 正确
|
||||
judgementStr += "<h3>得分:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h4>得分:" + Double.parseDouble(quScore) + "</h4>";
|
||||
isRight = true;
|
||||
score += Double.parseDouble(quScore);
|
||||
} else {
|
||||
// 不正确
|
||||
judgementStr += "<h3>得分:0 </h3>";
|
||||
judgementStr += "<h4>得分:0 </h4>";
|
||||
isRight = false;
|
||||
}
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
@@ -181,13 +181,13 @@ public class AutoForChoiceServiceImpl implements AutoForChoiceService {
|
||||
}
|
||||
// 没有找到作答情况直接该题判0分
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h2试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称: 选择题 </h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h2试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称: 选择题 </h4>";
|
||||
judgementStr += "<p>学生答案: 未作答 </p>";
|
||||
judgementStr += "<p>正确答案:" + trueAbswerSort + "</p>";
|
||||
judgementStr += "<h3>得分:0 </h3>";
|
||||
judgementStr += "<h4>得分:0 </h4>";
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
insertInfo.setPaperId(stuInfoVo.getPaperId());
|
||||
@@ -241,13 +241,13 @@ public class AutoForChoiceServiceImpl implements AutoForChoiceService {
|
||||
EducationPaperQu educationPaperQu = resultss.get();
|
||||
// 没有找到作答情况直接该题判0分
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h2p>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称: 选择题 </h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h2p>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称: 选择题 </h4>";
|
||||
judgementStr += "<p>学生答案: 未作答 </p>";
|
||||
judgementStr += "<p>正确答案:" + trueAbswerSort + "</p>";
|
||||
judgementStr += "<h3>得分:0 </p>";
|
||||
judgementStr += "<h4>得分:0 </p>";
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
insertInfo.setPaperId(stuInfoVo.getPaperId());
|
||||
|
@@ -85,15 +85,15 @@ public class AutoForFileServiceImpl implements AutoForFileService {
|
||||
String quScore = educationPaperScheme.getQuScores();
|
||||
String taskId = educationPaperScheme.getTaskId();
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称:" + name + "</h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称:" + name + "</h4>";
|
||||
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 += "<h3>试题得分:" + cpojo.getScore() + "</h3>";
|
||||
judgementStr += "<h4>试题得分:" + cpojo.getScore() + "</h4>";
|
||||
// 4、需要更新学生试题得分
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
|
@@ -82,15 +82,15 @@ public class AutoForMysqlServiceImpl implements AutoForMysqlService {
|
||||
String taskId = educationPaperScheme.getTaskId();
|
||||
if (wjFile.getName().contains(".sql")) {
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称:" + name + "</h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称:" + name + "</h4>";
|
||||
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 += "<h3>试题得分:" + cpojo.getScore() + "</h3>";
|
||||
judgementStr += "<h4>试题得分:" + cpojo.getScore() + "</h4>";
|
||||
// 4、需要更新学生试题得分
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
|
@@ -75,15 +75,15 @@ public class AutoForPsServiceImpl implements AutoForPsService {
|
||||
String filePaths = wjFile.getParent();
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称:" + name + "</h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称:" + name + "</h4>";
|
||||
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 += "<h3>试题得分:" + wordpojo.getScore() + "</h3>";
|
||||
judgementStr += "<h4>试题得分:" + wordpojo.getScore() + "</h4>";
|
||||
// 4、需要更新学生试题得分
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
|
@@ -77,16 +77,16 @@ public class JudgementForExcelServiceImpl implements JudgementForExcelService {
|
||||
String taskId = educationPaperScheme.getTaskId();
|
||||
if (wjFile.getName().contains("文档")) {
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称:" + name + "</h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称:" + name + "</h4>";
|
||||
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 += "<h3>试题得分:" + dangSource + "</h3>";
|
||||
judgementStr += "<h4>试题得分:" + dangSource + "</h4>";
|
||||
// 4、需要新增生试题得分
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
|
@@ -77,16 +77,16 @@ public class JudgementForPptxServiceImpl implements JudgementForPptxService {
|
||||
String taskId = educationPaperScheme.getTaskId();
|
||||
if (wjFile.getName().contains("文档")) {
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称:" + name + "</h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称:" + name + "</h4>";
|
||||
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 += "<h3>试题得分:" + dangSource + "</h3>";
|
||||
judgementStr += "<h4>试题得分:" + dangSource + "</h4>";
|
||||
// 4、需要新增生试题得分
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
|
@@ -80,16 +80,16 @@ public class JudgementForWordServiceImpl implements JudgementForWordService {
|
||||
String taskId = educationPaperScheme.getTaskId();
|
||||
if (wjFile.getName().contains("文档")) {
|
||||
String judgementStr = "<p>-----------------------------------------------------------</p>";
|
||||
judgementStr += "<h3>试题序号:" + educationPaperQu.getSort() + "</h3>";
|
||||
judgementStr += "<h3>试题编号:" + examQuestion.getQuNum() + "</h3>";
|
||||
judgementStr += "<h3>试题分数:" + Double.parseDouble(quScore) + "</h3>";
|
||||
judgementStr += "<h3>试题名称:" + name + "</h3>";
|
||||
judgementStr += "<h4>试题序号:" + educationPaperQu.getSort() + "</h4>";
|
||||
judgementStr += "<h4>试题编号:" + examQuestion.getQuNum() + "</h4>";
|
||||
judgementStr += "<h4>试题分数:" + Double.parseDouble(quScore) + "</h4>";
|
||||
judgementStr += "<h4>试题名称:" + name + "</h4>";
|
||||
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 += "<h3>试题得分:" + dangSource + "</h3>";
|
||||
judgementStr += "<h4>试题得分:" + dangSource + "</h4>";
|
||||
// 4、需要新增学生试题得分
|
||||
StuPaperScoreDO insertInfo = new StuPaperScoreDO();
|
||||
insertInfo.setStuId(stuInfoVo.getStuId());
|
||||
|
Reference in New Issue
Block a user