|
@@ -10,6 +10,7 @@ import java.util.Set;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import cn.com.qmth.stmms.biz.mark.service.RejectHistoryService;
|
|
|
import cn.com.qmth.stmms.common.enums.*;
|
|
|
import org.apache.commons.lang.StringEscapeUtils;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
@@ -111,6 +112,9 @@ public class MarkerController extends BaseExamController {
|
|
|
@Autowired
|
|
|
private SchoolService schoolService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private RejectHistoryService rejectHistoryService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private SystemCache systemCache;
|
|
|
|
|
@@ -562,10 +566,11 @@ public class MarkerController extends BaseExamController {
|
|
|
}
|
|
|
long count = libraryService.countByMarker(markerId);
|
|
|
long trialCount = trialService.countByMarkerIdAndMarkerScoreIsNotNull(markerId);
|
|
|
+ long rejectCount = rejectHistoryService.countByMarkerId(markerId);
|
|
|
int examId = marker.getExamId();
|
|
|
String subjectCode = marker.getSubjectCode();
|
|
|
Integer groupNumber = marker.getGroupNumber();
|
|
|
- if (count > 0 || trialCount > 0) {
|
|
|
+ if (count > 0 || trialCount > 0 || rejectCount >0 ) {
|
|
|
addMessage(redirectAttributes, "删除评卷员失败,该评卷员已开始评卷");
|
|
|
} else {
|
|
|
try {
|