mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 修改移除无用回执信息
This commit is contained in:
		@@ -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 @@ public class DefautExcelResult<T> implements ExcelResult<T> {
 | 
			
		||||
        if (successCount == 0) {
 | 
			
		||||
            return "读取失败,未解析到数据";
 | 
			
		||||
        } else {
 | 
			
		||||
            if (errorList.size() == 0) {
 | 
			
		||||
            if (errorCount == 0) {
 | 
			
		||||
                return StrUtil.format("恭喜您,全部读取成功!共{}条", successCount);
 | 
			
		||||
            } else {
 | 
			
		||||
                return StrUtil.format("部分读取成功,其中成功{}条,失败{}条,错误信息如下:<br/>{}",
 | 
			
		||||
                    successCount,
 | 
			
		||||
                    errorCount,
 | 
			
		||||
                    CollUtil.join(errorList, "<br/>"));
 | 
			
		||||
                return "";
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user