`id`,`tenant_id`,`parent_tenant_id`,`coupon_order_id`,`pos_order_id`,`state` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `coupon_order_id` = #{couponOrderId} and `pos_order_id` = #{posOrderId} and `state` = #{state} and id in #{idItem} order by ${sortColumns}