This commit is contained in:
linfso 2025-03-02 21:47:06 +08:00
parent 4fdbaf4f02
commit 9b3d8ecd9e

View File

@ -2327,15 +2327,15 @@
AND a.bl_profit = '0'
AND a.order_status != '0'
AND a.order_status != '2'
AND ( a.problem_type is null or (a.problem_type is not null and (a.problem_type != 173 and a.problem_type != 170 and a.problem_type != 151) ) )
<if test="params.beginDate != null and params.beginDate != ''">
and a.send_date <![CDATA[ >= ]]> #{params.beginDate}
</if>
<if test="params.endDate != null and params.endDate != ''">
and a.send_date <![CDATA[ <= ]]> #{params.endDate}
and not EXISTS (
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` in(173,170,151)
)
<if test="params.billMonth != null and params.billMonth != ''">
and DATE_FORMAT(a.send_date,'%Y%m')= #{params.billMonth}
</if>
ORDER BY a.send_date DESC
LIMIT 1000
LIMIT 5000
</select>