|
@@ -678,14 +678,14 @@ public class BasicExamStudentServiceImpl extends ServiceImpl<BasicExamStudentMap
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
List<BasicCourse> basicCourseList = basicCourseService.listBySchoolIdAndCode(schoolId, tSyncDataStudent.getCourseCode());
|
|
List<BasicCourse> basicCourseList = basicCourseService.listBySchoolIdAndCode(schoolId, tSyncDataStudent.getCourseCode());
|
|
- if(CollectionUtils.isEmpty(basicCourseList)){
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(basicCourseList)) {
|
|
throw ExceptionResultEnum.ERROR.exception("课程代码[" + tSyncDataStudent.getCourseCode() + "]不存在");
|
|
throw ExceptionResultEnum.ERROR.exception("课程代码[" + tSyncDataStudent.getCourseCode() + "]不存在");
|
|
- } else if(basicCourseList.size() == 1){
|
|
|
|
|
|
+ } else if (basicCourseList.size() == 1) {
|
|
BasicCourse basicCourse = basicCourseList.get(0);
|
|
BasicCourse basicCourse = basicCourseList.get(0);
|
|
courseId = basicCourse.getId();
|
|
courseId = basicCourse.getId();
|
|
basicCourseIdMap.put(key, basicCourse.getId());
|
|
basicCourseIdMap.put(key, basicCourse.getId());
|
|
- }else {
|
|
|
|
- throw ExceptionResultEnum.ERROR.exception("开课学院[" + tSyncDataStudent.getCourseCollegeName() + "]必填");
|
|
|
|
|
|
+ } else {
|
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("课程代码[" + tSyncDataStudent.getCourseCode() + "]存在多个值,开课学院[" + tSyncDataStudent.getCourseCollegeName() + "]必填");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -732,7 +732,7 @@ public class BasicExamStudentServiceImpl extends ServiceImpl<BasicExamStudentMap
|
|
|
|
|
|
if (StringUtils.isNotBlank(tSyncDataStudent.getPaperNumber())) {
|
|
if (StringUtils.isNotBlank(tSyncDataStudent.getPaperNumber())) {
|
|
if (paperNumberCourseIdMap.containsKey(tSyncDataStudent.getPaperNumber())) {
|
|
if (paperNumberCourseIdMap.containsKey(tSyncDataStudent.getPaperNumber())) {
|
|
- if (!paperNumberCourseIdMap.get(basicExamStudent.getPaperNumber()).equals(basicExamStudent.getCourseId())) {
|
|
|
|
|
|
+ if (!paperNumberCourseIdMap.get(tSyncDataStudent.getPaperNumber()).equals(basicExamStudent.getCourseId())) {
|
|
throw ExceptionResultEnum.ERROR.exception("试卷编号[" + basicExamStudent.getPaperNumber() + "]不能绑定多个课程");
|
|
throw ExceptionResultEnum.ERROR.exception("试卷编号[" + basicExamStudent.getPaperNumber() + "]不能绑定多个课程");
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|