This commit is contained in:
磷叶 2025-03-07 17:59:18 +08:00
parent 1b7916469a
commit 0fd1bccca4

View File

@ -66,6 +66,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="query.passDate != null"> and date(bt.pass_time) = #{query.passDate}</if> <if test="query.passDate != null"> and date(bt.pass_time) = #{query.passDate}</if>
<if test="query.expireTimeStart != null"> and bt.expire_time &gt;= #{query.expireTimeStart}</if> <if test="query.expireTimeStart != null"> and bt.expire_time &gt;= #{query.expireTimeStart}</if>
<if test="query.expireTimeEnd != null"> and bt.expire_time &lt;= #{query.expireTimeEnd}</if> <if test="query.expireTimeEnd != null"> and bt.expire_time &lt;= #{query.expireTimeEnd}</if>
<if test="query.ownerId != null">
and btm.user_id = #{query.ownerId}
</if>
<if test="query.passDateRange != null and query.passDateRange.size() > 0"> <if test="query.passDateRange != null and query.passDateRange.size() > 0">
and date(bt.pass_time) >= #{query.passDateRange[0]} and date(bt.pass_time) >= #{query.passDateRange[0]}
and date(bt.pass_time) &lt;= #{query.passDateRange[1]} and date(bt.pass_time) &lt;= #{query.passDateRange[1]}