|
@@ -103,12 +103,18 @@ public class ExamSiteController extends ControllerSupport {
|
|
Long rootOrgId = accessUser.getRootOrgId();
|
|
Long rootOrgId = accessUser.getRootOrgId();
|
|
|
|
|
|
String code = domain.getCode();
|
|
String code = domain.getCode();
|
|
|
|
+ Long orgId = domain.getOrgId();
|
|
|
|
+
|
|
if (StringUtils.isBlank(code)) {
|
|
if (StringUtils.isBlank(code)) {
|
|
throw new StatusException("B-620001", "code is blank");
|
|
throw new StatusException("B-620001", "code is blank");
|
|
}
|
|
}
|
|
- ExamSiteEntity course = examSiteRepo.findByRootOrgIdAndCode(rootOrgId, code);
|
|
|
|
- if (null != course) {
|
|
|
|
- throw new StatusException("B-620002", "考点代码已被占用");
|
|
|
|
|
|
+ if (null == orgId) {
|
|
|
|
+ throw new StatusException("B-620002", "orgId is null");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ ExamSiteEntity es = examSiteRepo.findByOrgIdAndCode(rootOrgId, code);
|
|
|
|
+ if (null != es) {
|
|
|
|
+ throw new StatusException("B-620003", "考点代码已被占用");
|
|
}
|
|
}
|
|
|
|
|
|
ExamSiteInfo info = new ExamSiteInfo();
|
|
ExamSiteInfo info = new ExamSiteInfo();
|