demand: TMS系统 - 漏组批次订单查询 - 去除只判断前五天的组批次的数据

committer: heyu
This commit is contained in:
aike 2025-11-28 13:35:22 +08:00
parent e7bd820e8c
commit 1c267a8d61

View File

@ -3933,9 +3933,9 @@
<if test="lineCode != null and lineCode != ''"> <if test="lineCode != null and lineCode != ''">
and a.trans_line_type = #{lineCode} and a.trans_line_type = #{lineCode}
</if> </if>
and DATE_FORMAT(a.send_date, '%Y-%m-%d') <![CDATA[ >= ]]> '2025-01-01' -- and DATE_FORMAT(a.send_date, '%Y-%m-%d') <![CDATA[ >= ]]> '2025-01-01'
and DATE_FORMAT(a.send_date, '%Y-%m-%d') <![CDATA[ <= ]]> DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 7 DAY), -- and DATE_FORMAT(a.send_date, '%Y-%m-%d') <![CDATA[ <= ]]> DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 7 DAY),
'%Y-%m-%d') -- '%Y-%m-%d')
and ((a.virtual_remark is null or a.virtual_remark = '' or a.virtual_remark = ' ')or a.receive_country != and ((a.virtual_remark is null or a.virtual_remark = '' or a.virtual_remark = ' ')or a.receive_country !=
'0095') '0095')
and a.order_status not in ('0','2') and a.order_status not in ('0','2')