|
@@ -107,7 +107,7 @@ public class ExamTaskApplyController {
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "入库申请-删除")
|
|
@ApiOperation(value = "入库申请-删除")
|
|
@RequestMapping(value = "/apply_delete", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/apply_delete", method = RequestMethod.POST)
|
|
- @OperationLogDetail(operationType = OperationTypeEnum.DELETE)
|
|
|
|
|
|
+ @OperationLogDetail(operationType = OperationTypeEnum.DELETE, detail = "删除操作,命题任务ID:{{id}}")
|
|
public Result applyDelete(@RequestParam Long id) {
|
|
public Result applyDelete(@RequestParam Long id) {
|
|
examTaskService.applyDelete(id);
|
|
examTaskService.applyDelete(id);
|
|
return ResultUtil.ok(true);
|
|
return ResultUtil.ok(true);
|
|
@@ -159,7 +159,7 @@ public class ExamTaskApplyController {
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "入库申请-暂存/提交")
|
|
@ApiOperation(value = "入库申请-暂存/提交")
|
|
@RequestMapping(value = "/apply_save", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/apply_save", method = RequestMethod.POST)
|
|
- @OperationLogDetail(operationType = OperationTypeEnum.SAVE)
|
|
|
|
|
|
+ @OperationLogDetail(operationType = OperationTypeEnum.SAVE, detail = "提交操作,命题任务ID:{{examTaskDetail.examTaskId}}")
|
|
public Result taskApplySave(@RequestBody ExamTaskDetail examTaskDetail) throws IOException {
|
|
public Result taskApplySave(@RequestBody ExamTaskDetail examTaskDetail) throws IOException {
|
|
Map<String, Object> map = examTaskService.saveExamTaskDetail(examTaskDetail);
|
|
Map<String, Object> map = examTaskService.saveExamTaskDetail(examTaskDetail);
|
|
ExamTask examTask = examTaskService.getById(examTaskDetail.getExamTaskId());
|
|
ExamTask examTask = examTaskService.getById(examTaskDetail.getExamTaskId());
|
|
@@ -181,9 +181,9 @@ public class ExamTaskApplyController {
|
|
* @param examTask 命题任务对象
|
|
* @param examTask 命题任务对象
|
|
* @return Result
|
|
* @return Result
|
|
*/
|
|
*/
|
|
- @ApiOperation(value = "入库申请-撤销申请")
|
|
|
|
|
|
+ @ApiOperation(value = "入库申请-撤回申请")
|
|
@RequestMapping(value = "/apply_status", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/apply_status", method = RequestMethod.POST)
|
|
- @OperationLogDetail(operationType = OperationTypeEnum.UPDATE)
|
|
|
|
|
|
+ @OperationLogDetail(operationType = OperationTypeEnum.UPDATE, detail = "撤回申请操作,命题任务ID:{{examTask.id}}")
|
|
public Result taskApplyStatus(@RequestBody ExamTask examTask) {
|
|
public Result taskApplyStatus(@RequestBody ExamTask examTask) {
|
|
Map<String, Object> map = examTaskService.status(examTask);
|
|
Map<String, Object> map = examTaskService.status(examTask);
|
|
activitiService.sendFlowTaskApproveMsg(map);
|
|
activitiService.sendFlowTaskApproveMsg(map);
|
|
@@ -269,6 +269,7 @@ public class ExamTaskApplyController {
|
|
@RequestMapping(value = "/page_tiku_paper", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/page_tiku_paper", method = RequestMethod.POST)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "{\"success\":true}", response = Result.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "{\"success\":true}", response = Result.class)})
|
|
|
|
+ @OperationLogDetail(operationType = OperationTypeEnum.SELECT, detail = "查询题库试卷列表,课程代码:{{courseCode}}、试卷名称:{{paperName}}、教师工号:{{account}}")
|
|
public Result pageTikuPaper(@ApiParam(value = "课程代码") @RequestParam(required = false) String courseCode,
|
|
public Result pageTikuPaper(@ApiParam(value = "课程代码") @RequestParam(required = false) String courseCode,
|
|
@ApiParam(value = "试卷名称") @RequestParam(value = "paperName", required = false) String paperName,
|
|
@ApiParam(value = "试卷名称") @RequestParam(value = "paperName", required = false) String paperName,
|
|
@ApiParam(value = "教师工号") @RequestParam(value = "account", required = false) String account,
|
|
@ApiParam(value = "教师工号") @RequestParam(value = "account", required = false) String account,
|
|
@@ -281,6 +282,7 @@ public class ExamTaskApplyController {
|
|
@RequestMapping(value = "/get_tiku_paper_data", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/get_tiku_paper_data", method = RequestMethod.POST)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "{\"success\":true}", response = Result.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "{\"success\":true}", response = Result.class)})
|
|
|
|
+ @OperationLogDetail(operationType = OperationTypeEnum.SELECT, detail = "查询题库试卷包,考试ID:{{examId}}、题库试卷ID:{{paperId}}、唯一标识:{{uuid}}")
|
|
public Result getTikuPaperData(@ApiParam(value = "考试ID", required = true) @RequestParam(value = "examId") Long examId,
|
|
public Result getTikuPaperData(@ApiParam(value = "考试ID", required = true) @RequestParam(value = "examId") Long examId,
|
|
@ApiParam(value = "题库试卷ID", required = true) @RequestParam(value = "paperId") Long paperId,
|
|
@ApiParam(value = "题库试卷ID", required = true) @RequestParam(value = "paperId") Long paperId,
|
|
@ApiParam(value = "唯一标识") @RequestParam(value = "uuid", required = false) String uuid) {
|
|
@ApiParam(value = "唯一标识") @RequestParam(value = "uuid", required = false) String uuid) {
|
|
@@ -299,6 +301,7 @@ public class ExamTaskApplyController {
|
|
@ApiOperation(value = "入库申请-下载审批表-下载审批表PDF")
|
|
@ApiOperation(value = "入库申请-下载审批表-下载审批表PDF")
|
|
@RequestMapping(value = "/find_approve_form_pdf", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/find_approve_form_pdf", method = RequestMethod.POST)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "下载成功", response = Result.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "下载成功", response = Result.class)})
|
|
|
|
+ @OperationLogDetail(operationType = OperationTypeEnum.EXPORT, detail = "下载审批表PDF,命题任务ID:{{approveFormParams.examTaskId}}")
|
|
public void findApproveFormPdf(@Valid @RequestBody ApproveFormParams approveFormParams, BindingResult bindingResult) throws Exception {
|
|
public void findApproveFormPdf(@Valid @RequestBody ApproveFormParams approveFormParams, BindingResult bindingResult) throws Exception {
|
|
if (bindingResult.hasErrors()) {
|
|
if (bindingResult.hasErrors()) {
|
|
throw ExceptionResultEnum.ERROR.exception(bindingResult.getAllErrors().get(0).getDefaultMessage());
|
|
throw ExceptionResultEnum.ERROR.exception(bindingResult.getAllErrors().get(0).getDefaultMessage());
|