|
|
|
@ -1,17 +1,14 @@ |
|
|
|
package com.project.exam.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.github.tingyugetc520.ali.dingtalk.error.DtErrorException; |
|
|
|
import com.project.appeal.domain.param.AppealParam; |
|
|
|
import com.project.base.domain.result.PageResult; |
|
|
|
import com.project.base.domain.result.Result; |
|
|
|
import com.project.exam.application.ExamRecordApplicationService; |
|
|
|
import com.project.exam.domain.dto.ExamRecordDTO; |
|
|
|
import com.project.exam.domain.job.ExamHandleJob; |
|
|
|
import com.project.exam.domain.param.ExamRecordParam; |
|
|
|
import jakarta.servlet.http.HttpServletResponse; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
@ -22,6 +19,8 @@ public class AdminExamRecordController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ExamRecordApplicationService examRecordApplicationService; |
|
|
|
@Autowired |
|
|
|
private ExamHandleJob examHandleJob; |
|
|
|
|
|
|
|
@GetMapping("/search") |
|
|
|
public Result<PageResult<ExamRecordDTO>> adminSearch(ExamRecordParam param) throws Exception{ |
|
|
|
@ -33,4 +32,12 @@ public class AdminExamRecordController { |
|
|
|
public void export(ExamRecordParam examRecordParam, HttpServletResponse response) throws Exception { |
|
|
|
examRecordApplicationService.export(examRecordParam , response); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 手动执行考试异常处理任务 |
|
|
|
*/ |
|
|
|
@GetMapping("/handleUnsubmittedExams") |
|
|
|
public void handleUnsubmittedExams(){ |
|
|
|
examHandleJob.handleUnsubmittedExams(); |
|
|
|
} |
|
|
|
} |
|
|
|
|