<iftest="bzdh != null and bzdh != '' and bzdh != 'null' and bzdh != '99'">
and t.bzdh = #{bzdh}
</if>
<iftest="bzdh == null or bzdh == '' or bzdh == 'null' or bzdh == '99'">
and t.bzdh is not null
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.inaccount_status = #{inAccountStatus}
</if>
@ -559,6 +556,24 @@
<iftest="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod}
</if>
<iftest="sortPzbh == '1'">
order by t.sn_voucher_number desc
</if>
<iftest="sortPzbh == '2'">
order by t.sn_voucher_number
</if>
<iftest="sortBzdh == '1'">
order by t.bzdh desc
</if>
<iftest="sortBzdh == '2'">
order by t.bzdh
</if>
<iftest="sortKprq == '1'">
order by t.invoice_date desc
</if>
<iftest="sortKprq == '2'">
order by t.invoice_date
</if>
<iftest="taxRate!=null and taxRate!='' and taxRate!='多税率' and taxRate != null and taxRate !='99'">
and t.tax_rate = #{taxRate}
</if>
@ -1093,9 +1108,6 @@
<iftest="bzdh != null and bzdh != '' and bzdh != 'null' and bzdh != '99'">
and t.bzdh = #{bzdh}
</if>
<iftest="bzdh == ''">
and t.bzdh is not null and t.inaccount_status = '1'
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.inaccount_status = #{inAccountStatus}
</if>
@ -1168,12 +1180,6 @@
<iftest="eleInvoiceNo!=null and eleInvoiceNo!='' and eleInvoiceNo!='null'">
and t.ele_invoice_no = #{eleInvoiceNo}
</if>
<iftest="taxRate!=null and taxRate!='' and taxRate!='多税率' and taxRate != null and taxRate !='99'">
and t.tax_rate = #{taxRate}
</if>
<iftest="taxRate=='多税率'">
and t.tax_rate like '%,%'
</if>
<if
test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'">
order by t.qs_date desc,t.invoice_date desc
@ -1337,9 +1343,6 @@
<iftest="bzdh != null and bzdh != '' and bzdh != 'null' and bzdh != '99'">
and t.bzdh = #{bzdh}
</if>
<iftest="bzdh == ''">
and t.bzdh is not null and t.inaccount_status = '1'
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.inaccount_status = #{inAccountStatus}
</if>
@ -1412,12 +1415,6 @@
<iftest="eleInvoiceNo!=null and eleInvoiceNo!='' and eleInvoiceNo!='null'">
and t.ele_invoice_no = #{eleInvoiceNo}
</if>
<iftest="taxRate!=null and taxRate!='' and taxRate!='多税率' and taxRate != null and taxRate !='99'">