🐛 结束日期为月末时,查询不到数据问题修复

This commit is contained in:
ronger 2022-01-05 20:02:44 +08:00
parent 02bfeefd5b
commit f3c1969edc

View File

@ -18,7 +18,7 @@
<select id="selectTransactionRecords" resultMap="DTOResultMap">
select * from forest_transaction_record ftr
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
and transaction_time between str_to_date(#{startDate}, '%Y-%m-%d') and str_to_date(#{endDate}, '%Y-%m-%d') + interval 1 day
order by transaction_time desc
</select>
<select id="existsWithBankAccountAndFunds" resultType="java.lang.Boolean">