From 3f54c0432fa38f42200cd61c4f81ea9487ce8d35 Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Wed, 24 May 2023 16:00:07 +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 --- .../com/dxhy/core/thread/PoolAddTaxThread.java | 14 +++++++++----- .../java/com/dxhy/core/thread/PoolOtherThread.java | 14 +++++++++----- .../java/com/dxhy/core/thread/PoolSaleThread.java | 14 +++++++++----- .../com/dxhy/core/thread/QypcsmkpExportThread.java | 14 +++++++++----- 4 files changed, 36 insertions(+), 20 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 8084be48..1156ea3b 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 @@ -222,11 +222,15 @@ public class PoolAddTaxThread extends BaseThread { } } else { if (gfshList.size() > 0) { - for (String s : gfshList) { - if (StringUtils.isNotEmpty(s)){ - ftpFileName.append(poolPaperService.getGfName(s)); - ftpFileName.append(fileSplit); - } +// for (String s : gfshList) { +// if (StringUtils.isNotEmpty(s)){ +// ftpFileName.append(poolPaperService.getGfName(s)); +// ftpFileName.append(fileSplit); +// } +// } + if (StringUtils.isNotEmpty(gfshList.get(0))){ + ftpFileName.append(poolPaperService.getGfName(gfshList.get(0))); + ftpFileName.append(fileSplit); } } } diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/PoolOtherThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/PoolOtherThread.java index 678c7136..281837e5 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/PoolOtherThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/PoolOtherThread.java @@ -176,11 +176,15 @@ public class PoolOtherThread extends BaseThread { } } else { if (gfshList.size() > 0) { - for (String s : gfshList) { - if (StringUtils.isNotEmpty(s)){ - ftpFileName.append(poolPaperService.getGfName(s)); - ftpFileName.append(fileSplit); - } +// for (String s : gfshList) { +// if (StringUtils.isNotEmpty(s)){ +// ftpFileName.append(poolPaperService.getGfName(s)); +// ftpFileName.append(fileSplit); +// } +// } + if (StringUtils.isNotEmpty(gfshList.get(0))){ + ftpFileName.append(poolPaperService.getGfName(gfshList.get(0))); + ftpFileName.append(fileSplit); } } } 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 39cff42b..67313a8f 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 @@ -221,11 +221,15 @@ public class PoolSaleThread extends BaseThread { } } else { if (gfshList.size() > 0) { - for (String s : gfshList) { - if (StringUtils.isNotEmpty(s)){ - ftpFileName.append(poolPaperService.getGfName(s)); - ftpFileName.append(fileSplit); - } +// for (String s : gfshList) { +// if (StringUtils.isNotEmpty(s)){ +// ftpFileName.append(poolPaperService.getGfName(s)); +// ftpFileName.append(fileSplit); +// } +// } + if (StringUtils.isNotEmpty(gfshList.get(0))){ + ftpFileName.append(poolPaperService.getGfName(gfshList.get(0))); + ftpFileName.append(fileSplit); } } } diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/QypcsmkpExportThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/QypcsmkpExportThread.java index e790ee59..d67a0789 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/QypcsmkpExportThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/QypcsmkpExportThread.java @@ -142,11 +142,15 @@ public class QypcsmkpExportThread extends BaseThread { } } else { if (gfshList.size() > 0) { - for (String s : gfshList) { - if (StringUtils.isNotEmpty(s)){ - ftpFileName.append(ticketService.getGfName(s)); - ftpFileName.append(fileSplit); - } +// for (String s : gfshList) { +// if (StringUtils.isNotEmpty(s)){ +// ftpFileName.append(ticketService.getGfName(s)); +// ftpFileName.append(fileSplit); +// } +// } + if (StringUtils.isNotEmpty(gfshList.get(0))){ + ftpFileName.append(ticketService.getGfName(gfshList.get(0))); + ftpFileName.append(fileSplit); } } }