From 3eedd3f46508c3160f7e77ed8a2e70e2127909ed Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Thu, 31 Aug 2023 19:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/TDxCustomsRecordMapper.xml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/dxhy-core/src/main/resources/mapper/TDxCustomsRecordMapper.xml b/dxhy-core/src/main/resources/mapper/TDxCustomsRecordMapper.xml index d9f7d40c..c90bb50a 100644 --- a/dxhy-core/src/main/resources/mapper/TDxCustomsRecordMapper.xml +++ b/dxhy-core/src/main/resources/mapper/TDxCustomsRecordMapper.xml @@ -920,11 +920,11 @@ where t.qs_status = '0' and t.export_mark = '0' and (t.data_sources = '0' or (t.data_sources != '0' and t.collect_upload_status = '2')) - - and t.gf_tax_no = #{gfsh} + + and t.gf_tax_no = #{queryParams.gfsh} - - and t.comp_code = #{companyCode} + + and (t.comp_code = #{queryParams.companyCode} or t.comp_code = '' or t.comp_code is null) and t.fill_in_date >= #{queryParams.fillInDateBegin} @@ -1134,18 +1134,16 @@ - and to_char(t.qs_date,'yyyy-MM-dd hh24:mi:ss') >= #{queryParams.qsDateBegin} + and t.qs_date >= #{queryParams.qsDateBegin} - and to_char(t.qs_date,'yyyy-MM-dd hh24:mi:ss') <= CONCAT(substr(#{queryParams.qsDateEnd},1,10),' - 23:59:59') + and t.qs_date <= CONCAT(substr(#{queryParams.qsDateEnd},1,10),'23:59:59') - and to_char(t.fill_in_date,'yyyy-MM-dd hh24:mi:ss') >= #{queryParams.fillInDateBegin} + and t.fill_in_date >= #{queryParams.fillInDateBegin} - and to_char(t.fill_in_date,'yyyy-MM-dd hh24:mi:ss') <= CONCAT(substr(#{queryParams.fillInDateEnd},1,10),' - 23:59:59') + and t.fill_in_date <= CONCAT(substr(#{queryParams.fillInDateEnd},1,10),'23:59:59') and t.customs_code = #{queryParams.customsCode}