【修改】 学生交卷后的数据展示

This commit is contained in:
DESKTOP-932OMT8\REN
2025-05-18 17:00:54 +08:00
parent ea76bee9ce
commit e3729b47cd
6 changed files with 19 additions and 4 deletions

View File

@@ -161,7 +161,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{
@Override
public CommonResult<Double> judgementScore(Long stuId, String paperId) throws Exception {
//监控管理 生成选择题文件路径
endStuMonitorUtils.endStuMonitor(String.valueOf(stuId), paperId);
// endStuMonitorUtils.endStuMonitor(String.valueOf(stuId), paperId);
// 获取平台文件参数
ConfigDO config = configService.getConfigByKey("file_down_path");
double score = 0;
@@ -192,6 +192,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{
// 判断是否做过该题
boolean isNull = false;
if (stuPaperScoreDO == null) {
stuPaperScoreDO = new StuPaperScoreDO();
stuPaperScoreDO.setStuId(stuId);
stuPaperScoreDO.setQuId(key);
stuPaperScoreDO.setPaperId(paperId);
@@ -313,7 +314,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{
// fileService.createStuFile(stuId, paperId, file.getOriginalFilename(), path, IoUtil.readBytes(file.getInputStream()));
//更新学生分数
endStuMonitorUtils.endStuMonitor(String.valueOf(stuId),paperId,score);
// endStuMonitorUtils.endStuMonitor(String.valueOf(stuId),paperId,score);
// end、删除文件
// zip_file.delete();
// folder.delete();

View File

@@ -51,6 +51,7 @@ public class JudgementChoiceServiceImpl implements JudgementChoiceService
// 原始正确分数
stuPaperScoreDO.setTrueScore(new BigDecimal(score));
stuPaperScoreDO.setIsTrue(0);
stuPaperScoreDO.setSubjectName(examQuestion.getSubjectName());
if (isNull) {
// 如果之前没做过,则插入该题的分数
stuPaperScoreService.insertStuPaperScore(stuPaperScoreDO);
@@ -65,6 +66,7 @@ public class JudgementChoiceServiceImpl implements JudgementChoiceService
// 原始正确分数
stuPaperScoreDO.setTrueScore(new BigDecimal(score));
stuPaperScoreDO.setIsTrue(1);
stuPaperScoreDO.setSubjectName(examQuestion.getSubjectName());
if (isNull) {
// 如果之前没做过,则插入该题的分数
stuPaperScoreService.insertStuPaperScore(stuPaperScoreDO);