修改listOtherInvoice的查询动态sql

release
yishiqihuasheng 2 years ago
parent 59730dc930
commit f8bad7813d
  1. 20
      dxhy-extend/src/main/resources/mapper/ExtInvoicePoolMapper.xml

@ -337,17 +337,29 @@
<if test="qsfs != null and qsfs != '' and qsfs != 'null' and qsfs != '99'"> <if test="qsfs != null and qsfs != '' and qsfs != 'null' and qsfs != '99'">
AND qs_type = #{qsfs} AND qs_type = #{qsfs}
</if> </if>
<!-- <if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">-->
<!-- and t.sn_voucher_number = #{snVoucherNumber}-->
<!-- </if>-->
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'"> <if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'">
and t.sn_voucher_number = #{snVoucherNumber} and sn_voucher_number = #{snVoucherNumber}
</if> </if>
<!-- <if test="postingTime != null and postingTime != '' and postingTime != 'null' and postingTime != '99'">-->
<!-- and t.posting_time = #{postingTime}-->
<!-- </if>-->
<if test="postingTime != null and postingTime != '' and postingTime != 'null' and postingTime != '99'"> <if test="postingTime != null and postingTime != '' and postingTime != 'null' and postingTime != '99'">
and t.posting_time = #{postingTime} and posting_time = #{postingTime}
</if> </if>
<!-- <if test="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'">-->
<!-- and t.image_id = #{imageId}-->
<!-- </if>-->
<if test="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'"> <if test="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'">
and t.image_id = #{imageId} and image_id = #{imageId}
</if> </if>
<!-- <if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">-->
<!-- and t.account_period = #{accountPeriod}-->
<!-- </if>-->
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> <if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod} and account_period = #{accountPeriod}
</if> </if>
GROUP BY uuid having min(create_date) GROUP BY uuid having min(create_date)
ORDER BY create_date DESC ORDER BY create_date DESC

Loading…
Cancel
Save