wangwei vor 6 Jahren
Ursprung
Commit
c7f89f389d

+ 2 - 1
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/controller/ExamController.java

@@ -331,7 +331,8 @@ public class ExamController extends ControllerSupport {
 		domain.setName(one.getName());
 		domain.setRemark(one.getRemark());
 		domain.setRootOrgId(one.getRootOrgId());
-		domain.setStarted(isStarted(one.getId()));
+		// domain.setStarted(isStarted(one.getId()));
+		domain.setStarted(false);
 		return domain;
 	}
 

+ 4 - 0
examcloud-core-examwork-service/src/main/java/cn/com/qmth/examcloud/core/examwork/service/impl/ExamStudentServiceImpl.java

@@ -80,6 +80,10 @@ public class ExamStudentServiceImpl implements ExamStudentService {
 	ExamPaperTypeRelationRepo examPaperTypeRelationRepo;
 
 	private boolean isStarted(Long examId, Long StudentId, Long courseId) {
+		if (2 > 1) {
+			return false;
+		}
+
 		CheckExamIsStartedReq checkExamIsStartedReq = new CheckExamIsStartedReq();
 		checkExamIsStartedReq.setExamId(examId);
 		checkExamIsStartedReq.setCourseId(courseId);