|
@@ -76,6 +76,9 @@ public class TBOrgController {
|
|
if (Objects.isNull(tbOrg.getCode()) || Objects.equals(tbOrg.getCode(), "")) {
|
|
if (Objects.isNull(tbOrg.getCode()) || Objects.equals(tbOrg.getCode(), "")) {
|
|
throw new BusinessException(ExceptionResultEnum.ORG_CODE_IS_NULL);
|
|
throw new BusinessException(ExceptionResultEnum.ORG_CODE_IS_NULL);
|
|
}
|
|
}
|
|
|
|
+ if (Objects.isNull(tbOrg.getName()) || Objects.equals(tbOrg.getName(), "")) {
|
|
|
|
+ throw new BusinessException(ExceptionResultEnum.ORG_NAME_IS_NULL);
|
|
|
|
+ }
|
|
if (Objects.nonNull(tbOrg.getCode()) && Objects.equals(tbOrg.getCode().toUpperCase(), SystemConstant.ADMIN)) {
|
|
if (Objects.nonNull(tbOrg.getCode()) && Objects.equals(tbOrg.getCode().toUpperCase(), SystemConstant.ADMIN)) {
|
|
throw new BusinessException("admin为超级管理员专属编码,请重新输入");
|
|
throw new BusinessException("admin为超级管理员专属编码,请重新输入");
|
|
}
|
|
}
|