`id`,`tenant_id`,`parent_tenant_id`,`mch_id`,`sub_mch_id`,`sub_app_id`,`api_key`,`merchant_api_key`,`notify_url`,`notify_token`,`cert_path`,
`merchant_cert_path`,`type`,`share`,`rate`,`real_rate`,
`service_id`,`pay_score_notify_url`,`api_v3_key`,`cert_serial_no`,`private_key_path`,`private_cert_path`,`merchant_key_path`,`merchant_apiv3_key`
where 1 = 1
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `mch_id` = #{mchId}
and `sub_mch_id` = #{subMchId}
and `api_key` like concat('%', #{apiKey},'%')
and `notify_url` like concat('%', #{notifyUrl},'%')
and `cert_path` like concat('%', #{certPath},'%')
and `type` = #{type}
and `share` = #{share}
and `rate` = #{rate}
and `real_rate` = #{realRate}
and id in
#{idItem}
order by ${sortColumns}