diff --git a/dxhy-core/src/main/java/com/dxhy/core/controller/ExcelController.java b/dxhy-core/src/main/java/com/dxhy/core/controller/ExcelController.java
index 5fe36973..d37ad1a6 100644
--- a/dxhy-core/src/main/java/com/dxhy/core/controller/ExcelController.java
+++ b/dxhy-core/src/main/java/com/dxhy/core/controller/ExcelController.java
@@ -187,7 +187,9 @@ public class ExcelController extends AbstractController {
if (StringUtils.isNotBlank(condition)) {
JSONObject prams = JSONObject.parseObject(condition);
String gfsh = prams.getString("gfsh");
+ String companyCode = prams.getString("companyCode");
prams.put("business", getUserInfo().getBusiness());
+ prams.put("companyCode", companyCode);
// 非查验综合查询、查验明细导出处理
if (!"30".equals(serviceType) && !"29".equals(serviceType)) {
diff --git a/dxhy-core/src/main/resources/mapper/QsxxMapper.xml b/dxhy-core/src/main/resources/mapper/QsxxMapper.xml
index aa761cd0..cde4c27d 100644
--- a/dxhy-core/src/main/resources/mapper/QsxxMapper.xml
+++ b/dxhy-core/src/main/resources/mapper/QsxxMapper.xml
@@ -39,6 +39,9 @@
and t.gf_tax_no = #{gfsh}
+
+ and (r.comp_code = #{companyCode} or r.comp_code = '' or r.comp_code is null)
+
and t.voucher_number like concat('%',concat(#{voucherNumber},'%'))