|  | @@ -621,7 +621,7 @@ public class ExcelUtil<T>
 | 
	
		
			
				|  |  |              Cell cell;// 单元格
 | 
	
		
			
				|  |  |              String colString;//长度转成ABC后的列
 | 
	
		
			
				|  |  |              String sumString;//求和公式
 | 
	
		
			
				|  |  | -            Integer[] line = {4, 5, 7, 8, 9, 10};
 | 
	
		
			
				|  |  | +            Integer[] line = {3, 4, 6, 7, 8, 9};
 | 
	
		
			
				|  |  |              cell = row.createCell(0);// 创建单元格
 | 
	
		
			
				|  |  |              cell.setCellValue("合计:");
 | 
	
		
			
				|  |  |              int totalRows = sheet.getPhysicalNumberOfRows();
 | 
	
	
		
			
				|  | @@ -630,7 +630,7 @@ public class ExcelUtil<T>
 | 
	
		
			
				|  |  |                  cell.setCellStyle(styles.get("total"));// 设置单元格样式
 | 
	
		
			
				|  |  |                  colString = CellReference.convertNumToColString(l);  //长度转成ABC列
 | 
	
		
			
				|  |  |                  //求和公式 求i9至i12单元格的总和
 | 
	
		
			
				|  |  | -                if (l == 5 || l == 8) {
 | 
	
		
			
				|  |  | +                if (l == 4 || l == 7) {
 | 
	
		
			
				|  |  |                      sumString = "SUM(" + colString + "2:" + colString + (totalRows-1) + ") / 1000";
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  |                      sumString = "SUM(" + colString + "2:" + colString + (totalRows-1) + ")";
 | 
	
	
		
			
				|  | @@ -729,7 +729,7 @@ public class ExcelUtil<T>
 | 
	
		
			
				|  |  |              Cell cell;// 单元格
 | 
	
		
			
				|  |  |              String colString;//长度转成ABC后的列
 | 
	
		
			
				|  |  |              String sumString;//求和公式
 | 
	
		
			
				|  |  | -            Integer[] line = {4, 6};
 | 
	
		
			
				|  |  | +            Integer[] line = {3, 5};
 | 
	
		
			
				|  |  |              cell = row.createCell(0);// 创建单元格
 | 
	
		
			
				|  |  |              cell.setCellValue("合计:");
 | 
	
		
			
				|  |  |              int totalRows = sheet.getPhysicalNumberOfRows();
 |