From 5153fea813294fc7e3193ea97a76a8a6d1945d66 Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Wed, 31 May 2023 20:44:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E9=A1=B9=E5=92=8C=E9=94=80=E9=A1=B9?= =?UTF-8?q?=E7=A5=A8=E6=B1=A0=E5=AF=BC=E5=87=BA=E6=9D=A1=E4=BB=B6=E4=B8=8E?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=BF=9D=E6=8C=81=E4=B8=80?= =?UTF-8?q?=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dxhy/core/thread/PoolAddTaxThread.java | 24 ++++++++++ .../com/dxhy/core/thread/PoolSaleThread.java | 23 ++++++++++ .../main/resources/mapper/ExtPaperMapper.xml | 44 ++++++++++++------- 3 files changed, 75 insertions(+), 16 deletions(-) diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/PoolAddTaxThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/PoolAddTaxThread.java index 258fc5ea..3b90e0e4 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/PoolAddTaxThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/PoolAddTaxThread.java @@ -181,6 +181,12 @@ public class PoolAddTaxThread extends BaseThread { } else { pramsMap.put("gfsh", gfshList); } + boolean flag = checkList(gfshList); + if (flag){ + pramsMap.put("sign","88"); + log.info("登陆账号无税号"); + } + if (cjksyf != null && !"".equals(cjksyf)) { pramsMap.put("cjksyf", DateUtils.getMorning(DateUtils.strToDate(cjksyf))); } @@ -468,4 +474,22 @@ public class PoolAddTaxThread extends BaseThread { return filePath.toString(); } + public boolean checkList(List list) { + boolean flag =false; + if (list == null || list.isEmpty()){ + flag = true; + }else { + String s = list.toString().replace("[","").replace("]",""); + if (StringHelper.isBlank(s)){ + flag = true; + } + if (StringHelper.isNotBlank(s) && s.contains(",")){ + String replace = s.replace(",", ""); + if (StringHelper.isBlank(replace)){ + flag = true; + } + } + } + return flag; + } } diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/PoolSaleThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/PoolSaleThread.java index d0f6b017..5020384b 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/PoolSaleThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/PoolSaleThread.java @@ -186,6 +186,11 @@ public class PoolSaleThread extends BaseThread { } else { pramsMap.put("gfsh", gfshList); } + boolean flag = checkList(gfshList); + if (flag){ + pramsMap.put("sign","88"); + log.info("登陆账号无税号"); + } if (cjksyf != null && !"".equals(cjksyf)) { pramsMap.put("cjksyf", DateUtils.getMorning(DateUtils.strToDate(cjksyf))); } @@ -468,4 +473,22 @@ public class PoolSaleThread extends BaseThread { return filePath.toString(); } + public boolean checkList(List list) { + boolean flag =false; + if (list == null || list.isEmpty()){ + flag = true; + }else { + String s = list.toString().replace("[","").replace("]",""); + if (StringHelper.isBlank(s)){ + flag = true; + } + if (StringHelper.isNotBlank(s) && s.contains(",")){ + String replace = s.replace(",", ""); + if (StringHelper.isBlank(replace)){ + flag = true; + } + } + } + return flag; + } } diff --git a/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml b/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml index 51265a5a..07b88854 100644 --- a/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml +++ b/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml @@ -293,10 +293,13 @@ like CONCAT('%',#{keyWord},'%') - and t.gf_tax_no in - - #{item} - + + and t.gf_tax_no in + + #{item} + + + and t.invoice_type = #{invoiceType} @@ -400,10 +403,13 @@ like CONCAT('%',#{keyWord},'%') - and t.xf_tax_no in - - #{item} - + + and t.xf_tax_no in + + #{item} + + + and t.invoice_type = #{invoiceType} @@ -559,10 +565,13 @@ like CONCAT('%',#{keyWord},'%') - and t.gf_tax_no in - - #{item} - + + and t.gf_tax_no in + + #{item} + + + and t.invoice_type = #{invoiceType} @@ -669,10 +678,13 @@ like CONCAT('%',#{keyWord},'%') - and t.xf_tax_no in - - #{item} - + + and t.xf_tax_no in + + #{item} + + + and t.invoice_type = #{invoiceType}