diff --git a/dxhy-core/src/main/resources/mapper/TDxCustomsRecordMapper.xml b/dxhy-core/src/main/resources/mapper/TDxCustomsRecordMapper.xml
index c90bb50a..a37f029a 100644
--- a/dxhy-core/src/main/resources/mapper/TDxCustomsRecordMapper.xml
+++ b/dxhy-core/src/main/resources/mapper/TDxCustomsRecordMapper.xml
@@ -1127,10 +1127,10 @@
t_dx_customs t inner join t_dx_customs_record r on t.customs_code = r.customs_code
where t.user_account = #{queryParams.userAccount}
- and t.gf_tax_no =#{queryParams.gfsh}
+ and r.gf_tax_no =#{queryParams.gfsh}
- and t.comp_code =#{queryParams.companyCode}
+ and (r.comp_code =#{queryParams.companyCode} or r.comp_code is null or r.comp_code = '')