delete from cms_template where id=#{id} and company_id=#{companyId}