|
|
@@ -133,6 +133,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by oi.create_time DESC limit 1
|
|
|
) = 4
|
|
|
</if>
|
|
|
+ <if test="invoiceStatus != null and invoiceStatus == 5">
|
|
|
+ AND (SELECT
|
|
|
+ count(oi.invoice_id)
|
|
|
+ FROM
|
|
|
+ order_invoice_order oio
|
|
|
+ LEFT JOIN order_invoice oi ON oio.invoice_id = oi.invoice_id
|
|
|
+ WHERE
|
|
|
+ oio.order_sn = u.handle_order_sn
|
|
|
+ AND (oi.wash_status is null or oi.wash_status = 1)
|
|
|
+ ) = 0
|
|
|
+ </if>
|
|
|
ORDER BY u.create_time DESC
|
|
|
</select>
|
|
|
|