🐛 修复账单截止日当天数据漏查

This commit is contained in:
caojia
2026-10-21 09:23:59 +08:00
parent c30c88bbe8
commit 501056bb17
@@ -610,7 +610,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach> </foreach>
) )
</if> </if>
and p.biz_date &lt;= #{cutoffDate} and p.biz_date &lt; DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY)
and p.ar_bill_status in and p.ar_bill_status in
<foreach collection="arBillStatuses" item="status" open="(" separator="," close=")"> <foreach collection="arBillStatuses" item="status" open="(" separator="," close=")">
#{status} #{status}
@@ -653,7 +653,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach> </foreach>
) )
</if> </if>
and p.biz_date &lt;= #{cutoffDate} and p.biz_date &lt; DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY)
and p.ar_bill_status in and p.ar_bill_status in
<foreach collection="arBillStatuses" item="status" open="(" separator="," close=")"> <foreach collection="arBillStatuses" item="status" open="(" separator="," close=")">
#{status} #{status}
@@ -669,7 +669,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and p.customer_code like concat('%', #{customerCode}, '%') and p.customer_code like concat('%', #{customerCode}, '%')
</if> </if>
<include refid="orderIdentifierCondition"/> <include refid="orderIdentifierCondition"/>
and p.biz_date &lt;= #{cutoffDate} and p.biz_date &lt; DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY)
and p.ar_bill_status in and p.ar_bill_status in
<foreach collection="arBillStatuses" item="status" open="(" separator="," close=")"> <foreach collection="arBillStatuses" item="status" open="(" separator="," close=")">
#{status} #{status}
@@ -732,7 +732,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectPrcOrderBillByCustomerCutoffAndIds" resultMap="PrcOrderBillArSourceResult"> <select id="selectPrcOrderBillByCustomerCutoffAndIds" resultMap="PrcOrderBillArSourceResult">
<include refid="selectArBillSourceVo"/> <include refid="selectArBillSourceVo"/>
where p.customer_id = #{customerId} where p.customer_id = #{customerId}
and p.biz_date &lt;= #{cutoffDate} and p.biz_date &lt; DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY)
and p.ar_bill_status in and p.ar_bill_status in
<foreach collection="arBillStatuses" item="status" open="(" separator="," close=")"> <foreach collection="arBillStatuses" item="status" open="(" separator="," close=")">
#{status} #{status}