|
@@ -62,16 +62,16 @@ public class HandleSyncCloudServiceProvider extends ControllerSupport
|
|
|
Boolean enable = req.getEnable();
|
|
|
|
|
|
if (StringUtils.isBlank(courseName)) {
|
|
|
- throw new StatusException("B-100001", "courseName is null");
|
|
|
+ throw new StatusException("100001", "courseName is null");
|
|
|
}
|
|
|
if (null == courseId) {
|
|
|
- throw new StatusException("B-100002", "courseId is null");
|
|
|
+ throw new StatusException("100002", "courseId is null");
|
|
|
}
|
|
|
if (StringUtils.isBlank(courseLevel)) {
|
|
|
- throw new StatusException("B-100003", "courseLevel is null");
|
|
|
+ throw new StatusException("100003", "courseLevel is null");
|
|
|
}
|
|
|
if (null == rootOrgId) {
|
|
|
- throw new StatusException("B-100004", "rootOrgId is null");
|
|
|
+ throw new StatusException("100004", "rootOrgId is null");
|
|
|
}
|
|
|
|
|
|
examStudentRepo.updateCourse(courseName, courseLevel, courseId);
|
|
@@ -98,10 +98,10 @@ public class HandleSyncCloudServiceProvider extends ControllerSupport
|
|
|
String studentCode = req.getStudentCode();
|
|
|
|
|
|
if (StringUtils.isBlank(name)) {
|
|
|
- throw new StatusException("B-100001", "name is null");
|
|
|
+ throw new StatusException("100001", "name is null");
|
|
|
}
|
|
|
if (null == id) {
|
|
|
- throw new StatusException("B-100002", "id is null");
|
|
|
+ throw new StatusException("100002", "id is null");
|
|
|
}
|
|
|
|
|
|
examStudentRepo.updateStudent(name, studentCode, id);
|