|
@@ -231,6 +231,23 @@ public class ExamCloudServiceProvider extends ControllerSupport implements ExamC
|
|
|
bean.setRootOrgId(exam.getRootOrgId());
|
|
|
bean.setExamLimit(exam.getExamLimit());
|
|
|
|
|
|
+ Long orgId = req.getOrgId();
|
|
|
+ if (null != orgId) {
|
|
|
+ ExamSpecialSettingsEntity examOrgEntity = examSpecialSettingsRepo
|
|
|
+ .findByExamIdAndOrgIdAndCourseIdIsNullAndStudentIdIsNull(exam.getId(), orgId);
|
|
|
+ if (null != examOrgEntity) {
|
|
|
+ if (null != examOrgEntity.getBeginTime()) {
|
|
|
+ bean.setBeginTime(examOrgEntity.getBeginTime());
|
|
|
+ }
|
|
|
+ if (null != examOrgEntity.getEndTime()) {
|
|
|
+ bean.setEndTime(examOrgEntity.getEndTime());
|
|
|
+ }
|
|
|
+ if (null != examOrgEntity.getExamLimit()) {
|
|
|
+ bean.setExamLimit(examOrgEntity.getExamLimit());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return examResp;
|
|
|
}
|
|
|
|