修改签收列表查询invoice_type动态sql查询条件

release
yishiqihuasheng 2 years ago
parent e94bdaa8cd
commit 12215e888b
  1. 19
      dxhy-sign/src/main/resources/mapper/SignInvoiceMapper.xml

@ -115,16 +115,17 @@
<if test="gfsh != null and gfsh != '' and gfsh != 'null' and gfsh != '99' ">
and t.gf_tax_no = #{gfsh}
</if>
<!--
<!-- <if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' ">-->
<!-- and t.invoice_type = #{invoiceType}-->
<!-- </if>-->
<!-- <if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType == '14' ">-->
<!-- and (r.invoice_type = '14' or (r.invoice_type = '32' and r.lq_tdyslxDm='08') )-->
<!-- </if>-->
<!-- <if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType == '32' ">-->
<!-- and r.invoice_type = #{invoiceType} and r.lq_tdyslxDm!='08'-->
<!-- </if>-->
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' ">
and t.invoice_type = #{invoiceType}
</if>
-->
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType == '14' ">
and (r.invoice_type = '14' or (r.invoice_type = '32' and r.lq_tdyslxDm='08') )
</if>
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType == '32' ">
and r.invoice_type = #{invoiceType} and r.lq_tdyslxDm!='08'
and r.invoice_type = #{invoiceType}
</if>
<if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
and t.invoice_no = #{invoiceNo}

Loading…
Cancel
Save