🐛 修复账单截止日当天数据漏查
This commit is contained in:
@@ -610,7 +610,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</foreach>
|
</foreach>
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
and p.biz_date <= #{cutoffDate}
|
and p.biz_date < 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 <= #{cutoffDate}
|
and p.biz_date < 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 <= #{cutoffDate}
|
and p.biz_date < 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 <= #{cutoffDate}
|
and p.biz_date < 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}
|
||||||
|
|||||||
Reference in New Issue
Block a user