|
@@ -149,7 +149,11 @@ public class ExamAuditController extends ControllerSupport {
|
|
|
|
|
|
@PostMapping(value = "/batch/audit")
|
|
|
@ApiOperation(value = "监考待审-批量审核")
|
|
|
- public void batchAudit(@RequestParam List<Long> examRecordDataIds, @RequestParam Boolean isPass) {
|
|
|
+ public void batchAudit(@RequestParam(required = true) List<Long> examRecordDataIds,
|
|
|
+ @RequestParam(required = false) String disciplineDetail,
|
|
|
+ @RequestParam(required = true) Boolean isPass,
|
|
|
+ @RequestParam(required = false) String disciplineType,
|
|
|
+ @RequestParam(required = false) Long illegallyTypeId) {
|
|
|
if (examRecordDataIds == null || examRecordDataIds.size() == 0) {
|
|
|
throw new StatusException("batchAudit-001", "examRecordDataIds不能为空");
|
|
|
}
|
|
@@ -157,7 +161,9 @@ public class ExamAuditController extends ControllerSupport {
|
|
|
throw new StatusException("batchAudit-002", "isPass不能为空");
|
|
|
}
|
|
|
User user = getAccessUser();
|
|
|
- examAuditService.batchAudit(examRecordDataIds, isPass, user);
|
|
|
+ for (Long examRecordDataId : examRecordDataIds) {
|
|
|
+ examAuditService.singleAudit(examRecordDataId, isPass, disciplineDetail, disciplineType, user, illegallyTypeId);
|
|
|
+ }
|
|
|
StringBuilder sb=new StringBuilder();
|
|
|
if(isPass) {
|
|
|
sb.append("审核状态:通过");
|