|
@@ -1,7 +1,5 @@
|
|
|
package com.qmth.distributed.print.api;
|
|
|
|
|
|
-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.params.SyncDataParam;
|
|
|
import com.qmth.distributed.print.business.bean.result.EditResult;
|
|
@@ -35,6 +33,7 @@ public class ExamPrintPlanSyncController {
|
|
|
|
|
|
/**
|
|
|
* 需要合并的计划查询
|
|
|
+ *
|
|
|
* @param printPlanId
|
|
|
* @param status
|
|
|
* @param startTime
|
|
@@ -43,10 +42,10 @@ public class ExamPrintPlanSyncController {
|
|
|
* @param pageSize
|
|
|
* @return
|
|
|
*/
|
|
|
- @ApiOperation(value = "印刷计划查询")
|
|
|
+ @ApiOperation(value = "印刷计划合并管理-计划查询")
|
|
|
@RequestMapping(value = "/list_sync", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
- public Result findPrintPlanPage(@ApiParam(value = "印刷计划id") @RequestParam(required = false) String printPlanId,
|
|
|
+ public Result findPrintPlanPage(@ApiParam(value = "印刷计划ID") @RequestParam(required = false) String printPlanId,
|
|
|
@ApiParam(value = "印刷计划状态") @RequestParam(required = false) PrintPlanStatusEnum status,
|
|
|
@ApiParam(value = "计划创建时间段开始时间") @RequestParam(required = false) Long startTime,
|
|
|
@ApiParam(value = "计划创建时间段结束时间") @RequestParam(required = false) Long endTime,
|
|
@@ -56,14 +55,15 @@ public class ExamPrintPlanSyncController {
|
|
|
Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
|
List<Long> idList = new ArrayList<>();
|
|
|
idList.add(SystemConstant.convertIdToLong(printPlanId));
|
|
|
- return ResultUtil.ok(examPrintPlanService.printPlanPage(schoolId,idList , status, startTime, endTime, pageNumber, pageSize));
|
|
|
+ return ResultUtil.ok(examPrintPlanService.printPlanPage(schoolId, idList, status, startTime, endTime, pageNumber, pageSize));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 已同步过的云阅卷考试列表
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
- @ApiOperation(value = "云阅卷考试ID查询")
|
|
|
+ @ApiOperation(value = "印刷计划合并管理-合并推送-云阅卷考试ID列表")
|
|
|
@RequestMapping(value = "/list_relate_id", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
public Result findPrintPlanPage() {
|
|
@@ -74,11 +74,12 @@ public class ExamPrintPlanSyncController {
|
|
|
|
|
|
/**
|
|
|
* 多计划合并同步
|
|
|
+ *
|
|
|
* @param syncDataParam
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- @ApiOperation(value = "多计划合并同步")
|
|
|
+ @ApiOperation(value = "印刷计划合并管理-合并推送-多计划合并同步")
|
|
|
@RequestMapping(value = "/sync_data_merge", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = EditResult.class)})
|
|
|
public Result syncDataCloud(@RequestBody SyncDataParam syncDataParam) {
|
|
@@ -86,17 +87,32 @@ public class ExamPrintPlanSyncController {
|
|
|
return ResultUtil.ok(true);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量同步
|
|
|
+ *
|
|
|
+ * @param printPlanIds
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "印刷计划合并管理-批量同步")
|
|
|
+ @RequestMapping(value = "/sync_data_cloud_batch", method = RequestMethod.POST)
|
|
|
+ @ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = EditResult.class)})
|
|
|
+ public Result syncDataCloudBatch(@RequestParam(value = "printPlanIds") String printPlanIds) {
|
|
|
+ examPrintPlanService.syncDataCloudBatch(printPlanIds);
|
|
|
+ return ResultUtil.ok(true);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 手动同步
|
|
|
+ *
|
|
|
* @param printPlanId
|
|
|
* @param thirdRelateId
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- @ApiOperation(value = "同步失败-手动同步")
|
|
|
+ @ApiOperation(value = "印刷计划合并管理-同步失败-单个手动同步")
|
|
|
@RequestMapping(value = "/sync_data_cloud", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = EditResult.class)})
|
|
|
- @Aac(auth = BOOL.FALSE)
|
|
|
public Result syncDataCloud(@RequestParam(value = "printPlanId") Long printPlanId,
|
|
|
@RequestParam(value = "thirdRelateId", required = false) Long thirdRelateId) {
|
|
|
examPrintPlanService.syncDataCloud(printPlanId, thirdRelateId);
|