|
@@ -43,7 +43,7 @@ public class ExamServiceImpl implements ExamService {
|
|
|
ExamStudentServiceImpl examStudentService;
|
|
|
|
|
|
@Autowired
|
|
|
- ExamOrgSettingsRepo examOrgRepo;
|
|
|
+ ExamOrgSettingsRepo examOrgSettingsRepo;
|
|
|
|
|
|
@Autowired
|
|
|
OrgCloudService orgCloudService;
|
|
@@ -67,7 +67,7 @@ public class ExamServiceImpl implements ExamService {
|
|
|
throw new StatusException("", "[ " + exam.getName() + " ] 已经开考,不能删除");
|
|
|
}
|
|
|
// 删除学习中心考试时间
|
|
|
- examOrgRepo.deleteByExamId(exam.getId());
|
|
|
+ examOrgSettingsRepo.deleteByExamId(exam.getId());
|
|
|
examStudentService.deleteExamStudentsByExamId(exam.getId());
|
|
|
examRepo.delete(exam);
|
|
|
}
|
|
@@ -201,13 +201,13 @@ public class ExamServiceImpl implements ExamService {
|
|
|
ExamOrgSettingsEntity examOrgEntity = null;
|
|
|
|
|
|
if (null == examOrgInfo.getId()) {
|
|
|
- examOrgEntity = examOrgRepo.findByExamIdAndOrgId(examOrgInfo.getExamId(),
|
|
|
+ examOrgEntity = examOrgSettingsRepo.findByExamIdAndOrgId(examOrgInfo.getExamId(),
|
|
|
examOrgInfo.getOrgId());
|
|
|
if (null == examOrgEntity) {
|
|
|
examOrgEntity = new ExamOrgSettingsEntity();
|
|
|
}
|
|
|
} else {
|
|
|
- examOrgEntity = examOrgRepo.findOne(examOrgInfo.getId());
|
|
|
+ examOrgEntity = examOrgSettingsRepo.findOne(examOrgInfo.getId());
|
|
|
if (null == examOrgEntity) {
|
|
|
throw new StatusException("E-001101", "id is wrong");
|
|
|
}
|
|
@@ -221,7 +221,7 @@ public class ExamServiceImpl implements ExamService {
|
|
|
|
|
|
Map<ExamProperty, String> map = checkAndGetExamProperties(examOrgInfo.getProperties());
|
|
|
|
|
|
- ExamOrgSettingsEntity saved = examOrgRepo.save(examOrgEntity);
|
|
|
+ ExamOrgSettingsEntity saved = examOrgSettingsRepo.save(examOrgEntity);
|
|
|
|
|
|
for (Entry<ExamProperty, String> entry : map.entrySet()) {
|
|
|
ExamProperty prop = entry.getKey();
|