|
@@ -321,12 +321,14 @@ public class BasicStudentServiceImpl extends ServiceImpl<BasicStudentMapper, Bas
|
|
|
}
|
|
|
if (SystemConstant.longNotNull(campusId)) {
|
|
|
if (!campusId.equals(basicClazz.getCampusId())) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("学生所属班级信息和学生信息中【校区】不对应");
|
|
|
+ String exception = "学生信息【" + studentName + "(" + studentCode + ")" + "-" + basicCampusService.getById(campusId).getCampusName() + "】中的校区和学生所属班级信息【" + basicClazz.getClazzName() + "-" + basicCampusService.getById(basicClazz.getCampusId()).getCampusName() + "】中的校区不对应";
|
|
|
+ throw ExceptionResultEnum.ERROR.exception(exception);
|
|
|
}
|
|
|
}
|
|
|
if (SystemConstant.longNotNull(majorId)) {
|
|
|
if (!majorId.equals(basicClazz.getMajorId())) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("学生所属班级信息和学生信息中【专业】不对应");
|
|
|
+ String exception = "学生信息【" + studentName + "(" + studentCode + ")" + "-" + basicMajorService.getById(majorId).getName() + "】中的专业和学生所属班级信息【" + basicClazz.getClazzName() + "-" + basicMajorService.getById(basicClazz.getMajorId()).getName() + "】中的专业不对应";
|
|
|
+ throw ExceptionResultEnum.ERROR.exception(exception);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -340,7 +342,8 @@ public class BasicStudentServiceImpl extends ServiceImpl<BasicStudentMapper, Bas
|
|
|
}
|
|
|
if (SystemConstant.longNotNull(collegeId)) {
|
|
|
if (!collegeId.equals(basicMajor.getBelongOrgId())) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("学生所属专业信息和学生信息中【学院】不对应");
|
|
|
+ String exception = "学生信息【" + studentName + "(" + studentCode + ")" + "-" + sysOrgService.getById(collegeId).getName() + "】中的学院和学生所属专业信息【" + basicMajor.getName() + "-" + sysOrgService.getById(basicMajor.getBelongOrgId()).getName() + "】中的学院不对应";
|
|
|
+ throw ExceptionResultEnum.ERROR.exception(exception);
|
|
|
}
|
|
|
}
|
|
|
}
|