diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
index 531e7ab71..8c4f45f78 100644
--- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
@@ -1983,6 +1983,17 @@
+
+
+
+ and (a.data_from is null or a.data_from = '' or a.data_from = 'tms')
+
+
+ and a.data_from = #{dataFrom}
+
+
+
+
and cust_order_id=#{custOrderId}
and bill_code_sub like concat('%', #{billCodeSub}, '%')
and order_status=#{orderStatus}