|
|
|
@ -439,7 +439,7 @@
|
|
|
|
|
LEFT JOIN auth_dept ad ON io.deptCode = ad.CODE
|
|
|
|
|
LEFT JOIN auth_warehouse aw ON io.invCode = aw.CODE
|
|
|
|
|
LEFT JOIN basic_corp bc ON io.fromCorp = bc.erpId
|
|
|
|
|
LEFT JOIN io_order_detail_code dc ON io.billNo = dc.orderIdFk
|
|
|
|
|
left join io_order_invoice on io_order_invoice.orderIdFk = io.billNo
|
|
|
|
|
<where>
|
|
|
|
|
<if test="id != null and id != ''">
|
|
|
|
|
AND io.id = #{id}
|
|
|
|
@ -469,6 +469,12 @@
|
|
|
|
|
<if test="invCode != null and invCode != ''">
|
|
|
|
|
AND io.invCode = #{invCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invoiceRegStatus != null and invoiceRegStatus == 1">
|
|
|
|
|
AND io_order_invoice.id IS NULL
|
|
|
|
|
</if>
|
|
|
|
|
<if test="invoiceRegStatus != null and invoiceRegStatus == 2">
|
|
|
|
|
AND io_order_invoice.id IS not NULL
|
|
|
|
|
</if>
|
|
|
|
|
<if test="busType != null">
|
|
|
|
|
AND io.busType = #{busType}
|
|
|
|
|
</if>
|
|
|
|
|