|
@@ -84,8 +84,8 @@ public class ExamCardController {
|
|
|
@RequestMapping(value = "/save_generic", method = RequestMethod.POST)
|
|
|
@OperationLogDetail(customizedOperationType = CustomizedOperationTypeEnum.EDIT)
|
|
|
public Result save(@RequestBody GenericExamCardParams params) throws Exception {
|
|
|
- Long id = examCardService.saveGeneric(params);
|
|
|
- return ResultUtil.ok(String.valueOf(id), "");
|
|
|
+ Map<String, String> map = examCardService.saveGeneric(params);
|
|
|
+ return ResultUtil.ok(map);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -110,7 +110,7 @@ public class ExamCardController {
|
|
|
@ApiOperation(value = "新建")
|
|
|
@RequestMapping(value = "/save", method = RequestMethod.POST)
|
|
|
public Result save(@RequestBody ExamCardParams examCardParams) throws Exception {
|
|
|
- Map<String, String > map = examCardService.saveExamCard(examCardParams);
|
|
|
+ Map<String, String> map = examCardService.saveExamCard(examCardParams);
|
|
|
return ResultUtil.ok(map);
|
|
|
}
|
|
|
|
|
@@ -186,8 +186,8 @@ public class ExamCardController {
|
|
|
@RequestMapping(value = "/find_jpg_file", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
public Result listCardImage(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
|
- @ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber,
|
|
|
- @ApiParam(value = "试卷类型", required = true) @RequestParam String paperType) {
|
|
|
+ @ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber,
|
|
|
+ @ApiParam(value = "试卷类型", required = true) @RequestParam String paperType) {
|
|
|
return ResultUtil.ok(examCardService.listCardImage(examId, paperNumber, paperType));
|
|
|
}
|
|
|
|
|
@@ -200,7 +200,7 @@ public class ExamCardController {
|
|
|
@ApiOperation(value = "下载卡格式")
|
|
|
@RequestMapping(value = "/download_card_json", method = RequestMethod.POST)
|
|
|
public void downloadCardJson(HttpServletResponse response,
|
|
|
- @ApiParam(value = "题卡ID", required = true) @RequestParam(value = "id") String id) {
|
|
|
+ @ApiParam(value = "题卡ID", required = true) @RequestParam(value = "id") String id) {
|
|
|
examCardService.downloadCardJson(response, id);
|
|
|
}
|
|
|
}
|