diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
index bd3452f28..8545f5e7c 100644
--- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
@@ -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) ) )
-
- and a.send_date = ]]> #{params.beginDate}
-
-
- and a.send_date #{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)
+ )
+
+ and DATE_FORMAT(a.send_date,'%Y%m')= #{params.billMonth}
+
ORDER BY a.send_date DESC
- LIMIT 1000
+ LIMIT 5000