【新增】 判分移除
This commit is contained in:
@@ -59,4 +59,13 @@ public class StuPaperScoreDO extends TenantBaseDO {
|
|||||||
*/
|
*/
|
||||||
private int sort;
|
private int sort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 判分详情,富文本格式
|
||||||
|
*/
|
||||||
|
private String content;
|
||||||
|
/**
|
||||||
|
* 试题编码
|
||||||
|
*/
|
||||||
|
private String quNum;
|
||||||
|
|
||||||
}
|
}
|
@@ -12,6 +12,7 @@ import pc.exam.pp.framework.common.pojo.CommonResult;
|
|||||||
import pc.exam.pp.module.exam.dal.dataobject.ExamQuestion;
|
import pc.exam.pp.module.exam.dal.dataobject.ExamQuestion;
|
||||||
import pc.exam.pp.module.exam.dal.dataobject.student.StuPaperFileDO;
|
import pc.exam.pp.module.exam.dal.dataobject.student.StuPaperFileDO;
|
||||||
import pc.exam.pp.module.exam.dal.dataobject.student.StuPaperInfoDO;
|
import pc.exam.pp.module.exam.dal.dataobject.student.StuPaperInfoDO;
|
||||||
|
import pc.exam.pp.module.exam.dal.dataobject.student.StuPaperScoreDO;
|
||||||
import pc.exam.pp.module.exam.dal.mysql.paper.EducationPaperQuMapper;
|
import pc.exam.pp.module.exam.dal.mysql.paper.EducationPaperQuMapper;
|
||||||
import pc.exam.pp.module.exam.dal.mysql.question.ExamQuestionMapper;
|
import pc.exam.pp.module.exam.dal.mysql.question.ExamQuestionMapper;
|
||||||
import pc.exam.pp.module.exam.dal.mysql.student.StuScoreVo;
|
import pc.exam.pp.module.exam.dal.mysql.student.StuScoreVo;
|
||||||
@@ -38,51 +39,18 @@ import java.util.List;
|
|||||||
@Tag( name = "测试判分")
|
@Tag( name = "测试判分")
|
||||||
@Validated
|
@Validated
|
||||||
public class AutoToolsController {
|
public class AutoToolsController {
|
||||||
@Resource
|
|
||||||
private AutoToolsService autoToolsService;
|
|
||||||
@Resource
|
@Resource
|
||||||
StuPaperScoreService stuPaperScoreService;
|
StuPaperScoreService stuPaperScoreService;
|
||||||
@Resource
|
@Resource
|
||||||
EducationPaperQuMapper educationPaperQuMapper;
|
EducationPaperQuMapper educationPaperQuMapper;
|
||||||
@Resource
|
@Resource
|
||||||
ExamQuestionMapper examQuestionMapper;
|
ExamQuestionMapper examQuestionMapper;
|
||||||
@Resource
|
|
||||||
private JudgementWpsWordService judgementWpsWordService;
|
|
||||||
@Resource
|
|
||||||
private JudgementWpsPptxService judgementWpsPptxService;
|
|
||||||
@Resource
|
|
||||||
private JudgementWpsExcelService judgementWpsExcelService;
|
|
||||||
@Resource
|
|
||||||
private JudgementService judgementService;
|
|
||||||
@Resource
|
|
||||||
IExamQuestionService examQuestionService;
|
|
||||||
@Resource
|
|
||||||
StuPaperInfoService stuPaperInfoService;
|
|
||||||
|
|
||||||
@GetMapping("/get")
|
// @GetMapping("/get")
|
||||||
public CommonResult<BigDecimal> get(StuPaperReqVo stuPaperReqVo) throws Exception {
|
// public CommonResult<BigDecimal> get(StuPaperReqVo stuPaperReqVo) throws Exception {
|
||||||
return autoToolsService.judgementScore(stuPaperReqVo.getStuId(),stuPaperReqVo.getPaperId());
|
// return autoToolsService.judgementScore(stuPaperReqVo.getStuId(),stuPaperReqVo.getPaperId());
|
||||||
}
|
|
||||||
// @GetMapping("/getTest")
|
|
||||||
// public double gets(StuPaperReqVo stuPaperReqVo) throws Exception {
|
|
||||||
// ExamQuestion examQuestion = examQuestionService.selectExamQuestionByQuId(stuPaperReqVo.getPaperId());
|
|
||||||
// return judgementWpsWordService.judgementWpsWord(15.0, "D:\\", "D:\\stu\\wps_word\\1\\47effcb38c696564bef41e3927ff1f5535e068b580c6726f13296ae3230f4271.docx", examQuestion);
|
|
||||||
// }
|
|
||||||
// @GetMapping("/getTests")
|
|
||||||
// public double getss(StuPaperReqVo stuPaperReqVo) throws Exception {
|
|
||||||
// ExamQuestion examQuestion = examQuestionService.selectExamQuestionByQuId(stuPaperReqVo.getPaperId());
|
|
||||||
// return judgementWpsPptxService.judgementWpsPptx(15.0, "D:\\", "D:\\文档.pptx", examQuestion);
|
|
||||||
// }
|
|
||||||
// @GetMapping("/getTestss")
|
|
||||||
// public double getsss(StuPaperReqVo stuPaperReqVo) throws Exception {
|
|
||||||
// ExamQuestion examQuestion = examQuestionService.selectExamQuestionByQuId(stuPaperReqVo.getPaperId());
|
|
||||||
// return judgementWpsExcelService.judgementWpsXlsx(15.0, "D:\\", "D:\\文档.xlsx", examQuestion);
|
|
||||||
// }
|
|
||||||
// @GetMapping("/getTest")
|
|
||||||
// public double gets(StuPaperReqVo stuPaperReqVo) throws Exception {
|
|
||||||
// ExamQuestion examQuestion = examQuestionService.selectExamQuestionByQuId(stuPaperReqVo.getPaperId());
|
|
||||||
// return judgementService.ProgrammingC(15.0, "D:\\", "C语言编程题.c", examQuestion);
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
@GetMapping("/getStuScoreInfo")
|
@GetMapping("/getStuScoreInfo")
|
||||||
@Operation(summary = "通过学生ID、试卷ID获取")
|
@Operation(summary = "通过学生ID、试卷ID获取")
|
||||||
public CommonResult<StuPaperScoreInfoVo> getStuScore(StuPaperReqVo stuPaperReqVo){
|
public CommonResult<StuPaperScoreInfoVo> getStuScore(StuPaperReqVo stuPaperReqVo){
|
||||||
@@ -98,11 +66,11 @@ public class AutoToolsController {
|
|||||||
List<ExamQuestion> examQuestionList = examQuestionMapper.selectExamQuestionListByQuIds(quIds);
|
List<ExamQuestion> examQuestionList = examQuestionMapper.selectExamQuestionListByQuIds(quIds);
|
||||||
stuPaperScoreInfoVos.setExamQuestionList(examQuestionList);
|
stuPaperScoreInfoVos.setExamQuestionList(examQuestionList);
|
||||||
// 5、查询学生试卷分析
|
// 5、查询学生试卷分析
|
||||||
List<StuPaperInfoDO> stuPaperInfoDOList = stuPaperInfoService.findByStuIDAndPaperId(stuPaperReqVo.getStuId(), stuPaperReqVo.getPaperId());
|
List<StuPaperScoreDO> scoreDOS = stuPaperScoreService.findByStuIDAndPaperId(stuPaperReqVo.getStuId(),stuPaperReqVo.getPaperId());
|
||||||
String judgementStr = "<p>试卷分析</p>";
|
String judgementStr = "<p>试卷分析</p>";
|
||||||
for (StuPaperInfoDO stuPaperInfoDO : stuPaperInfoDOList) {
|
for (StuPaperScoreDO scoreDO : scoreDOS) {
|
||||||
judgementStr += "<p></p>";
|
judgementStr += "<p>---------------------------------------</p>";
|
||||||
judgementStr += stuPaperInfoDO.getContent();
|
judgementStr += scoreDO.getContent();
|
||||||
}
|
}
|
||||||
stuPaperScoreInfoVos.setPaperAnalysis(judgementStr);
|
stuPaperScoreInfoVos.setPaperAnalysis(judgementStr);
|
||||||
return CommonResult.success(stuPaperScoreInfoVos);
|
return CommonResult.success(stuPaperScoreInfoVos);
|
||||||
|
@@ -180,7 +180,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 试卷得整体判分
|
* 试卷得整体判分 2025-06-24 暂不使用,期限,无限
|
||||||
* @param stuId 学号
|
* @param stuId 学号
|
||||||
* @param paperId 试卷ID
|
* @param paperId 试卷ID
|
||||||
* @return 分数
|
* @return 分数
|
||||||
|
Reference in New Issue
Block a user