【新增】 判分移除
This commit is contained in:
@@ -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.student.StuPaperFileDO;
|
||||
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.question.ExamQuestionMapper;
|
||||
import pc.exam.pp.module.exam.dal.mysql.student.StuScoreVo;
|
||||
@@ -38,51 +39,18 @@ import java.util.List;
|
||||
@Tag( name = "测试判分")
|
||||
@Validated
|
||||
public class AutoToolsController {
|
||||
@Resource
|
||||
private AutoToolsService autoToolsService;
|
||||
@Resource
|
||||
StuPaperScoreService stuPaperScoreService;
|
||||
@Resource
|
||||
EducationPaperQuMapper educationPaperQuMapper;
|
||||
@Resource
|
||||
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")
|
||||
public CommonResult<BigDecimal> get(StuPaperReqVo stuPaperReqVo) throws Exception {
|
||||
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("/get")
|
||||
// public CommonResult<BigDecimal> get(StuPaperReqVo stuPaperReqVo) throws Exception {
|
||||
// return autoToolsService.judgementScore(stuPaperReqVo.getStuId(),stuPaperReqVo.getPaperId());
|
||||
// }
|
||||
|
||||
@GetMapping("/getStuScoreInfo")
|
||||
@Operation(summary = "通过学生ID、试卷ID获取")
|
||||
public CommonResult<StuPaperScoreInfoVo> getStuScore(StuPaperReqVo stuPaperReqVo){
|
||||
@@ -98,11 +66,11 @@ public class AutoToolsController {
|
||||
List<ExamQuestion> examQuestionList = examQuestionMapper.selectExamQuestionListByQuIds(quIds);
|
||||
stuPaperScoreInfoVos.setExamQuestionList(examQuestionList);
|
||||
// 5、查询学生试卷分析
|
||||
List<StuPaperInfoDO> stuPaperInfoDOList = stuPaperInfoService.findByStuIDAndPaperId(stuPaperReqVo.getStuId(), stuPaperReqVo.getPaperId());
|
||||
List<StuPaperScoreDO> scoreDOS = stuPaperScoreService.findByStuIDAndPaperId(stuPaperReqVo.getStuId(),stuPaperReqVo.getPaperId());
|
||||
String judgementStr = "<p>试卷分析</p>";
|
||||
for (StuPaperInfoDO stuPaperInfoDO : stuPaperInfoDOList) {
|
||||
judgementStr += "<p></p>";
|
||||
judgementStr += stuPaperInfoDO.getContent();
|
||||
for (StuPaperScoreDO scoreDO : scoreDOS) {
|
||||
judgementStr += "<p>---------------------------------------</p>";
|
||||
judgementStr += scoreDO.getContent();
|
||||
}
|
||||
stuPaperScoreInfoVos.setPaperAnalysis(judgementStr);
|
||||
return CommonResult.success(stuPaperScoreInfoVos);
|
||||
|
@@ -180,7 +180,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{
|
||||
}
|
||||
|
||||
/**
|
||||
* 试卷得整体判分
|
||||
* 试卷得整体判分 2025-06-24 暂不使用,期限,无限
|
||||
* @param stuId 学号
|
||||
* @param paperId 试卷ID
|
||||
* @return 分数
|
||||
|
Reference in New Issue
Block a user