🐛 按当天截止时间筛选账单订单

(cherry picked from commit 1f0d757e29)
This commit is contained in:
caojia
2026-10-30 15:55:12 +08:00
parent 8d4e3363ae
commit 6b111088c8
@@ -649,10 +649,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="arBillCutoffDateCondition"> <sql id="arBillCutoffDateCondition">
<choose> <choose>
<when test="dateType != null and dateType == 'PICKUP_DATE'"> <when test="dateType != null and dateType == 'PICKUP_DATE'">
and p.pickup_date &lt; DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY) and p.pickup_date &lt;= CONCAT(DATE_FORMAT(#{cutoffDate}, '%Y-%m-%d'), ' 23:59:59')
</when> </when>
<otherwise> <otherwise>
and p.biz_date &lt; DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY) and p.biz_date &lt;= CONCAT(DATE_FORMAT(#{cutoffDate}, '%Y-%m-%d'), ' 23:59:59')
</otherwise> </otherwise>
</choose> </choose>
</sql> </sql>