p.`id`,p.`tenant_id`,p.`parent_tenant_id`,p.`merchant_id`,p.`pay_way`,p.`pay_type`,p.`amount_detail`,p.`remain_amount`,p.`operation_type`,p.`operator`,p.`create_time`,m.`name` merchant_name
where 1 = 1
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and p.`id` = #{id}
and p.`merchant_id` = #{merchantId}
and p.`pay_type` = #{payType}
and p.`pay_way` = #{payWay}
and p.`operation_type` = #{operationType}
and m.`name` like concat('%',#{merchantName},'%')
and p.id in
#{idItem}
order by ${sortColumns}