`id`,`tenant_id`,`parent_tenant_id`,`out_settle_no`,`merchant_id`,`b_tenant_id`,`pay_merchant_id`,`pay_merchant_mch_id`,`sharing_merchant_id`,`order_id`,`pay_vendor`,`pay_version`,`mch_type`,`pay_amount`,
`single_order_amount`,`single_order_id`,`pay_time_end`,`pay_time_start`,`transaction_id`,`sharing_order_no`,`type`,`point_deduction`,`receivers`,`error_msg`,`sharing_status`,`update_time`,`create_time`
where `tenant_id` = #{tenantId}
and `id` = #{id}
and `parent_tenant_id` = #{parentTenantId}
and `out_settle_no` = #{outSettleNo}
and `merchant_id` = #{merchantId}
and `b_tenant_id` = #{bTenantId}
and `pay_merchant_id` = #{payMerchantId}
and `pay_merchant_mch_id` = #{payMerchantMchId}
and `sharing_merchant_id` = #{sharingMerchantId}
and `order_id` = #{orderId}
and `single_order_id` = #{singleOrderId}
and `pay_vendor` = #{payVendor}
and `pay_version` = #{payVersion}
and `mch_type` = #{mchType}
and `type` = #{type}
and `pay_amount` = #{payAmount}
and `pay_time_end` = #{payTimeEnd}
and `pay_time_start` = #{payTimeStart}
and `transaction_id` = #{transactionId}
and `sharing_order_id` = #{sharingOrderId}
and `error_msg` like concat('%', #{errorMsg},'%')
and `sharing_status` = #{sharingStatus}
and `update_time` = #{updateTime}
and `create_time` = #{createTime}
and id in
#{idItem}
order by ${sortColumns}