`id`,`order_id`,`tenant_id`,`parent_tenant_id`,`user_phone`,`user_id`,
`product_name`,`num`,`price`,`payment`,`payment_time`,`pay_way`,
`gym_name`,
`create_date`,`update_date`
where 1 = 1
and `id` = #{id}
and `order_id` = #{orderId}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `user_phone` like concat('%', #{userPhone},'%')
and `user_id` = #{userId}
and `product_name` like concat('%', #{productName},'%')
and `payment_time` >= #{startDate}
and `payment_time` <= #{endDate}
and `pay_way` like concat('%', #{payWay},'%')
and `id` in
#{idItem}
order by ${sortColumns}