|
@@ -6,6 +6,7 @@ import java.util.Map;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.api.commons.enums.CallType;
|
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.marking.api.MarkWorkCloudService;
|
|
|
import cn.com.qmth.examcloud.marking.api.bean.MarkWorkBean;
|
|
@@ -45,7 +46,9 @@ public class MarkWorkPaperCreateTask extends AbstractTask {
|
|
|
req.setMarkWorkBean(wbean);
|
|
|
try {
|
|
|
for (Long examId : bean.getExamIds()) {
|
|
|
- createMarkItems(examId, bean.getId());
|
|
|
+ if(CallType.WHOLE_SET.equals(wbean.getCallType())) {
|
|
|
+ createMarkItems(examId, bean.getId());
|
|
|
+ }
|
|
|
createStudentPapers(examId, bean.getId());
|
|
|
}
|
|
|
wbean.setStatus(1);
|
|
@@ -54,7 +57,7 @@ public class MarkWorkPaperCreateTask extends AbstractTask {
|
|
|
throw e;
|
|
|
} catch (Exception e) {
|
|
|
wbean.setStatus(2);
|
|
|
- throw new StatusException("100001", "评卷工作试卷生成出错 " + e.getMessage(), e);
|
|
|
+ throw new StatusException("100001", "评卷工作试卷生成出错 ", e);
|
|
|
} finally {
|
|
|
markWorkCloudService.updateMarkWork(req);
|
|
|
}
|