<iftest="qszt != null and qszt != '' and qszt != 'null' and qszt != '99'">
<iftest="companyCode != null and companyCode != '99' and companyCode != '88' and companyCode != '' and companyCode != 'null'">
and t.qs_status = #{qszt}
and t.comp_code = #{companyCode}
</if>
</if>
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' and qsfs != '99'">
<iftest="companyCode != null and companyCode != '' and companyCode == '88'">
and t.qs_type = #{qsfs}
and (t.comp_code = '' or t.comp_code is null)
</if>
</if>
<iftest="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'">
<iftest="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.qs_date between #{qsksrq} and #{qsjsrq}
and t.bzdh = #{bzdh}
</if>
</if>
<iftest="rzksrq != null and rzksrq != '' and rzksrq != 'null' and rzjsrq != null and rzjsrq != '' and rzjsrq != 'null'">
<iftest="bzr != null and bzr != '' and bzr != 'null'">
and t.rzh_date between #{rzksrq} and #{rzjsrq}
and t.bzr like concat('%',#{bzr},'%')
</if>
</if>
<iftest="rzzt != null and rzzt != '' and rzzt != 'null' and rzzt != '99'">
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.rzh_yesorno = #{rzzt}
and t.inaccount_status = #{inAccountStatus}
</if>
</if>
<iftest="rzclzt != null and rzclzt != '' and rzclzt != 'null' and rzclzt != '99'">
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '0'.toString()">
and t.auth_status = #{rzclzt}
and (t.inaccount_status = '0' or t.inaccount_status = '' or t.inaccount_status is null)
</if>
</if>
<iftest="rzlx != null and rzlx != '' and rzlx != 'null' and rzlx != '99'">
<if
and t.bdk_status = #{rzlx}
test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' and invoiceStatus != '99'">
and t.invoice_status = #{invoiceStatus}
</if>
<iftest="qszt != null and qszt != '' and qszt != 'null' and qszt != '99'">
and t.qs_status = #{qszt}
</if>
<iftest="voucherNumber != null and voucherNumber != ''">
and t.voucher_number like concat('%',concat(#{voucherNumber},'%'))
</if>
<iftest="rzzt != null and rzzt != '' and rzzt != 'null' and rzzt != '99'">
and t.rzh_yesorno = #{rzzt}
</if>
</if>
<if
<if
test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99' ">
test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99'">
and t.invoice_type = #{invoiceType}
and t.invoice_type = #{invoiceType}
</if>
</if>
<iftest="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
<iftest="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
and t.invoice_source = #{invoiceSource}
and t.invoice_source = #{invoiceSource}
</if>
</if>
<if
<if
test="qsfs != null and qsfs != '' and qsfs != 'null' and qsfs != '99' ">
test="fprzfs != null and fprzfs != '' and fprzfs != 'null' and fprzfs != '99'">
and t.qs_type = #{qsfs}
and t.rzh_type = #{fprzfs}
</if>
<if
test="fprzclzt != null and fprzclzt != '' and fprzclzt != 'null' and fprzclzt != '99'">
and t.auth_status = #{fprzclzt}
</if>
<iftest="rzlx != null and rzlx != '' and rzlx != 'null' and rzlx != '99'">
and t.bdk_status = #{rzlx}
</if>
</if>
<iftest="xfmc != null and xfmc != '' and xfmc != 'null' ">
<iftest="xfmc != null and xfmc != '' and xfmc != 'null' ">
and t.xf_name like CONCAT(#{xfmc},'%')
and t.xf_name like CONCAT(#{xfmc},'%')
@ -89,32 +111,36 @@
<iftest="taxAmountMax!=null and taxAmountMax!=''">
<iftest="taxAmountMax!=null and taxAmountMax!=''">
and t.tax_amount <= #{taxAmountMax}
and t.tax_amount <= #{taxAmountMax}
</if>
</if>
<if
test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
<iftest="qsr != null and qsr != '' and qsr != 'null' ">
and t.invoice_no = #{invoiceNo}
and t.qs_name = #{qsr}
</if>
<iftest="skssq != null and skssq != '' and skssq != 'null' ">
and t.rzh_belong_date = #{skssq}
</if>
</if>
<iftest="rzksrq != null and rzjsrq != null ">
<iftest="rzhr != null and rzhr != '' and rzhr != 'null' ">
and t.rzh_date between #{rzksrq} and #{rzjsrq}
and t.confirm_user like CONCAT(#{rzhr},'%')
</if>
</if>
<iftest="qsjsrq != null and qsjsrq != null ">
<iftest="settlementNo != null and settlementNo != ''">
and t.qs_date between #{qsksrq} and #{qsjsrq}
and t.settlement_no like concat(#{settlementNo},'%')
</if>
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' ">
and t.qs_type = #{qsfs}
</if>
</if>
<iftest="glzt != null and glzt != '' and glzt != 'null' and glzt != '99'">
<iftest="glzt != null and glzt != '' and glzt != 'null' and glzt != '99'">
and t.glzt = #{glzt}
and t.glzt = #{glzt}
</if>
</if>
<iftest="rzhr != null and rzhr != '' and rzhr != 'null' ">
<iftest="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
and t.confirm_user like CONCAT(#{rzhr},'%')
and t.invoice_no = #{invoiceNo}
</if>
</if>
<iftest="qsr != null and qsr != '' and qsr != 'null' ">
<iftest="rzksrq != null and rzjsrq != null and rzksrq != '' and rzjsrq != ''">
and t.qs_name = #{qsr}
and t.rzh_date between #{rzksrq} and #{rzjsrq}
</if>
</if>
<iftest="businessCode != '99' and businessCode != null and businessCode != '' and businessCode != 'null' ">
<iftest="skssq != null and skssq != '' and skssq != 'null' ">
and t.rzh_belong_date = #{skssq}
</if>
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' and qsfs != '99'">
and t.qs_type = #{qsfs}
</if>
<iftest="qsksrq != null and qsjsrq != null and qsksrq != '' and qsjsrq != ''">
and t.qs_date between #{qsksrq} and #{qsjsrq}
</if>
<if
test="businessCode != '99' and businessCode != null and businessCode != '' and businessCode != 'null' ">
and t.dept_id = #{businessCode}
and t.dept_id = #{businessCode}
</if>
</if>
<iftest="businessCode==''">
<iftest="businessCode==''">
@ -127,16 +153,21 @@
</foreach>
</foreach>
) or (t.dept_id is null or t.dept_id='' or t.dept_id='99'))
) or (t.dept_id is null or t.dept_id='' or t.dept_id='99'))
</if>
</if>
<iftest='inAccountStatus !=null and inAccountStatus!="" and inAccountStatus!="99"'>
<!-- <if test='inAccountStatus!=null and inAccountStatus != "" and inAccountStatus != "99"'>-->
and t.in_account_status = #{inAccountStatus}
<!-- and t.in_account_status = #{inAccountStatus}-->
<!-- </if>-->
<iftest="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber}
</if>
</if>
<iftest="company != null and company !=''">
<iftest="postingTimeStart != null and postingTimeStart != '' and postingTimeStart != 'null' and postingTimeStart != '99' and postingTimeEnd != null and postingTimeEnd != '' and postingTimeEnd != 'null' and postingTimeEnd != '99'">
and t.company = #{company}
and posting_time between #{postingTimeStart} and #{postingTimeEnd}
</if>
</if>
<iftest="voucherNumber!=null and voucherNumber!=''and voucherNumber!='null'">
<iftest="imageNumber != null and imageNumber != '' and imageNumber != 'null' and imageNumber != '99'">
and t.voucher_number like concat('%',concat(#{voucherNumber},'%'))
and t.image_id = #{imageNumber}
</if>
<iftest="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">