|
@@ -1,12 +1,17 @@
|
|
|
package com.qmth.distributed.print.api;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
|
import com.qmth.boot.api.annotation.BOOL;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
+import com.qmth.distributed.print.business.bean.dto.ClientExamTaskDto;
|
|
|
import com.qmth.distributed.print.business.entity.SysUser;
|
|
|
+import com.qmth.distributed.print.business.service.ExamTaskService;
|
|
|
import com.qmth.distributed.print.common.util.Result;
|
|
|
+import com.qmth.distributed.print.common.util.ResultUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
@@ -18,28 +23,34 @@ import org.springframework.web.bind.annotation.*;
|
|
|
@Aac(auth = BOOL.FALSE)
|
|
|
public class ClientController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ExamTaskService examTaskService;
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 登录
|
|
|
+ *
|
|
|
* @param sysUser
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation(value = "登录")
|
|
|
@RequestMapping(value = "/user/login", method = RequestMethod.POST)
|
|
|
- public Result login(@RequestBody SysUser sysUser){
|
|
|
+ public Result login(@RequestBody SysUser sysUser) {
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 试卷打样-列表
|
|
|
- * @param schoolId 学校ID
|
|
|
+ *
|
|
|
+ * @param schoolId 学校ID
|
|
|
* @param machineCode 机器唯一码
|
|
|
- * @param orgId 机构ID
|
|
|
+ * @param orgId 机构ID
|
|
|
* @param printPlanId 印刷计划ID
|
|
|
- * @param courseCode 课程代码
|
|
|
+ * @param courseCode 课程代码
|
|
|
* @param paperNumber 试卷编号
|
|
|
- * @param isTry 是否打样
|
|
|
- * @param isPass 是否合格
|
|
|
+ * @param isTry 是否打样
|
|
|
+ * @param isPass 是否合格
|
|
|
* @param pageNumber
|
|
|
* @param pageSize
|
|
|
* @return
|
|
@@ -53,15 +64,16 @@ public class ClientController {
|
|
|
@RequestParam(value = "courseCode", required = false) String courseCode,
|
|
|
@RequestParam(value = "paperNumber", required = false) String paperNumber,
|
|
|
@RequestParam(value = "isTry", required = false) Boolean isTry,
|
|
|
- @RequestParam(value = "isPass", required = false)Boolean isPass,
|
|
|
+ @RequestParam(value = "isPass", required = false) Boolean isPass,
|
|
|
@RequestParam("pageNumber") Integer pageNumber,
|
|
|
- @RequestParam("pageSize") Integer pageSize){
|
|
|
-
|
|
|
- return null;
|
|
|
+ @RequestParam("pageSize") Integer pageSize) {
|
|
|
+ IPage<ClientExamTaskDto> examTasks = examTaskService.listTryTask(schoolId, machineCode, orgId, printPlanId, courseCode, paperNumber, isTry, isPass, pageNumber, pageSize);
|
|
|
+ return ResultUtil.ok(examTasks);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 试卷打样-查看/试印/重印
|
|
|
+ *
|
|
|
* @param schoolId
|
|
|
* @param examTaskId
|
|
|
* @return
|
|
@@ -69,7 +81,252 @@ public class ClientController {
|
|
|
@ApiOperation(value = "试卷打样-查看/试印/重印")
|
|
|
@RequestMapping(value = "/paper_try/print", method = RequestMethod.POST)
|
|
|
public Result paperTryPrint(@RequestParam("schoolId") Long schoolId,
|
|
|
- @RequestParam("examTaskId") Long examTaskId){
|
|
|
+ @RequestParam("examTaskId") Long examTaskId) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 试卷打样-标记合格状态
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param examTaskId
|
|
|
+ * @param machineCode
|
|
|
+ * @param isPass
|
|
|
+ * @param courseCode
|
|
|
+ * @param paperNumber
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "试卷打样-标记合格状态")
|
|
|
+ @RequestMapping(value = "/paper_try/tag_pass", method = RequestMethod.POST)
|
|
|
+ public Result paperTryTagPass(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("examTaskId") Long examTaskId,
|
|
|
+ @RequestParam("machineCode") String machineCode,
|
|
|
+ @RequestParam("isPass") Boolean isPass,
|
|
|
+ @RequestParam("courseCode") String courseCode,
|
|
|
+ @RequestParam("paperNumber") String paperNumber) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 印刷管理-查询列表
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param machineCode
|
|
|
+ * @param orgId
|
|
|
+ * @param printPlanId
|
|
|
+ * @param status
|
|
|
+ * @param courseCode
|
|
|
+ * @param paperNumber
|
|
|
+ * @param examPlace
|
|
|
+ * @param examRoom
|
|
|
+ * @param examStartTime
|
|
|
+ * @param examEndTime
|
|
|
+ * @param isDownload
|
|
|
+ * @param validate
|
|
|
+ * @param pageNumber
|
|
|
+ * @param pageSize
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "印刷管理-查询列表")
|
|
|
+ @RequestMapping(value = "/print/task_list", method = RequestMethod.POST)
|
|
|
+ public Result printTaskList(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("machineCode") Long machineCode,
|
|
|
+ @RequestParam("orgId") String orgId,
|
|
|
+ @RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
|
+ @RequestParam(value = "status", required = false) String status,
|
|
|
+ @RequestParam(value = "courseCode", required = false) String courseCode,
|
|
|
+ @RequestParam(value = "paperNumber", required = false) String paperNumber,
|
|
|
+ @RequestParam(value = "examPlace", required = false) String examPlace,
|
|
|
+ @RequestParam(value = "examRoom", required = false) String examRoom,
|
|
|
+ @RequestParam(value = "examStartTime", required = false) Long examStartTime,
|
|
|
+ @RequestParam(value = "examEndTime", required = false) Long examEndTime,
|
|
|
+ @RequestParam(value = "isDownload", required = false) Boolean isDownload,
|
|
|
+ @RequestParam(value = "validate", required = false) Boolean validate,
|
|
|
+ @RequestParam("pageNumber") Integer pageNumber,
|
|
|
+ @RequestParam("pageSize") Integer pageSize) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 印刷管理-汇总数据查询
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param machineCode
|
|
|
+ * @param orgId
|
|
|
+ * @param printPlanId
|
|
|
+ * @param status
|
|
|
+ * @param courseCode
|
|
|
+ * @param paperNumber
|
|
|
+ * @param examPlace
|
|
|
+ * @param examRoom
|
|
|
+ * @param examStartTime
|
|
|
+ * @param examEndTime
|
|
|
+ * @param isDownload
|
|
|
+ * @param validate
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "印刷管理-汇总数据查询")
|
|
|
+ @RequestMapping(value = "/print/task_total_data", method = RequestMethod.POST)
|
|
|
+ public Result printTaskTotalData(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("machineCode") Long machineCode,
|
|
|
+ @RequestParam("orgId") String orgId,
|
|
|
+ @RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
|
+ @RequestParam(value = "status", required = false) String status,
|
|
|
+ @RequestParam(value = "courseCode", required = false) String courseCode,
|
|
|
+ @RequestParam(value = "paperNumber", required = false) String paperNumber,
|
|
|
+ @RequestParam(value = "examPlace", required = false) String examPlace,
|
|
|
+ @RequestParam(value = "examRoom", required = false) String examRoom,
|
|
|
+ @RequestParam(value = "examStartTime", required = false) Long examStartTime,
|
|
|
+ @RequestParam(value = "examEndTime", required = false) Long examEndTime,
|
|
|
+ @RequestParam(value = "isDownload", required = false) Boolean isDownload,
|
|
|
+ @RequestParam(value = "validate", required = false) Boolean validate) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 印刷管理-查看
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param orgId
|
|
|
+ * @param examDetailId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "印刷管理-查看")
|
|
|
+ @RequestMapping(value = "/print/preview", method = RequestMethod.POST)
|
|
|
+ public Result printPreview(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("orgId") Long orgId,
|
|
|
+ @RequestParam("examDetailId") Long examDetailId) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 印刷管理-印刷/缓存数据
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param orgId
|
|
|
+ * @param examDetailId
|
|
|
+ * @param machineCode
|
|
|
+ * @param printUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "印刷管理-印刷/缓存数据")
|
|
|
+ @RequestMapping(value = "/print/get_print_data", method = RequestMethod.POST)
|
|
|
+ public Result printGetPrintData(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("orgId") Long orgId,
|
|
|
+ @RequestParam("examDetailId") Long examDetailId,
|
|
|
+ @RequestParam("machineCode") String machineCode,
|
|
|
+ @RequestParam("printUser") String printUser) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 印刷管理-批量缓存数据
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param orgId
|
|
|
+ * @param examDetailId
|
|
|
+ * @param machineCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "印刷管理-批量缓存数据")
|
|
|
+ @RequestMapping(value = "/print/get_print_data_batch", method = RequestMethod.POST)
|
|
|
+ public Result printGetPrintDataBatch(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("orgId") Long orgId,
|
|
|
+ @RequestParam("examDetailId") Long examDetailId,
|
|
|
+ @RequestParam("machineCode") String machineCode) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 印刷管理-校验
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param orgId
|
|
|
+ * @param examDetailId
|
|
|
+ * @param machineCode
|
|
|
+ * @param packageCode
|
|
|
+ * @param lastCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "印刷管理-校验")
|
|
|
+ @RequestMapping(value = "/print/data_check", method = RequestMethod.POST)
|
|
|
+ public Result dataCheck(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("orgId") Long orgId,
|
|
|
+ @RequestParam("examDetailId") Long examDetailId,
|
|
|
+ @RequestParam("machineCode") String machineCode,
|
|
|
+ @RequestParam("packageCode") String packageCode,
|
|
|
+ @RequestParam("lastCode") String lastCode) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 印刷管理-更新打印进度
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param orgId
|
|
|
+ * @param examDetailId
|
|
|
+ * @param printProgress
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "印刷管理-更新打印进度")
|
|
|
+ @RequestMapping(value = "/print/update_progress", method = RequestMethod.POST)
|
|
|
+ public Result updateProgress(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("orgId") Long orgId,
|
|
|
+ @RequestParam("examDetailId") Long examDetailId,
|
|
|
+ @RequestParam("printProgress") Integer printProgress) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 重打-查询考生列表
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param orgId
|
|
|
+ * @param examDetailId
|
|
|
+ * @param ticketNumber
|
|
|
+ * @param studentName
|
|
|
+ * @param courseCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "重打-查询考生列表")
|
|
|
+ @RequestMapping(value = "/print/list_student", method = RequestMethod.POST)
|
|
|
+ public Result listStudent(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("orgId") Long orgId,
|
|
|
+ @RequestParam("examDetailId") Long examDetailId,
|
|
|
+ @RequestParam(value = "ticketNumber", required = false) String ticketNumber,
|
|
|
+ @RequestParam(value = "studentName", required = false) String studentName,
|
|
|
+ @RequestParam(value = "courseCode", required = false) String courseCode) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 重打-内容查询
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param orgId
|
|
|
+ * @param examDetailId
|
|
|
+ * @param ticketNumber
|
|
|
+ * @param type
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "重打-内容查询")
|
|
|
+ @RequestMapping(value = "/print/get_reprint_data", method = RequestMethod.POST)
|
|
|
+ public Result getReprintData(@RequestParam("schoolId") Long schoolId,
|
|
|
+ @RequestParam("orgId") Long orgId,
|
|
|
+ @RequestParam("examDetailId") Long examDetailId,
|
|
|
+ @RequestParam("ticketNumber") String ticketNumber,
|
|
|
+ @RequestParam("type") String type) {
|
|
|
|
|
|
return null;
|
|
|
}
|