|
@@ -376,16 +376,10 @@ public class MarkController extends BaseController {
|
|
// 需要判断评卷员是否绑定了班级
|
|
// 需要判断评卷员是否绑定了班级
|
|
Set<LibraryStatus> statusSet = new HashSet<>();
|
|
Set<LibraryStatus> statusSet = new HashSet<>();
|
|
statusSet.add(LibraryStatus.WAITING);
|
|
statusSet.add(LibraryStatus.WAITING);
|
|
|
|
+ statusSet.add(LibraryStatus.REJECTED);
|
|
long classCount = markerClassService.countByUserIdAndExamId(marker.getUserId(), marker.getExamId());
|
|
long classCount = markerClassService.countByUserIdAndExamId(marker.getUserId(), marker.getExamId());
|
|
list = libraryService.findUnMarked(marker.getExamId(), marker.getSubjectCode(), marker.getGroupNumber(),
|
|
list = libraryService.findUnMarked(marker.getExamId(), marker.getSubjectCode(), marker.getGroupNumber(),
|
|
marker.getId(), marker.getUserId(), classCount > 0, retry, 20, statusSet);
|
|
marker.getId(), marker.getUserId(), classCount > 0, retry, 20, statusSet);
|
|
- if (list.isEmpty()) {
|
|
|
|
- // 正评任务无法获取后,获取打回的任务
|
|
|
|
- statusSet.add(LibraryStatus.REJECTED);
|
|
|
|
- list = libraryService.findUnMarked(marker.getExamId(), marker.getSubjectCode(),
|
|
|
|
- marker.getGroupNumber(), marker.getId(), marker.getUserId(), classCount > 0, retry, 20,
|
|
|
|
- statusSet);
|
|
|
|
- }
|
|
|
|
if (list.isEmpty()) {
|
|
if (list.isEmpty()) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -565,6 +559,11 @@ public class MarkController extends BaseController {
|
|
Marker old = user.getMarker();
|
|
Marker old = user.getMarker();
|
|
Marker marker = markerService.findById(markerId);
|
|
Marker marker = markerService.findById(markerId);
|
|
JSONObject result = new JSONObject();
|
|
JSONObject result = new JSONObject();
|
|
|
|
+ if (marker == null) {
|
|
|
|
+ result.accumulate("success", false);
|
|
|
|
+ result.accumulate("message", "评卷分组不存在");
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
MarkGroup group = groupService.findOne(marker.getExamId(), marker.getSubjectCode(), marker.getGroupNumber());
|
|
MarkGroup group = groupService.findOne(marker.getExamId(), marker.getSubjectCode(), marker.getGroupNumber());
|
|
if (group == null) {
|
|
if (group == null) {
|
|
result.accumulate("success", false);
|
|
result.accumulate("success", false);
|