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}