From 982b5eb35e6e071e01416ad2b233ff17a15d6ac5 Mon Sep 17 00:00:00 2001 From: panshuling321 Date: Thu, 30 Jun 2022 15:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=B4=A2=E5=8A=A1=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=B8=85=E5=88=86=E5=9B=9E=E6=89=A7=E7=9A=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/XhpcClearingCheckoutServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/service/impl/XhpcClearingCheckoutServiceImpl.java b/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/service/impl/XhpcClearingCheckoutServiceImpl.java index 6b09fd91..a0a22c0b 100644 --- a/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/service/impl/XhpcClearingCheckoutServiceImpl.java +++ b/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/service/impl/XhpcClearingCheckoutServiceImpl.java @@ -290,8 +290,14 @@ public class XhpcClearingCheckoutServiceImpl extends BaseService implements Xhpc File dataFile = DownloadUtil.downloadFile(fileUrl); com.xhpc.common.core.utils.poi.ExcelUtil util = new com.xhpc.common.core.utils.poi.ExcelUtil(CheckoutBankVo.class); List checkoutList = util.importExcel(new FileInputStream(dataFile)); + if(checkoutList.size() < 1){ + throw new CustomException("请检查表格数据是否正确"); + } String checkoutIds = checkoutList.stream().map(CheckoutBankVo::getIndex).collect(Collectors.joining(",")); + if(StringUtils.isEmpty(checkoutIds)){ + throw new CustomException("请检查表格中是否包括“顺序号”列"); + } String unReceiptIds = checkoutMapper.selectIdsByStatusAndIds(checkoutIds, 1); if (StringUtils.isNotEmpty(unReceiptIds)) {