|
@@ -24,9 +24,10 @@ import cn.com.qmth.examcloud.exchange.outer.api.response.OuterResetExamStudentRe
|
|
|
import cn.com.qmth.examcloud.exchange.outer.api.response.OuterSaveExamStudentResp;
|
|
|
import cn.com.qmth.examcloud.exchange.outer.api.response.OuterUpdateExamStudentStatusResp;
|
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
|
-import cn.com.qmth.examcloud.web.support.StatusResponse;
|
|
|
import com.google.common.collect.Lists;
|
|
|
-import io.swagger.annotations.*;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -57,9 +58,6 @@ public class ExamStudentOuterServiceProvider extends ControllerSupport implement
|
|
|
ExamCloudService examCloudService;
|
|
|
|
|
|
@ApiOperation(value = "保存考生信息")
|
|
|
- @ApiResponses({
|
|
|
- @ApiResponse(code = 200, message = "成功", response = OuterSaveExamStudentResp.class),
|
|
|
- @ApiResponse(code = 500, message = "系统异常(异常信息见响应体)", response = StatusResponse.class)})
|
|
|
@PostMapping("saveExamStudent")
|
|
|
@Override
|
|
|
public OuterSaveExamStudentResp saveExamStudent(
|
|
@@ -131,9 +129,6 @@ public class ExamStudentOuterServiceProvider extends ControllerSupport implement
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "批量保存考生信息")
|
|
|
- @ApiResponses({
|
|
|
- @ApiResponse(code = 200, message = "成功", response = OuterBatchSaveExamStudentResp.class),
|
|
|
- @ApiResponse(code = 500, message = "系统异常(异常信息见响应体)", response = StatusResponse.class)})
|
|
|
@PostMapping("batchSaveExamStudent")
|
|
|
@Override
|
|
|
public OuterBatchSaveExamStudentResp batchSaveExamStudent(
|
|
@@ -211,28 +206,28 @@ public class ExamStudentOuterServiceProvider extends ControllerSupport implement
|
|
|
successList.add(bean);
|
|
|
|
|
|
} catch (StatusException e) {
|
|
|
- ExamStudentStatus4BatchErrBean err=new ExamStudentStatus4BatchErrBean();
|
|
|
- err.setCourseCode(cur.getCourseCode());
|
|
|
- err.setCourseLevel(cur.getCourseLevel());
|
|
|
- err.setCourseName(cur.getCourseName());
|
|
|
- err.setExamId(req.getExamId());
|
|
|
- err.setExamName(req.getExamName());
|
|
|
- err.setIdentityNumber(cur.getIdentityNumber());
|
|
|
- err.setStudentCode(cur.getStudentCode());
|
|
|
- err.setName(cur.getStudentName());
|
|
|
- err.setErrorMessage(e.getDesc());
|
|
|
+ ExamStudentStatus4BatchErrBean err = new ExamStudentStatus4BatchErrBean();
|
|
|
+ err.setCourseCode(cur.getCourseCode());
|
|
|
+ err.setCourseLevel(cur.getCourseLevel());
|
|
|
+ err.setCourseName(cur.getCourseName());
|
|
|
+ err.setExamId(req.getExamId());
|
|
|
+ err.setExamName(req.getExamName());
|
|
|
+ err.setIdentityNumber(cur.getIdentityNumber());
|
|
|
+ err.setStudentCode(cur.getStudentCode());
|
|
|
+ err.setName(cur.getStudentName());
|
|
|
+ err.setErrorMessage(e.getDesc());
|
|
|
failureList.add(err);
|
|
|
} catch (Exception e) {
|
|
|
- ExamStudentStatus4BatchErrBean err=new ExamStudentStatus4BatchErrBean();
|
|
|
- err.setCourseCode(cur.getCourseCode());
|
|
|
- err.setCourseLevel(cur.getCourseLevel());
|
|
|
- err.setCourseName(cur.getCourseName());
|
|
|
- err.setExamId(req.getExamId());
|
|
|
- err.setExamName(req.getExamName());
|
|
|
- err.setIdentityNumber(cur.getIdentityNumber());
|
|
|
- err.setStudentCode(cur.getStudentCode());
|
|
|
- err.setName(cur.getStudentName());
|
|
|
- err.setErrorMessage("保存出错,请联系管理员");
|
|
|
+ ExamStudentStatus4BatchErrBean err = new ExamStudentStatus4BatchErrBean();
|
|
|
+ err.setCourseCode(cur.getCourseCode());
|
|
|
+ err.setCourseLevel(cur.getCourseLevel());
|
|
|
+ err.setCourseName(cur.getCourseName());
|
|
|
+ err.setExamId(req.getExamId());
|
|
|
+ err.setExamName(req.getExamName());
|
|
|
+ err.setIdentityNumber(cur.getIdentityNumber());
|
|
|
+ err.setStudentCode(cur.getStudentCode());
|
|
|
+ err.setName(cur.getStudentName());
|
|
|
+ err.setErrorMessage("保存出错,请联系管理员");
|
|
|
failureList.add(err);
|
|
|
|
|
|
}
|
|
@@ -246,9 +241,6 @@ public class ExamStudentOuterServiceProvider extends ControllerSupport implement
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "更新考生状态", hidden = true)
|
|
|
- @ApiResponses({
|
|
|
- @ApiResponse(code = 200, message = "成功", response = OuterBatchSaveExamStudentResp.class),
|
|
|
- @ApiResponse(code = 500, message = "系统异常(异常信息见响应体)", response = StatusResponse.class)})
|
|
|
@PostMapping("updateExamStudentStatus")
|
|
|
@Override
|
|
|
public OuterUpdateExamStudentStatusResp updateExamStudentStatus(
|
|
@@ -290,9 +282,6 @@ public class ExamStudentOuterServiceProvider extends ControllerSupport implement
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "重置考生", hidden = true)
|
|
|
- @ApiResponses({
|
|
|
- @ApiResponse(code = 200, message = "成功", response = OuterResetExamStudentResp.class),
|
|
|
- @ApiResponse(code = 500, message = "系统异常(异常信息见响应体)", response = StatusResponse.class)})
|
|
|
@PostMapping("resetExamStudent")
|
|
|
@Override
|
|
|
public OuterResetExamStudentResp resetExamStudent(
|