From 2cb1b84204359948f36fa8ef53e567961b7b11c8 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 25 八月 2022 09:42:07 +0800 Subject: [PATCH] fix 修复 部门与角色 状态导出字典使用错误 --- 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