From b082a4e4909a657211a05b8422a1e5aafda822ce Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Tue, 30 May 2023 10:40:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=B7=A5=E8=AE=A4=E8=AF=81=E5=92=8C?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E6=9F=A5=E8=AF=A2=E5=AF=BC=E5=87=BA=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dxhy/core/thread/ManualAthensThread.java | 3 + .../dxhy/core/thread/RzFpxxExportThread.java | 3 + .../main/resources/mapper/ExtPaperMapper.xml | 142 +++++++++++++----- .../src/main/resources/mapper/FpZhMapper.xml | 43 +++++- 4 files changed, 144 insertions(+), 47 deletions(-) diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/ManualAthensThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/ManualAthensThread.java index fedadc85..ada14005 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/ManualAthensThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/ManualAthensThread.java @@ -174,6 +174,9 @@ public class ManualAthensThread extends BaseThread { pramsMap.put("imageNumber",imageNumber); pramsMap.put("postingTimeEnd",postingTimeEnd); pramsMap.put("postingTimeStart",postingTimeStart); + if (StringHelper.isBlank(gfsh)){ + pramsMap.put("sign","88"); + } List gfshList = new ArrayList<>(); if (!StringHelper.isBlank(gfsh)) { gfshList = StringHelper.stringToList(gfsh); diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/RzFpxxExportThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/RzFpxxExportThread.java index b386f99c..28d820dc 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/RzFpxxExportThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/RzFpxxExportThread.java @@ -178,6 +178,9 @@ public class RzFpxxExportThread extends BaseThread { pramsMap.put("bzr",bzr); pramsMap.put("companyCodes",companyCodes); + if (StringHelper.isBlank(gfsh)){ + pramsMap.put("sign","88"); + } List gfshList = new ArrayList<>(); if (!StringHelper.isBlank(gfsh)) { gfshList = StringHelper.stringToList(gfsh); diff --git a/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml b/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml index 037cff7a..36294c82 100644 --- a/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml +++ b/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml @@ -555,13 +555,14 @@ AND t.invoice_date between #{kpksrq} and #{kpjsrq} - and CONCAT(IFNULL(t.invoice_code,''),IFNULL(t.invoice_no,''),IFNULL(t.xf_name,'')) like + and CONCAT(IFNULL(t.invoice_code,''),IFNULL(t.invoice_no,''),IFNULL(t.xf_name,''),IFNULL(t.xf_tax_no,'')) + like CONCAT('%',#{keyWord},'%') - and t.gf_tax_no in - - #{item} - + + + + and t.invoice_type = #{invoiceType} @@ -590,13 +591,16 @@ and t.qs_name like CONCAT(#{qsr},'%') - and t.confirm_user like CONCAT(#{rzr},'%') + and t.gx_user_name like CONCAT(#{rzr},'%') and t.qs_type = #{qsfs} - - and t.payment_status = #{inAccountStatus} + + and t.inaccount_status = #{inAccountStatus} + + + and (t.inaccount_status = '0' or t.inaccount_status = '' or t.inaccount_status is null) and DATE_FORMAT(t.payment_date,'%Y-%m') = #{inAccountMonth} @@ -604,6 +608,38 @@ and t.invoice_source = #{invoiceSource} + + and t.bzdh = #{bzdh} + + + and t.bzr like concat('%',#{bzr},'%') + + + and t.sn_voucher_number = #{snVoucherNumber} + + + and t.posting_time between #{postingTimeStart} and #{postingTimeEnd} + + + and t.image_id = #{imageNumber} + + + and t.account_period = #{accountPeriod} + + + and (t.comp_code in + + #{companyCode} + + or t.comp_code is null or t.comp_code = '' + ) + + + and t.comp_code = #{companyCode} + + + and (t.comp_code = '' or t.comp_code is null) + @@ -623,54 +659,72 @@ left JOIN ${dxhyDetail}.t_dx_record_invoice_detail_sales b ON t.uuid = b.uuid where t.detail_yesorno = '1' - AND t.create_date BETWEEN #{cjksyf} and #{cjjsyf} + AND t.create_date between #{cjksyf} and #{cjjsyf} AND t.invoice_date between #{kpksrq} and #{kpjsrq} - and CONCAT(IFNULL(t.invoice_code,''),IFNULL(t.invoice_no,''),IFNULL(t.xf_name,'')) like + and CONCAT(IFNULL(t.invoice_code,''),IFNULL(t.invoice_no,''),IFNULL(t.gf_name,''),IFNULL(t.gf_tax_no,'')) + like CONCAT('%',#{keyWord},'%') - and t.xf_tax_no in - - #{item} - + + + + and t.invoice_type = #{invoiceType} - - and t.invoice_status = #{fpzt} + + and t.invoice_status = #{invoiceStatus} and t.qs_status = #{qszt} - - and t.rzh_yesorno = #{rzzt} - - - and t.rzh_yesorno in ('1','2','0') - - - and t.rzlx = #{rzlx} - - - and t.rzh_belong_date = #{skssq} - and DATE_FORMAT(t.qs_date,'%Y-%m') = #{qsyf} and t.qs_name like CONCAT(#{qsr},'%') - - and t.confirm_user like CONCAT(#{rzr},'%') - and t.qs_type = #{qsfs} - - and t.payment_status = #{inAccountStatus} + + and t.remark like CONCAT(#{remark},'%') + + + and t.list_status = #{listMark} + + + and t.inaccount_status = #{inAccountStatus} + + + and (t.inaccount_status = '' or t.inaccount_status is null or t.inaccount_status = '0') + + + and t.sn_voucher_number = #{snVoucherNumber} + + + + and t.posting_time between #{postingTimeStart} and #{postingTimeEnd} + + + + and t.bzdh = #{bzdh} + + + + and t.bzr like concat('%',#{bzr},'%') + + + + and t.account_period = #{accountPeriod} + + + + and t.image_id = #{imageNumber} and DATE_FORMAT(t.payment_date,'%Y-%m') = #{inAccountMonth} @@ -678,14 +732,24 @@ and t.incentive_flag like CONCAT('%',#{incentiveFlag},'%') - - and t.list_status = #{listMark} - - - and t.remark like CONCAT(#{remark},'%') - and t.invoice_source = #{invoiceSource} + + and (t.comp_code in + + #{companyCode} + + or t.comp_code is null or t.comp_code = '' + ) + + + and t.comp_code = #{companyCode} + + + and (t.comp_code = '' or t.comp_code is null) + + GROUP BY t.uuid + ORDER BY t.create_date DESC diff --git a/dxhy-core/src/main/resources/mapper/FpZhMapper.xml b/dxhy-core/src/main/resources/mapper/FpZhMapper.xml index 43c32c20..28250108 100644 --- a/dxhy-core/src/main/resources/mapper/FpZhMapper.xml +++ b/dxhy-core/src/main/resources/mapper/FpZhMapper.xml @@ -102,10 +102,21 @@ and t.auth_status != '0' and t.rzh_yesorno != '0' and t.company = #{company} - and t.gf_tax_no in - - #{item} - + + and t.gf_tax_no in + + #{item} + + + + + and (t.comp_code in + + #{companyCode} + + or t.comp_code is null or t.comp_code = '' + ) + and t.comp_code = #{companyCode} @@ -582,10 +593,26 @@ c.select_end_date or d.tj_status in ('1','2')) - and t.gf_tax_no in - - #{item} - + + and t.gf_tax_no in + + #{item} + + + + + + + + + and (t.comp_code in + + #{companyCode} + + or t.comp_code is null or t.comp_code = '' + ) + + and t.comp_code = #{companyCode}