|
@@ -225,7 +225,7 @@ public class CheckAbsentController extends BaseController {
|
|
@ApiOperation(value = "缺考校验按考生导出")
|
|
@ApiOperation(value = "缺考校验按考生导出")
|
|
@PostMapping(value = "exam-status/student/export")
|
|
@PostMapping(value = "exam-status/student/export")
|
|
public void studentExport(@Validated AnswerQueryDomain query, HttpServletResponse response) throws IOException {
|
|
public void studentExport(@Validated AnswerQueryDomain query, HttpServletResponse response) throws IOException {
|
|
- if(query.getExamStatus()!=null && query.getExamStatus().equals(ExamStatus.OK)){
|
|
|
|
|
|
+ if (query.getExamStatus() != null && query.getExamStatus().contains(ExamStatus.OK)) {
|
|
throw new ParameterException("请重新选择缺考状态");
|
|
throw new ParameterException("请重新选择缺考状态");
|
|
}
|
|
}
|
|
String fileName = URLEncoder.encode("按考生导出", "UTF-8");
|
|
String fileName = URLEncoder.encode("按考生导出", "UTF-8");
|
|
@@ -250,7 +250,7 @@ public class CheckAbsentController extends BaseController {
|
|
@PostMapping(value = "exam-status/exam-room/export")
|
|
@PostMapping(value = "exam-status/exam-room/export")
|
|
public void studentExamRoomExport(@Validated AnswerQueryDomain query, HttpServletResponse response)
|
|
public void studentExamRoomExport(@Validated AnswerQueryDomain query, HttpServletResponse response)
|
|
throws IOException {
|
|
throws IOException {
|
|
- if(query.getExamStatus()!=null && query.getExamStatus().equals(ExamStatus.OK)){
|
|
|
|
|
|
+ if (query.getExamStatus() != null && query.getExamStatus().contains(ExamStatus.OK)) {
|
|
throw new ParameterException("请重新选择缺考状态");
|
|
throw new ParameterException("请重新选择缺考状态");
|
|
}
|
|
}
|
|
String fileName = URLEncoder.encode("按考场导出", "UTF-8");
|
|
String fileName = URLEncoder.encode("按考场导出", "UTF-8");
|