select ext_id, company_id, name, type, status, sort from crm_customer_ext insert into crm_customer_ext company_id, name, type, status, sort, #{companyId}, #{name}, #{type}, #{status}, #{sort}, update crm_customer_ext company_id = #{companyId}, name = #{name}, type = #{type}, status = #{status}, sort = #{sort}, where ext_id = #{extId} delete from crm_customer_ext where ext_id = #{extId} delete from crm_customer_ext where ext_id in #{extId}