`id`,`tenant_id`,`parent_tenant_id`,`pos_order_no`,`type`,`order_status`,`bu_user_id`,`create_date`,`update_date`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `pos_order_no` like concat('%', #{posOrderNo},'%')
and `type` = #{type}
and `order_status` = #{orderStatus}
and `bu_user_id` = #{buUserId}
and `payment_type` = #{paymentType}
and `payment` = #{payment}
and `create_date` = #{createDate}
and `update_date` = #{updateDate}
and id in
#{idItem}
order by ${sortColumns}