mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	修复BUG: 导出Excel功能, 当attr的cellType为String时, cell的cellType由Numeric修正为String。
This commit is contained in:
		@@ -476,7 +476,7 @@ public class ExcelUtil<T>
 | 
			
		||||
    {
 | 
			
		||||
        if (ColumnType.STRING == attr.cellType())
 | 
			
		||||
        {
 | 
			
		||||
            cell.setCellType(CellType.NUMERIC);
 | 
			
		||||
            cell.setCellType(CellType.STRING);
 | 
			
		||||
            cell.setCellValue(StringUtils.isNull(value) ? attr.defaultValue() : value + attr.suffix());
 | 
			
		||||
        }
 | 
			
		||||
        else if (ColumnType.NUMERIC == attr.cellType())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user