|
@@ -1,6 +1,5 @@
|
|
|
package com.qmth.distributed.print.api;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.boot.api.exception.ApiException;
|
|
|
import com.qmth.distributed.print.business.bean.dto.ExamTaskDetailCardDto;
|
|
@@ -11,25 +10,30 @@ import com.qmth.distributed.print.business.bean.params.ApproveFormParams;
|
|
|
import com.qmth.distributed.print.business.bean.params.ExamTaskApplyParam;
|
|
|
import com.qmth.distributed.print.business.bean.params.ExamTaskPrintParams;
|
|
|
import com.qmth.distributed.print.business.bean.params.ExamTaskReApplyParam;
|
|
|
+import com.qmth.distributed.print.business.bean.result.CalculateNotifyResult;
|
|
|
import com.qmth.distributed.print.business.bean.result.EditResult;
|
|
|
import com.qmth.distributed.print.business.entity.*;
|
|
|
import com.qmth.distributed.print.business.enums.*;
|
|
|
import com.qmth.distributed.print.business.service.*;
|
|
|
import com.qmth.distributed.print.business.templete.execute.AsyncTaskReviewSampleExportService;
|
|
|
+import com.qmth.teachcloud.common.annotation.OperationLogDetail;
|
|
|
import com.qmth.teachcloud.common.bean.params.ArraysParams;
|
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
import com.qmth.teachcloud.common.entity.BasicAttachment;
|
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
import com.qmth.teachcloud.common.entity.TBTask;
|
|
|
import com.qmth.teachcloud.common.enums.*;
|
|
|
+import com.qmth.teachcloud.common.enums.log.CustomizedOperationTypeEnum;
|
|
|
import com.qmth.teachcloud.common.service.BasicAttachmentService;
|
|
|
import com.qmth.teachcloud.common.service.BasicStudentService;
|
|
|
import com.qmth.teachcloud.common.util.Result;
|
|
|
import com.qmth.teachcloud.common.util.ResultUtil;
|
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
|
+import com.sun.jna.platform.unix.X11;
|
|
|
import io.swagger.annotations.*;
|
|
|
import org.activiti.engine.TaskService;
|
|
|
import org.activiti.engine.task.Task;
|
|
|
+import org.redisson.MapWriterTask;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.validation.BindingResult;
|
|
@@ -120,6 +124,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "命题任务管理-分页查询")
|
|
|
@RequestMapping(value = "/list", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result list(@RequestParam(required = false) String semesterId,
|
|
|
@RequestParam(required = false) String examId,
|
|
|
@RequestParam(required = false) Boolean enable,
|
|
@@ -142,6 +147,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "试卷编号模糊查询")
|
|
|
@RequestMapping(value = "/paper_number_query", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result paperNumberQuery(@RequestParam(value = "param", required = false) String param,
|
|
|
@RequestParam(value = "printPlanId", required = false) List<String> printPlanId) {
|
|
|
|
|
@@ -157,6 +163,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "命题老师模糊查询")
|
|
|
@RequestMapping(value = "/user_query", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result userQuery(@RequestParam(value = "param", required = false) String param) {
|
|
|
return ResultUtil.ok(examTaskService.listUser(param));
|
|
|
}
|
|
@@ -166,6 +173,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "命题任务管理-更改/指派命题老师")
|
|
|
@RequestMapping(value = "/assign_user", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.UPDATE)
|
|
|
public Result assignUser(@RequestBody ExamTask examTask) {
|
|
|
return ResultUtil.ok(examTaskService.assignUser(examTask));
|
|
|
}
|
|
@@ -175,6 +183,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "命题任务管理-启用/禁用")
|
|
|
@RequestMapping(value = "/enable", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.UPDATE)
|
|
|
public Result enable(@RequestBody ExamTask examTask) {
|
|
|
return ResultUtil.ok(examTaskService.enable(examTask));
|
|
|
}
|
|
@@ -184,6 +193,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "命题任务管理-新建命题任务")
|
|
|
@RequestMapping(value = "/save", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.ADD)
|
|
|
public Result save(@RequestBody ExamTask examTask) {
|
|
|
examTaskService.saveExamTaskNew(examTask);
|
|
|
return ResultUtil.ok(true);
|
|
@@ -194,6 +204,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "命题任务管理-批量新建命题任务-文件导入")
|
|
|
@RequestMapping(value = "/import", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.IMPORT)
|
|
|
public Result importFile(@ApiParam(value = "上传文件", required = true) @RequestParam MultipartFile file) {
|
|
|
BasicAttachment basicAttachment = null;
|
|
|
try {
|
|
@@ -222,6 +233,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "命题任务管理-批量新建命题任务-保存")
|
|
|
@RequestMapping(value = "/save_batch", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.ADD)
|
|
|
public Result saveBatch(@RequestBody ExamTask task) {
|
|
|
examTaskService.saveBatch(task);
|
|
|
return ResultUtil.ok(true);
|
|
@@ -252,6 +264,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库申请-分页查询")
|
|
|
@RequestMapping(value = "/apply_list", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result taskApplyList(@RequestParam(value = "semesterId", required = false) Long semesterId,
|
|
|
@RequestParam(value = "examId", required = false) Long examId,
|
|
|
@RequestParam(value = "auditStatus", required = false) String auditStatus,
|
|
@@ -274,6 +287,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "根据命题任务ID查询任务详情数据")
|
|
|
@RequestMapping(value = "/exam_task_get_one", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result applyGetOne(@RequestParam(value = "examTaskId") Long examTaskId) {
|
|
|
ExamTaskDto examTaskDto = examTaskService.getByExamTaskId(examTaskId);
|
|
|
return ResultUtil.ok(examTaskDto);
|
|
@@ -287,6 +301,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "根据命题任务ID查询任务详情数据")
|
|
|
@RequestMapping(value = "/apply_get_one", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result applyGetOne(@RequestParam(value = "examTaskId") Long examTaskId,
|
|
|
@RequestParam(value = "source", required = false) String source) {
|
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
@@ -326,6 +341,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库申请-暂存/提交")
|
|
|
@RequestMapping(value = "/apply_save", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.EDIT)
|
|
|
public Result taskApplySave(@RequestBody ExamTaskDetail examTaskDetail) throws IOException {
|
|
|
boolean isSuccess = examTaskService.saveExamTaskDetail(examTaskDetail);
|
|
|
ExamTask examTask = examTaskService.getById(examTaskDetail.getExamTaskId());
|
|
@@ -339,6 +355,7 @@ public class ExamTaskController {
|
|
|
|
|
|
@ApiOperation(value = "审核-印刷员驳回后命题老师修改")
|
|
|
@RequestMapping(value = "/apply_resave", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.UPDATE)
|
|
|
public Result taskReApplySave(@RequestBody ExamTaskReApplyParam examTaskReApplyParam) {
|
|
|
examTaskService.applyResave(examTaskReApplyParam);
|
|
|
return ResultUtil.ok();
|
|
@@ -352,6 +369,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库申请-撤销申请")
|
|
|
@RequestMapping(value = "/apply_status", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.UPDATE)
|
|
|
public Result taskApplyStatus(@RequestBody ExamTask examTask) {
|
|
|
return ResultUtil.ok(examTaskService.status(examTask));
|
|
|
}
|
|
@@ -374,6 +392,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库审核-查询-未审核")
|
|
|
@RequestMapping(value = "/review_list_unaudited", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result taskReviewListUnaudited(@RequestParam(value = "semesterId", required = false) Long semesterId,
|
|
|
@RequestParam(value = "examId", required = false) Long examId,
|
|
|
@RequestParam(value = "courseCode", required = false) String courseCode,
|
|
@@ -408,6 +427,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库审核-查询-已审核")
|
|
|
@RequestMapping(value = "/review_list_audited", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result taskReviewListAudited(@RequestParam(value = "semesterId", required = false) Long semesterId,
|
|
|
@RequestParam(value = "examId", required = false) Long examId,
|
|
|
@RequestParam(value = "reviewStatus", required = false) String reviewStatus,
|
|
@@ -432,6 +452,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库审核-查询-已审核数量")
|
|
|
@RequestMapping(value = "/review_list_audited_count", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result taskReviewListAuditedCount() {
|
|
|
int taskReviewAuditedCount = examTaskService.listTaskReviewAudited(null, null, null, null, null, null, null, null, null, null, null, null, SystemConstant.PAGE_NUMBER, SystemConstant.PAGE_SIZE).getRecords().size();
|
|
|
long paperCount = examPaperStructureService.countByPropositionTeacherId(true);
|
|
@@ -447,6 +468,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "审核")
|
|
|
@RequestMapping(value = "/review_save", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.UN_KNOW)
|
|
|
public Result taskReviewSave(@RequestBody ExamTaskReviewLog taskReviewLog) throws IOException {
|
|
|
List<Long> examTaskIdList = new ArrayList<>();
|
|
|
examTaskIdList.add(taskReviewLog.getExamTaskId());
|
|
@@ -473,6 +495,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库审核-批量审核")
|
|
|
@RequestMapping(value = "/review_save_batch", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.UN_KNOW)
|
|
|
public Result taskReviewSaveBatch(@RequestBody ExamTaskReviewLog taskReviewLog) throws IOException {
|
|
|
List<Long> examTaskIdList = Arrays.asList(taskReviewLog.getExamTaskIds());
|
|
|
if (!CollectionUtils.isEmpty(examTaskIdList)) {
|
|
@@ -503,6 +526,7 @@ public class ExamTaskController {
|
|
|
|
|
|
@ApiOperation(value = "导出审核样本")
|
|
|
@RequestMapping(value = "/review_export", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.EXPORT)
|
|
|
public Result taskReviewExport(@Valid @RequestBody ArraysParams arraysParams, BindingResult bindingResult) throws
|
|
|
Exception {
|
|
|
if (bindingResult.hasErrors()) {
|
|
@@ -529,6 +553,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询")
|
|
|
@RequestMapping(value = "/paper_list", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result taskPaperList(@RequestParam(value = "semesterId", required = false) Long semesterId,
|
|
|
@RequestParam(value = "examId", required = false) Long examId,
|
|
|
@RequestParam(value = "courseCode", required = false) String courseCode,
|
|
@@ -550,6 +575,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "下载")
|
|
|
@RequestMapping(value = "/paper_download", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public void taskPaperDownload(HttpServletResponse response, @RequestParam Long examTaskId) throws Exception {
|
|
|
examTaskService.paperDownload(response, examTaskId);
|
|
|
}
|
|
@@ -562,6 +588,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-启用/禁用")
|
|
|
@RequestMapping(value = "/paper_enable", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.UPDATE)
|
|
|
public Result taskPaperEnable(@RequestBody ExamTaskDetail examTaskDetail) throws IOException {
|
|
|
boolean isSuccess = examTaskDetailService.enable(examTaskDetail);
|
|
|
// 启用,触发考场生成pdf
|
|
@@ -586,6 +613,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-卷库修改")
|
|
|
@RequestMapping(value = "/paper_update", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.UPDATE)
|
|
|
public Result taskPaperUpdate(@RequestBody ExamTaskDetail examTaskDetail) throws IOException {
|
|
|
boolean isSuccess = examTaskDetailService.paperUpdate(examTaskDetail);
|
|
|
if (isSuccess) {
|
|
@@ -609,6 +637,7 @@ public class ExamTaskController {
|
|
|
@ApiOperation(value = "卷库查询-批量下载试卷PDF、题卡")
|
|
|
@RequestMapping(value = "/paper_card_download_pdf", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = EditResult.class)})
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result paperCardDownloadPdf(@RequestParam(value = "semesterId", required = false) Long semesterId,
|
|
|
@RequestParam(value = "examId", required = false) Long examId,
|
|
|
@RequestParam(value = "courseCode", required = false) String courseCode,
|
|
@@ -629,6 +658,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "命题任务管理-命题申请-班级列表")
|
|
|
@RequestMapping(value = "/list_task_apply_class", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result listTaskApplyClass(@RequestParam(value = "courseCode") String courseCode) {
|
|
|
return ResultUtil.ok(examTaskPrintService.listExamTaskClass(courseCode));
|
|
|
}
|
|
@@ -641,6 +671,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "命题任务管理-命题申请-暂存")
|
|
|
@RequestMapping(value = "/stage_task_apply", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.EDIT)
|
|
|
public Result stageTaskApply(@RequestBody ExamTaskApplyTemp examTaskApplyTemp) {
|
|
|
ExamTaskApplyTemp task = examTaskApplyTempService.stageTaskApply(examTaskApplyTemp);
|
|
|
return ResultUtil.ok(task);
|
|
@@ -654,7 +685,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库申请-新建任务-保存")
|
|
|
@RequestMapping(value = "/submit_task_apply", method = RequestMethod.POST)
|
|
|
-// @OperationLogDetail(detail = "入库申请-新建任务(一步到位)",level = LevelEnum.PRIMARY)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.ADD)
|
|
|
public Result submitTaskApply(@RequestBody ExamTaskApplyTemp examTaskApplyTemp) throws IOException {
|
|
|
ExamTask examTask = examTaskService.submitTaskApply(examTaskApplyTemp);
|
|
|
if (!examTask.getReview()) {
|
|
@@ -672,6 +703,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库申请-新建命题任务-暂存/提交")
|
|
|
@RequestMapping(value = "/save_task_apply", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.ADD)
|
|
|
public Result saveTaskApply(@RequestBody ExamTaskApplyParam examTaskApplyParam) throws IOException {
|
|
|
ExamTask examTask = examTaskService.saveExamTaskAndExamTaskDetail(examTaskApplyParam);
|
|
|
if (examTaskApplyParam.getExamTaskDetail().getOperateType().equals(ExamStatusEnum.SUBMIT.name()) && !examTask.getReview()) {
|
|
@@ -690,6 +722,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "入库申请-新建命题任务-取消/删除")
|
|
|
@RequestMapping(value = "/remove_task_apply", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.DELETE)
|
|
|
public Result removeTaskApply(@RequestParam(value = "examTaskId") Long examTaskId) {
|
|
|
examTaskService.removeByExamTaskId(examTaskId);
|
|
|
return ResultUtil.ok(true, "");
|
|
@@ -703,6 +736,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "切换题卡")
|
|
|
@RequestMapping(value = "/switch_card", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.UN_KNOW)
|
|
|
public Result switchCard(@RequestParam(value = "examTaskId") Long examTaskId) {
|
|
|
examTaskService.switchCard(examTaskId);
|
|
|
return ResultUtil.ok(true, "");
|
|
@@ -718,6 +752,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-发布印刷任务-查看列表")
|
|
|
@RequestMapping(value = "/list_task_print", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result listTaskPrintStudent(@RequestParam(value = "printPlanId") Long printPlanId,
|
|
|
@RequestParam(value = "courseCode") String courseCode,
|
|
|
@RequestParam(value = "paperNumber") String paperNumber) {
|
|
@@ -732,6 +767,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-发布印刷任务-扩展字段列表")
|
|
|
@RequestMapping(value = "/list_task_print_extend_fields", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result listTaskPrintExtendFields() {
|
|
|
return ResultUtil.ok(examTaskPrintService.listTaskPrintExtendFields());
|
|
|
}
|
|
@@ -744,6 +780,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-发布印刷任务-班级列表")
|
|
|
@RequestMapping(value = "/list_task_print_class", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result listTaskPrintClass(@RequestParam(value = "printPlanId") String printPlanId,
|
|
|
@RequestParam(value = "courseCode") String courseCode,
|
|
|
@RequestParam(value = "paperNumber") String paperNumber,
|
|
@@ -758,6 +795,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-发布印刷任务-印刷室列表")
|
|
|
@RequestMapping(value = "/list_task_print_house", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result listTaskPrintHouse() {
|
|
|
return ResultUtil.ok(examTaskPrintService.listHouse());
|
|
|
}
|
|
@@ -770,6 +808,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-发布印刷任务")
|
|
|
@RequestMapping(value = "/save_task_print", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.ADD)
|
|
|
public Result createTaskPrint(@RequestBody ExamTaskPrint examTaskPrint) {
|
|
|
examTaskPrintService.createTaskPrint(examTaskPrint);
|
|
|
return ResultUtil.ok(true, "");
|
|
@@ -783,6 +822,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-批量提交印刷任务")
|
|
|
@RequestMapping(value = "/submit_task_print", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.ADD)
|
|
|
public Result submitTaskPrint(@RequestBody ExamTaskPrintParams examTaskPrintParams) throws IOException {
|
|
|
examTaskPrintService.submitTaskPrint(examTaskPrintParams);
|
|
|
return ResultUtil.ok(true, "");
|
|
@@ -796,6 +836,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-发布印刷任务-查看考生")
|
|
|
@RequestMapping(value = "/list_task_print_student", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result listTaskPrintStudent(@RequestParam(value = "classId") String classId,
|
|
|
@RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
@RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
@@ -811,6 +852,7 @@ public class ExamTaskController {
|
|
|
*/
|
|
|
@ApiOperation(value = "卷库查询-发布印刷任务-删除")
|
|
|
@RequestMapping(value = "/remove_task_print", method = RequestMethod.POST)
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.DELETE)
|
|
|
public Result listTaskPrintStudent(@RequestParam(value = "examTaskPrintId") Long examTaskPrintId) {
|
|
|
examTaskPrintService.remove(examTaskPrintId);
|
|
|
return ResultUtil.ok(true, "");
|
|
@@ -819,6 +861,7 @@ public class ExamTaskController {
|
|
|
@ApiOperation(value = "题卡标题查询")
|
|
|
@RequestMapping(value = "/find_card_title", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result findCardTitle(@ApiParam(value = "题卡规则id", required = true) @RequestParam String cardRuleId) {
|
|
|
return ResultUtil.ok((Object) examTaskService.findCardTitle(SystemConstant.convertIdToLong(cardRuleId)));
|
|
|
}
|
|
@@ -826,6 +869,7 @@ public class ExamTaskController {
|
|
|
@ApiOperation(value = "命题任务-审批-获取试卷审批表数据")
|
|
|
@RequestMapping(value = "/find_approve_form_json", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result findApproveFormJson(@ApiParam(value = "命题任务id", required = true) @RequestParam String examTaskId) {
|
|
|
return ResultUtil.ok((Object) examTaskService.findExamTaskApprovalForm(SystemConstant.convertIdToLong(examTaskId)));
|
|
|
}
|
|
@@ -833,6 +877,7 @@ public class ExamTaskController {
|
|
|
@ApiOperation(value = "命题任务-审批-获取试卷审批表pdf")
|
|
|
@RequestMapping(value = "/find_approve_form_pdf", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public void findApproveFormPdf(@Valid @RequestBody ApproveFormParams approveFormParams, BindingResult bindingResult) throws Exception {
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
throw ExceptionResultEnum.ERROR.exception(bindingResult.getAllErrors().get(0).getDefaultMessage());
|
|
@@ -844,6 +889,7 @@ public class ExamTaskController {
|
|
|
@ApiOperation(value = "命题任务-考试对象查询")
|
|
|
@RequestMapping(value = "/find_exam_object", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result findExamObject(@ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber) {
|
|
|
return ResultUtil.ok((Object) examTaskService.findExamObjectDtoByPaperNumber(paperNumber));
|
|
|
}
|
|
@@ -852,6 +898,7 @@ public class ExamTaskController {
|
|
|
@RequestMapping(value = "/find_exam_task_student_object", method = RequestMethod.POST)
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "{\"success\":true}", response = Result.class)})
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.SEARCH)
|
|
|
public Result findExamTaskStudentObject(@RequestParam ExamObjectType examObjectType,
|
|
|
@RequestParam(required = false) String courseCode) throws Exception {
|
|
|
SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
@@ -862,6 +909,7 @@ public class ExamTaskController {
|
|
|
@RequestMapping(value = "/exam_task_exam_student_import", method = RequestMethod.POST)
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "{\"success\":true}", response = Result.class)})
|
|
|
+ @OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.IMPORT)
|
|
|
public Result examTaskExamStudentImport(@RequestParam MultipartFile file) throws Exception {
|
|
|
SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
return ResultUtil.ok(examTaskService.examTaskExamStudentImport(file, requestUser));
|