|
|
|
@ -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} |
|
|
|
|