|
@@ -197,14 +197,16 @@ public class ExamCloudServiceProvider extends ControllerSupport implements ExamC
|
|
if (null != orgId) {
|
|
if (null != orgId) {
|
|
ExamOrgSettingsEntity examOrgEntity = examOrgSettingsRepo
|
|
ExamOrgSettingsEntity examOrgEntity = examOrgSettingsRepo
|
|
.findByExamIdAndOrgId(exam.getId(), orgId);
|
|
.findByExamIdAndOrgId(exam.getId(), orgId);
|
|
- if (null != examOrgEntity.getBeginTime()) {
|
|
|
|
- bean.setBeginTime(examOrgEntity.getBeginTime());
|
|
|
|
- }
|
|
|
|
- if (null != examOrgEntity.getEndTime()) {
|
|
|
|
- bean.setEndTime(examOrgEntity.getEndTime());
|
|
|
|
- }
|
|
|
|
- if (null != examOrgEntity.getExamLimit()) {
|
|
|
|
- bean.setExamLimit(examOrgEntity.getExamLimit());
|
|
|
|
|
|
+ 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());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|