From e11b7275841fe2263fa1146394f146ac43ddc7de Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期六, 27 十一月 2021 12:43:34 +0800
Subject: [PATCH] update 修改移除无用回执信息
---
ruoyi-common/src/main/java/com/ruoyi/common/excel/DefautExcelResult.java | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/excel/DefautExcelResult.java b/ruoyi-common/src/main/java/com/ruoyi/common/excel/DefautExcelResult.java
index 76c60e8..c852ce6 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/excel/DefautExcelResult.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/excel/DefautExcelResult.java
@@ -1,6 +1,5 @@
package com.ruoyi.common.excel;
-import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import lombok.Setter;
@@ -64,15 +63,11 @@
if (successCount == 0) {
return "璇诲彇澶辫触锛屾湭瑙f瀽鍒版暟鎹�";
} else {
- if (errorList.size() == 0) {
+ if (errorCount == 0) {
return StrUtil.format("鎭枩鎮紝鍏ㄩ儴璇诲彇鎴愬姛锛佸叡{}鏉�", successCount);
} else {
- return StrUtil.format("閮ㄥ垎璇诲彇鎴愬姛锛屽叾涓垚鍔焮}鏉★紝澶辫触{}鏉★紝閿欒淇℃伅濡備笅锛�<br/>{}",
- successCount,
- errorCount,
- CollUtil.join(errorList, "<br/>"));
+ return "";
}
-
}
}
}
--
Gitblit v1.9.3