|
|
|
@ -72,11 +72,14 @@ |
|
|
|
<if test="query.syncedFlag != null and query.syncedFlag != ''"> |
|
|
|
AND a.synced_flag = #{query.syncedFlag} |
|
|
|
</if> |
|
|
|
<if test="query.transactionId != null and query.transactionId != ''"> |
|
|
|
AND a.transaction_id LIKE '%' + #{query.transactionId} + '%' |
|
|
|
</if> |
|
|
|
<if test="query.startDate != null and query.startDate != ''"> |
|
|
|
AND a.transaction_date >= #{query.startDate} |
|
|
|
</if> |
|
|
|
<if test="query.endDate != null and query.endDate != ''"> |
|
|
|
AND a.transaction_date < DATEADD(DAY, 1, #{query.endDate}) |
|
|
|
AND a.transaction_date <= #{query.endDate} |
|
|
|
</if> |
|
|
|
ORDER BY a.transaction_date DESC, a.transaction_id DESC |
|
|
|
OFFSET #{query.offset} ROWS FETCH NEXT #{query.limit} ROWS ONLY |
|
|
|
@ -128,11 +131,14 @@ |
|
|
|
<if test="query.syncedFlag != null and query.syncedFlag != ''"> |
|
|
|
AND a.synced_flag = #{query.syncedFlag} |
|
|
|
</if> |
|
|
|
<if test="query.transactionId != null and query.transactionId != ''"> |
|
|
|
AND a.transaction_id LIKE '%' + #{query.transactionId} + '%' |
|
|
|
</if> |
|
|
|
<if test="query.startDate != null and query.startDate != ''"> |
|
|
|
AND a.transaction_date >= #{query.startDate} |
|
|
|
</if> |
|
|
|
<if test="query.endDate != null and query.endDate != ''"> |
|
|
|
AND a.transaction_date < DATEADD(DAY, 1, #{query.endDate}) |
|
|
|
AND a.transaction_date <= #{query.endDate} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
|