|
@@ -51,7 +51,6 @@ public class ExamDetailController {
|
|
|
@RequestMapping(value = "/data_import", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = EditResult.class)})
|
|
|
public Result examinationImportAysnc(@ApiParam(value = "上传文件", required = true) @RequestParam MultipartFile file,
|
|
|
- @ApiParam(value = "学校id", required = true) @RequestParam String schoolId,
|
|
|
@ApiParam(value = "印刷计划id", required = true) @RequestParam String printPlanId) throws Exception {
|
|
|
Map<String, Object> map = tbTaskService.saveTask(SystemConstant.convertIdToLong(printPlanId), file, TaskTypeEnum.EXAMINATION_IMPORT);
|
|
|
asyncExaminationImportTemplateService.importTask(map);
|
|
@@ -62,8 +61,7 @@ public class ExamDetailController {
|
|
|
@ApiOperation(value = "考务数据导入-查询")
|
|
|
@RequestMapping(value = "/data_list", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
- public Result findExaminationBrief(@ApiParam(value = "学校主键", required = true) @RequestParam String schoolId,
|
|
|
- @ApiParam(value = "印刷计划名称") @RequestParam(required = false) String printPlanName,
|
|
|
+ public Result findExaminationBrief(@ApiParam(value = "印刷计划id") @RequestParam(required = false) String printPlanId,
|
|
|
@ApiParam(value = "课程代码") @RequestParam(required = false) String courseCode,
|
|
|
@ApiParam(value = "试卷编号") @RequestParam(required = false) String paperNumber,
|
|
|
@ApiParam(value = "考点") @RequestParam(required = false) String examPlace,
|
|
@@ -72,29 +70,30 @@ public class ExamDetailController {
|
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber,
|
|
|
@ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
|
|
|
|
|
|
- return ResultUtil.ok(examDetailService.findExaminationBriefPage(SystemConstant.convertIdToLong(schoolId),
|
|
|
- printPlanName, courseCode, paperNumber, examPlace, examRoom, packageCode, pageNumber, pageSize));
|
|
|
+ Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
|
+ return ResultUtil.ok(examDetailService.findExaminationBriefPage(schoolId,
|
|
|
+ SystemConstant.convertIdToLong(printPlanId), courseCode, paperNumber, examPlace, examRoom, packageCode, pageNumber, pageSize));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考务数据导入-汇总数据查询")
|
|
|
@RequestMapping(value = "/data_total", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
- public Result findSummarizedData(@ApiParam(value = "学校主键", required = true) @RequestParam String schoolId,
|
|
|
- @ApiParam(value = "印刷计划名称") @RequestParam(required = false) String printPlanName,
|
|
|
+ public Result findSummarizedData(@ApiParam(value = "印刷计划id") @RequestParam(required = false) String printPlanId,
|
|
|
@ApiParam(value = "课程代码") @RequestParam(required = false) String courseCode,
|
|
|
@ApiParam(value = "试卷编号") @RequestParam(required = false) String paperNumber,
|
|
|
@ApiParam(value = "考点") @RequestParam(required = false) String examPlace,
|
|
|
@ApiParam(value = "考场") @RequestParam(required = false) String examRoom,
|
|
|
@ApiParam(value = "卷袋号") @RequestParam(required = false) String packageCode) {
|
|
|
|
|
|
- return ResultUtil.ok(examDetailService.findSummarizedData(SystemConstant.convertIdToLong(schoolId),
|
|
|
- printPlanName, courseCode, paperNumber, examPlace, examRoom, packageCode));
|
|
|
+ Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
|
+ return ResultUtil.ok(examDetailService.findSummarizedData(schoolId,
|
|
|
+ SystemConstant.convertIdToLong(printPlanId), courseCode, paperNumber, examPlace, examRoom, packageCode));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考务数据导入-查看明细")
|
|
|
@RequestMapping(value = "/data_detail", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
- public Result findExaminationDetail(@ApiParam(value = "印刷计划主键", required = true) @RequestParam String printPlanId,
|
|
|
+ public Result findExaminationDetail(@ApiParam(value = "印刷计划主键") @RequestParam(required = false) String printPlanId,
|
|
|
@ApiParam(value = "课程代码") @RequestParam(required = false) String courseCode,
|
|
|
@ApiParam(value = "试卷编号") @RequestParam(required = false) String paperNumber,
|
|
|
@ApiParam(value = "考点") @RequestParam(required = false) String examPlace,
|
|
@@ -110,15 +109,15 @@ public class ExamDetailController {
|
|
|
@ApiOperation(value = "考务数据导入-考点模糊查询")
|
|
|
@RequestMapping(value = "/data_place_query", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
- public Result findExamPlaceDatasource(@ApiParam(value = "印刷计划主键", required = true) @RequestParam String printPlanId) {
|
|
|
- return ResultUtil.ok(examDetailService.findExamPlaceDatasource(SystemConstant.convertIdToLong(printPlanId)));
|
|
|
+ public Result findExamPlaceDatasource() {
|
|
|
+ return ResultUtil.ok(examDetailService.findExamPlaceDatasource());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考务数据导入-考场模糊查询")
|
|
|
@RequestMapping(value = "/data_room_query", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
- public Result findExamRoomDatasource(@ApiParam(value = "印刷计划主键", required = true) @RequestParam String printPlanId) {
|
|
|
- return ResultUtil.ok(examDetailService.findExamRoomDatasource(SystemConstant.convertIdToLong(printPlanId)));
|
|
|
+ public Result findExamRoomDatasource() {
|
|
|
+ return ResultUtil.ok(examDetailService.findExamRoomDatasource());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考务数据导入-模板下载")
|