🐛 修复账单截止日当天数据漏查
This commit is contained in:
@@ -610,7 +610,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
and p.biz_date <= #{cutoffDate}
|
||||
and p.biz_date < DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY)
|
||||
and p.ar_bill_status in
|
||||
<foreach collection="arBillStatuses" item="status" open="(" separator="," close=")">
|
||||
#{status}
|
||||
@@ -653,7 +653,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
and p.biz_date <= #{cutoffDate}
|
||||
and p.biz_date < DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY)
|
||||
and p.ar_bill_status in
|
||||
<foreach collection="arBillStatuses" item="status" open="(" separator="," close=")">
|
||||
#{status}
|
||||
@@ -669,7 +669,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and p.customer_code like concat('%', #{customerCode}, '%')
|
||||
</if>
|
||||
<include refid="orderIdentifierCondition"/>
|
||||
and p.biz_date <= #{cutoffDate}
|
||||
and p.biz_date < DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY)
|
||||
and p.ar_bill_status in
|
||||
<foreach collection="arBillStatuses" item="status" open="(" separator="," close=")">
|
||||
#{status}
|
||||
@@ -732,7 +732,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectPrcOrderBillByCustomerCutoffAndIds" resultMap="PrcOrderBillArSourceResult">
|
||||
<include refid="selectArBillSourceVo"/>
|
||||
where p.customer_id = #{customerId}
|
||||
and p.biz_date <= #{cutoffDate}
|
||||
and p.biz_date < DATE_ADD(#{cutoffDate}, INTERVAL 1 DAY)
|
||||
and p.ar_bill_status in
|
||||
<foreach collection="arBillStatuses" item="status" open="(" separator="," close=")">
|
||||
#{status}
|
||||
|
||||
Reference in New Issue
Block a user