发票登记过滤

dev_ksck_axxyy
anthonywj 9 months ago
parent 97fae0e6cb
commit c3898425e6

@ -197,5 +197,9 @@ public class FilterOrderRequest extends ListPageRequest {
private Integer inPreInBack; private Integer inPreInBack;
/**
* 12
*/
private Integer invoiceRegStatus;
} }

@ -439,7 +439,7 @@
LEFT JOIN auth_dept ad ON io.deptCode = ad.CODE LEFT JOIN auth_dept ad ON io.deptCode = ad.CODE
LEFT JOIN auth_warehouse aw ON io.invCode = aw.CODE LEFT JOIN auth_warehouse aw ON io.invCode = aw.CODE
LEFT JOIN basic_corp bc ON io.fromCorp = bc.erpId 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> <where>
<if test="id != null and id != ''"> <if test="id != null and id != ''">
AND io.id = #{id} AND io.id = #{id}
@ -469,6 +469,12 @@
<if test="invCode != null and invCode != ''"> <if test="invCode != null and invCode != ''">
AND io.invCode = #{invCode} AND io.invCode = #{invCode}
</if> </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"> <if test="busType != null">
AND io.busType = #{busType} AND io.busType = #{busType}
</if> </if>

Loading…
Cancel
Save