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