|
@@ -456,7 +456,7 @@ public class OrgController extends ControllerSupport {
|
|
|
}
|
|
|
|
|
|
OrgEntity orgEntity = orgRepo.findByParentIdIsNullAndCode(domain.getCode());
|
|
|
- if (null == orgEntity) {
|
|
|
+ if (null != orgEntity) {
|
|
|
throw new StatusException("B-150001", "机构代码已存在");
|
|
|
}
|
|
|
|