|
|
@ -90,7 +90,6 @@ public class BsOrganizationController { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (organization.getParentId() == null || organization.getCompanyId() == null |
|
|
|
if (organization.getParentId() == null || organization.getCompanyId() == null |
|
|
|
|| StringUtils.isBlank(organization.getName()) |
|
|
|
|| StringUtils.isBlank(organization.getName()) |
|
|
|
|| StringUtils.isBlank(organization.getAddress()) |
|
|
|
|
|
|
|
|| StringUtils.isBlank(organization.getPhone())) { |
|
|
|
|| StringUtils.isBlank(organization.getPhone())) { |
|
|
|
log.error("SecOrganizationController --> addOrganization() error!", "参数错误"); |
|
|
|
log.error("SecOrganizationController --> addOrganization() error!", "参数错误"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
@ -143,7 +142,6 @@ public class BsOrganizationController { |
|
|
|
|| organization.getParentId() == null |
|
|
|
|| organization.getParentId() == null |
|
|
|
|| organization.getCompanyId() == null |
|
|
|
|| organization.getCompanyId() == null |
|
|
|
|| StringUtils.isBlank(organization.getName()) |
|
|
|
|| StringUtils.isBlank(organization.getName()) |
|
|
|
|| StringUtils.isBlank(organization.getAddress()) |
|
|
|
|
|
|
|
|| StringUtils.isBlank(organization.getPhone())) { |
|
|
|
|| StringUtils.isBlank(organization.getPhone())) { |
|
|
|
log.error("SecOrganizationController --> updateOrganization() error!", "参数错误"); |
|
|
|
log.error("SecOrganizationController --> updateOrganization() error!", "参数错误"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
|