<iftest="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh}
</if>
<iftest="bzr != null and bzr != '' and bzr != 'null'">
and t.bzr like concat('%',#{bzr},'%')
</if>
<iftest="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' ">
and t.inaccount_status = #{inAccountStatus}
</if>
<iftest="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.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 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>
<if
test="yczt != null and yczt != '' and yczt != 'null' and yczt != '99' ">
test="yczt != null and yczt != '' and yczt != 'null' ">
and t.invoice_status = #{yczt}
</if>
<iftest="qszt != null and qszt != '' and qszt != 'null' and yczt != '99' ">
<iftest="qszt != null and qszt != '' and qszt != 'null' ">
and t.qs_status = #{qszt}
</if>
<iftest="rzzt != null and rzzt != '' and rzzt != 'null' and rzzt != '99' ">
<iftest="rzzt != null and rzzt != '' and rzzt != 'null' and rzzt != 3">
and t.rzh_yesorno = #{rzzt}
</if>
<iftest="rzzt != null and rzzt == 3">
and (t.rzh_yesorno = '2' OR t.rzh_yesorno = '1')
</if>
<iftest="xfmc != null and xfmc != '' and xfmc != 'null' ">
and t.xf_name like CONCAT(#{xfmc},'%')
</if>
<if
test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
<iftest="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
and t.invoice_no = #{invoiceNo}
</if>
<iftest="company != null and company !=''">
and t.company = #{company}
</if>
<iftest="businessCode != '99' and businessCode != null and businessCode != '' and businessCode != 'null' ">