🐛 交易记录查询问题修复

This commit is contained in:
ronger 2021-12-29 12:00:25 +08:00
parent e966cf01f2
commit 42b59cf6dd

View File

@ -17,7 +17,7 @@
</update>
<select id="selectTransactionRecords" resultMap="DTOResultMap">
select * from forest_transaction_record ftr
where form_bank_account = #{bankAccount} or to_bank_account = #{bankAccount}
where (form_bank_account = #{bankAccount} or to_bank_account = #{bankAccount})
and transaction_time between str_to_date(#{startDate}, '%Y-%m-%d') and str_to_date(#{endDate}, '%Y-%m-%d') + 1
order by transaction_time desc
</select>