From cc4bfc910bb9ba0066e785673c8eb75df9fcce4f Mon Sep 17 00:00:00 2001
From: yishiqihuasheng <1191093413@qq.com>
Date: Wed, 10 May 2023 08:44:49 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9mapper=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/resources/mapper/CustomsMapper.xml | 30 ++++++++++++++-----
1 file changed, 22 insertions(+), 8 deletions(-)
diff --git a/dxhy-extend/src/main/resources/mapper/CustomsMapper.xml b/dxhy-extend/src/main/resources/mapper/CustomsMapper.xml
index 3e248fc1..d350495b 100644
--- a/dxhy-extend/src/main/resources/mapper/CustomsMapper.xml
+++ b/dxhy-extend/src/main/resources/mapper/CustomsMapper.xml
@@ -51,10 +51,11 @@
t.customs_scan_id,t.dept_name businessName,t.in_account_status,t.voucher_number,t.document_number,t.in_account_date,rzh_type,rzlx,t.create_date,
data_sources,t.image_id,t.posting_time,t.account_period
from t_dx_customs_record t
- where export_mark = '0' and t.gf_tax_no in
-
- #{item}
-
+ where export_mark = '0'
+
+
+
+
and t.customs_code like CONCAT('%',#{keyWord},'%')
@@ -146,6 +147,12 @@
and t.account_period = #{accountPeriod}
+
+ and t.comp_code = #{companyCode}
+
+
+ and (t.comp_code = '' or t.comp_code is null)
+
order by t.fill_in_date desc
@@ -155,10 +162,11 @@
count(1) hjsl,
sum(t.tax_amount) hjse
from t_dx_customs_record t
- where export_mark = '0' and t.gf_tax_no in
-
- #{item}
-
+ where export_mark = '0'
+
+
+
+
and t.customs_code like CONCAT('%',#{keyWord},'%')
@@ -250,6 +258,12 @@
and t.account_period = #{accountPeriod}
+
+ and t.comp_code = #{companyCode}
+
+
+ and (t.comp_code = '' or t.comp_code is null)
+