mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	优化excel/scale属性导出单元格数值类型
This commit is contained in:
		@@ -1020,7 +1020,7 @@ public class ExcelUtil<T>
 | 
			
		||||
                }
 | 
			
		||||
                else if (value instanceof BigDecimal && -1 != attr.scale())
 | 
			
		||||
                {
 | 
			
		||||
                    cell.setCellValue((((BigDecimal) value).setScale(attr.scale(), attr.roundingMode())).toString());
 | 
			
		||||
                    cell.setCellValue((((BigDecimal) value).setScale(attr.scale(), attr.roundingMode())).doubleValue());
 | 
			
		||||
                }
 | 
			
		||||
                else if (!attr.handler().equals(ExcelHandlerAdapter.class))
 | 
			
		||||
                {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user