|
@@ -1,5 +1,6 @@
|
|
package com.qmth.distributed.print.api;
|
|
package com.qmth.distributed.print.api;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
@@ -57,7 +58,7 @@ public class ClientController {
|
|
* @param login 登录参数
|
|
* @param login 登录参数
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "登录")
|
|
@ApiOperation(value = "登录")
|
|
- @RequestMapping(value = "/user/login", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/user/login")
|
|
@ApiResponses({@ApiResponse(code = 200, message = "用户信息", response = LoginResult.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "用户信息", response = LoginResult.class)})
|
|
@Aac(auth = BOOL.FALSE)
|
|
@Aac(auth = BOOL.FALSE)
|
|
public Result login(@ApiParam(value = "用户信息", required = true) @Valid @RequestBody ClientLoginParam login, BindingResult bindingResult) throws NoSuchAlgorithmException {
|
|
public Result login(@ApiParam(value = "用户信息", required = true) @Valid @RequestBody ClientLoginParam login, BindingResult bindingResult) throws NoSuchAlgorithmException {
|
|
@@ -97,7 +98,7 @@ public class ClientController {
|
|
* @param pageSize 分页参数
|
|
* @param pageSize 分页参数
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "试卷打样-列表")
|
|
@ApiOperation(value = "试卷打样-列表")
|
|
- @RequestMapping(value = "/paper_try/list", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/paper_try/list")
|
|
public Result paperTryList(@RequestParam("machineCode") String machineCode,
|
|
public Result paperTryList(@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam(value = "printPlanId", required = false) Long printPlanId,
|
|
@RequestParam(value = "printPlanId", required = false) Long printPlanId,
|
|
@@ -117,7 +118,7 @@ public class ClientController {
|
|
* @param examTaskId 命题任务ID
|
|
* @param examTaskId 命题任务ID
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "试卷打样-查看/试印/重印")
|
|
@ApiOperation(value = "试卷打样-查看/试印/重印")
|
|
- @RequestMapping(value = "/paper_try/print", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/paper_try/print")
|
|
public Result paperTryPrint(@RequestParam("printPlanId") Long printPlanId,
|
|
public Result paperTryPrint(@RequestParam("printPlanId") Long printPlanId,
|
|
@RequestParam("examTaskId") Long examTaskId) {
|
|
@RequestParam("examTaskId") Long examTaskId) {
|
|
List<Map<String, String>> list = clientService.getPaperUrl(printPlanId, examTaskId);
|
|
List<Map<String, String>> list = clientService.getPaperUrl(printPlanId, examTaskId);
|
|
@@ -136,7 +137,7 @@ public class ClientController {
|
|
* @param isPass 是否通过
|
|
* @param isPass 是否通过
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "试卷打样-批量试印")
|
|
@ApiOperation(value = "试卷打样-批量试印")
|
|
- @RequestMapping(value = "/paper_try/print_batch", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/paper_try/print_batch")
|
|
public Result printBatch(@RequestParam("machineCode") String machineCode,
|
|
public Result printBatch(@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam(value = "printPlanId", required = false) Long printPlanId,
|
|
@RequestParam(value = "printPlanId", required = false) Long printPlanId,
|
|
@@ -156,7 +157,7 @@ public class ClientController {
|
|
* @param userId 用户Id
|
|
* @param userId 用户Id
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "试卷打样-标记合格状态")
|
|
@ApiOperation(value = "试卷打样-标记合格状态")
|
|
- @RequestMapping(value = "/paper_try/tag_pass", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/paper_try/tag_pass")
|
|
public Result paperTryTagPass(@RequestParam("printPlanId") Long printPlanId,
|
|
public Result paperTryTagPass(@RequestParam("printPlanId") Long printPlanId,
|
|
@RequestParam("courseCode") String courseCode,
|
|
@RequestParam("courseCode") String courseCode,
|
|
@RequestParam("courseName") String courseName,
|
|
@RequestParam("courseName") String courseName,
|
|
@@ -187,7 +188,7 @@ public class ClientController {
|
|
* @param pageSize 分页参数
|
|
* @param pageSize 分页参数
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "印刷管理-查询列表")
|
|
@ApiOperation(value = "印刷管理-查询列表")
|
|
- @RequestMapping(value = "/print/task_list", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/task_list")
|
|
public Result printTaskList(@RequestParam("machineCode") String machineCode,
|
|
public Result printTaskList(@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@@ -225,7 +226,7 @@ public class ClientController {
|
|
* @param validate 是否核验
|
|
* @param validate 是否核验
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "印刷管理-导出")
|
|
@ApiOperation(value = "印刷管理-导出")
|
|
- @RequestMapping(value = "/print/task_list_export", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/task_list_export")
|
|
public void printTaskListExport(HttpServletResponse response,
|
|
public void printTaskListExport(HttpServletResponse response,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam("orgId") Long orgId,
|
|
@@ -259,7 +260,7 @@ public class ClientController {
|
|
* @param validate 是否校验
|
|
* @param validate 是否校验
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "印刷管理-汇总数据查询")
|
|
@ApiOperation(value = "印刷管理-汇总数据查询")
|
|
- @RequestMapping(value = "/print/task_total_data", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/task_total_data")
|
|
public Result printTaskTotalData(@RequestParam("machineCode") String machineCode,
|
|
public Result printTaskTotalData(@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@@ -283,7 +284,7 @@ public class ClientController {
|
|
* @param examDetailId 命题任务ID
|
|
* @param examDetailId 命题任务ID
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "印刷管理-查看")
|
|
@ApiOperation(value = "印刷管理-查看")
|
|
- @RequestMapping(value = "/print/preview", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/preview")
|
|
public Result printPreview(@RequestParam("examDetailId") Long examDetailId) {
|
|
public Result printPreview(@RequestParam("examDetailId") Long examDetailId) {
|
|
Map<String, Object> map = clientService.getUrlByExamDetailId(examDetailId);
|
|
Map<String, Object> map = clientService.getUrlByExamDetailId(examDetailId);
|
|
return ResultUtil.ok(map);
|
|
return ResultUtil.ok(map);
|
|
@@ -297,7 +298,7 @@ public class ClientController {
|
|
* @param printUser 打印员
|
|
* @param printUser 打印员
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "印刷管理-印刷/缓存数据")
|
|
@ApiOperation(value = "印刷管理-印刷/缓存数据")
|
|
- @RequestMapping(value = "/print/get_print_data", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/get_print_data")
|
|
public Result printGetPrintData(@RequestParam("examDetailId") Long examDetailId,
|
|
public Result printGetPrintData(@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("isPrint") Boolean isPrint,
|
|
@RequestParam("isPrint") Boolean isPrint,
|
|
@@ -313,7 +314,7 @@ public class ClientController {
|
|
* @param machineCode 机器码
|
|
* @param machineCode 机器码
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "印刷管理-批量缓存数据")
|
|
@ApiOperation(value = "印刷管理-批量缓存数据")
|
|
- @RequestMapping(value = "/print/get_print_data_batch", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/get_print_data_batch")
|
|
public Result printGetPrintDataBatch(@RequestParam("machineCode") String machineCode,
|
|
public Result printGetPrintDataBatch(@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam("orgId") Long orgId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@@ -336,7 +337,7 @@ public class ClientController {
|
|
* @param isDownload 是否缓存
|
|
* @param isDownload 是否缓存
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "印刷管理-缓存后更新状态")
|
|
@ApiOperation(value = "印刷管理-缓存后更新状态")
|
|
- @RequestMapping(value = "/print/update_download", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/update_download")
|
|
public Result updateDownload(@RequestParam("examDetailId") Long examDetailId,
|
|
public Result updateDownload(@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("isDownload") Boolean isDownload) {
|
|
@RequestParam("isDownload") Boolean isDownload) {
|
|
@@ -352,7 +353,7 @@ public class ClientController {
|
|
* @param lastCode 校验条码号
|
|
* @param lastCode 校验条码号
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "印刷管理-校验")
|
|
@ApiOperation(value = "印刷管理-校验")
|
|
- @RequestMapping(value = "/print/validate_data", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/validate_data")
|
|
public Result dataCheck(@RequestParam("examDetailId") Long examDetailId,
|
|
public Result dataCheck(@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("packageCode") String packageCode,
|
|
@RequestParam("packageCode") String packageCode,
|
|
@RequestParam("lastCode") String lastCode) {
|
|
@RequestParam("lastCode") String lastCode) {
|
|
@@ -368,7 +369,7 @@ public class ClientController {
|
|
* @param printProgress 打印进度
|
|
* @param printProgress 打印进度
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "印刷管理-更新打印进度")
|
|
@ApiOperation(value = "印刷管理-更新打印进度")
|
|
- @RequestMapping(value = "/print/update_progress", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/update_progress")
|
|
public Result updateProgress(@RequestParam("examDetailId") Long examDetailId,
|
|
public Result updateProgress(@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("printProgress") Integer printProgress,
|
|
@RequestParam("printProgress") Integer printProgress,
|
|
@@ -386,7 +387,7 @@ public class ClientController {
|
|
* @param courseCode 课程代码
|
|
* @param courseCode 课程代码
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "重打-查询考生列表")
|
|
@ApiOperation(value = "重打-查询考生列表")
|
|
- @RequestMapping(value = "/print/list_student", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/list_student")
|
|
public Result listStudent(@RequestParam("examDetailId") Long examDetailId,
|
|
public Result listStudent(@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam(value = "ticketNumber", required = false) String ticketNumber,
|
|
@RequestParam(value = "ticketNumber", required = false) String ticketNumber,
|
|
@RequestParam(value = "studentName", required = false) String studentName,
|
|
@RequestParam(value = "studentName", required = false) String studentName,
|
|
@@ -405,7 +406,7 @@ public class ClientController {
|
|
* @param type 类型
|
|
* @param type 类型
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "重打-内容查询")
|
|
@ApiOperation(value = "重打-内容查询")
|
|
- @RequestMapping(value = "/print/get_reprint_data", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/get_reprint_data")
|
|
public Result getReprintData(@RequestParam("examDetailId") Long examDetailId,
|
|
public Result getReprintData(@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("ticketNumber") String ticketNumber,
|
|
@RequestParam("ticketNumber") String ticketNumber,
|
|
@RequestParam("type") String type) {
|
|
@RequestParam("type") String type) {
|
|
@@ -427,7 +428,7 @@ public class ClientController {
|
|
* @param pageSize 分页参数
|
|
* @param pageSize 分页参数
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "统计查询-查询列表")
|
|
@ApiOperation(value = "统计查询-查询列表")
|
|
- @RequestMapping(value = "/print/statistics_list", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/statistics_list")
|
|
public Result printStatisticsList(@RequestParam("orgId") Long orgId,
|
|
public Result printStatisticsList(@RequestParam("orgId") Long orgId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@RequestParam(value = "examPlace", required = false) String examPlace,
|
|
@RequestParam(value = "examPlace", required = false) String examPlace,
|
|
@@ -453,7 +454,7 @@ public class ClientController {
|
|
* @param paperNumber 试卷编号
|
|
* @param paperNumber 试卷编号
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "统计查询-汇总数据查询")
|
|
@ApiOperation(value = "统计查询-汇总数据查询")
|
|
- @RequestMapping(value = "/print/statistics_total_data", method = RequestMethod.POST)
|
|
|
|
|
|
+ @PostMapping("/print/statistics_total_data")
|
|
public Result printStatisticsTotalData(@RequestParam("orgId") Long orgId,
|
|
public Result printStatisticsTotalData(@RequestParam("orgId") Long orgId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@RequestParam(value = "printPlanId", required = false) String printPlanId,
|
|
@RequestParam(value = "examPlace", required = false) String examPlace,
|
|
@RequestParam(value = "examPlace", required = false) String examPlace,
|