🐛 结束日期为月末时,查询不到数据问题修复
This commit is contained in:
parent
02bfeefd5b
commit
f3c1969edc
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user