organization.getName(), organization.getParentId(), organization.getParentIds(), organization.getAvailable(), organization.getId());
return organization;
}
public void deleteOrganization(Long organizationId) {
Organization organization = findOne(organizationId);
final String deleteSelfSql = "delete from sys_organization where id=?";
jdbcTemplate.update(deleteSelfSql, organizationId);
final String deleteDescendantsSql = "delete from sys_organization where parent_ids like ?";
jdbcTemplate.update(deleteDescendantsSql, organization.makeSelfAsParentIds() + "%");
}