<iftest="rzhType != null and rzhType != '' and rzhType != 'null' ">
<iftest="rzhType != null and rzhType != '' and rzhType != 'null' ">
and t.rzh_type = #{rzhType}
and t.rzh_type = #{rzhType}
</if>
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' ">
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.in_account_status = #{inAccountStatus}
and t.in_account_status = #{inAccountStatus}
</if>
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '0'.toString()">
and (t.in_account_status = '0' or t.in_account_status = '' or t.in_account_status is null)
</if>
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' ">
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' ">
and t.qs_type = #{qsfs}
and t.qs_type = #{qsfs}
</if>
</if>
@ -140,7 +143,7 @@
and t.posting_time = #{postingTime}
and t.posting_time = #{postingTime}
</if>
</if>
<iftest="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'">
<iftest="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'">
and t.image_id = #{imageId}
and t.image_id = #{imageNumber}
</if>
</if>
<iftest="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
<iftest="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' and qsfs != '99'">
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' and qsfs != '99'">
and qs_type = #{qsfs}
and qs_type = #{qsfs}
</if>
</if>
<iftest="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and sn_voucher_number = #{snVoucherNumber}
</if>
<iftest="postingTimeStart != null and postingTimeStart != '' and postingTimeStart != 'null' and postingTimeStart != '99' and postingTimeEnd != null and postingTimeEnd != '' and postingTimeEnd != 'null' and postingTimeEnd != '99'">
and posting_time between #{postingTimeStart} and #{postingTimeEnd}
</if>
<iftest="imageNumber != null and imageNumber != '' and imageNumber != 'null' and imageNumber != '99'">
and image_id = #{imageNumber}
</if>
<iftest="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and account_period = #{accountPeriod}
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and inaccount_status = #{inAccountStatus}
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '0'.toString()">
and (inaccount_status = '0' or inaccount_status = '' or inaccount_status is null)
</if>
<iftest="bzdh != null and bzdh != '' and bzdh != 'null' and badh != '99'">
and bzdh = #{bzdh}
</if>
<iftest="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode == '99'">
<iftest="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode == '99'">
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' and qsfs != '99'">
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' and qsfs != '99'">
and t.qs_type = #{qsfs}
and t.qs_type = #{qsfs}
</if>
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99'">
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.payment_status = #{inAccountStatus}
and t.inaccount_status = #{inAccountStatus}
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '0'.toString()">
and (t.inaccount_status = '0' or t.inaccount_status = '' or t.inaccount_status is null)
</if>
</if>
<iftest="inAccountMonth != null and inAccountMonth != null and inAccountMonth != '' and inAccountMonth != ''">
<iftest="inAccountMonth != null and inAccountMonth != null and inAccountMonth != '' and inAccountMonth != ''">
and DATE_FORMAT(t.payment_date,'%Y-%m') = #{inAccountMonth}
and DATE_FORMAT(t.payment_date,'%Y-%m') = #{inAccountMonth}
@ -308,14 +335,17 @@
<iftest="invoiceSource!=null and invoiceSource!='' and invoiceSource!='99'">
<iftest="invoiceSource!=null and invoiceSource!='' and invoiceSource!='99'">
and t.invoice_source = #{invoiceSource}
and t.invoice_source = #{invoiceSource}
</if>
</if>
<iftest="bzdh != null and bzdh != '' and bzdh != 'null' and badh != '99'">
and t.bzdh = #{bzdh}
</if>
<iftest="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
<iftest="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber}
and t.sn_voucher_number = #{snVoucherNumber}
</if>
</if>
<iftest="postingTime != null and postingTime != '' and postingTime != 'null' and postingTime != '99'">
<iftest="postingTimeEnd != null and postingTimeEnd != '' and postingTimeEnd != 'null' and postingTimeEnd != '99' and postingTimeStart != null and postingTimeStart != '' and postingTimeStart != 'null' and postingTimeStart != '99'">
and t.posting_time = #{postingTime}
and t.posting_time between #{postingTimeStart} and #{postingTimeEnd}
</if>
</if>
<iftest="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'">
<iftest="imageNumber != null and imageNumber != '' and imageNumber != 'null' and imageNumber != '99'">
and t.image_id = #{imageId}
and t.image_id = #{imageNumber}
</if>
</if>
<iftest="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
<iftest="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
<iftest="postingTimeEnd != null and postingTimeEnd != '' and postingTimeEnd != 'null' and postingTimeEnd != '99' and postingTimeStart != null and postingTimeStart != '' and postingTimeStart != 'null' and postingTimeStart != '99'">
and t.posting_time between #{postingTimeStart} and #{postingTimeEnd}
</if>
<iftest="imageNumber != null and imageNumber != '' and imageNumber != 'null' and imageNumber != '99'">
and t.image_id = #{imageNumber}
</if>
<iftest="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod}
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.inaccount_status = #{inAccountStatus}
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '0'.toString()">
and (t.inaccount_status = '0' or t.inaccount_status = '' or t.inaccount_status is null)
</if>
<iftest="bzdh != null and bzdh != '' and bzdh != 'null' and badh != '99'">
and t.bzdh = #{bzdh}
</if>
<iftest="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber}
</if>
<iftest="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode == '99'">
<iftest="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode == '99'">
<iftest="rzhType != null and rzhType != '' and rzhType != 'null' ">
<iftest="rzhType != null and rzhType != '' and rzhType != 'null' ">
and t.rzh_type = #{rzhType}
and t.rzh_type = #{rzhType}
</if>
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' ">
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.in_account_status = #{inAccountStatus}
and t.in_account_status = #{inAccountStatus}
</if>
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '0'.toString()">
and (t.in_account_status = '0' or t.in_account_status = '' or t.in_account_status is null)
</if>
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' ">
<iftest="qsfs != null and qsfs != '' and qsfs != 'null' ">