diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
index da986f775..6479a685e 100644
--- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
@@ -313,13 +313,13 @@
from emis_tms_scan_record a
del_flag='0'
- and ( FIND_IN_SET(`bill_code`,#{billCode}) or FIND_IN_SET(`main_bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') )
+
+ and ( FIND_IN_SET(`bill_code`,#{billCode}) )
+
- and bl_sub_bill='1'
-
-
- and bl_sub_bill='0'
+ or FIND_IN_SET(`main_bill_code`,#{billCode})
+
ORDER BY