|  |  |  | @ -31,12 +31,13 @@ public class ExcelTest { | 
			
		
	
		
			
				
					|  |  |  |  | 		Date date = new Date(); | 
			
		
	
		
			
				
					|  |  |  |  | 		PreDataInfo info = new PreDataInfo(); | 
			
		
	
		
			
				
					|  |  |  |  | 		info.setAnalysisOfFinancialEconomicProsperity("否"); | 
			
		
	
		
			
				
					|  |  |  |  | 		info.setGovernmentDebtManage("是");; | 
			
		
	
		
			
				
					|  |  |  |  | 		info.setAreaCode("321167"); | 
			
		
	
		
			
				
					|  |  |  |  | 		info.setBeginUseTime("201107"); | 
			
		
	
		
			
				
					|  |  |  |  | 		info.setFunctionDetails("这是一个神奇的功能"); | 
			
		
	
		
			
				
					|  |  |  |  | 		info.setDataVersion("2"); | 
			
		
	
		
			
				
					|  |  |  |  | 		List<PreDataInfo> list = new ArrayList<PreDataInfo>(); | 
			
		
	
		
			
				
					|  |  |  |  | 		for (int i = 0; i < 400; i++) { | 
			
		
	
		
			
				
					|  |  |  |  | 		for (int i = 0; i < 4; i++) { | 
			
		
	
		
			
				
					|  |  |  |  | 			list.add(info); | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | //		InputStreamReader in= new InputStreamReader(Resource.class.getResourceAsStream(templateFilePath), "UTF-8");
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -46,7 +47,7 @@ public class ExcelTest { | 
			
		
	
		
			
				
					|  |  |  |  | 		XSSFWorkbook result = null; | 
			
		
	
		
			
				
					|  |  |  |  | 		try { | 
			
		
	
		
			
				
					|  |  |  |  | 			workbook = new XSSFWorkbook(res.getInputStream()); | 
			
		
	
		
			
				
					|  |  |  |  | 			result = ExcelOperation.writeExcelTemplate(workbook, Constant.EXCEL_TEMPLATE_INIT_ROW, list); | 
			
		
	
		
			
				
					|  |  |  |  | 			result = ExcelOperation.writeExcelTemplate(workbook, Constant.EXCEL_TEMPLATE_INIT_ROW, 0, 25, list,"id", "workRange"); | 
			
		
	
		
			
				
					|  |  |  |  | 		} catch (IllegalArgumentException | 
			
		
	
		
			
				
					|  |  |  |  | 				| IllegalAccessException | IOException e) { | 
			
		
	
		
			
				
					|  |  |  |  | 			// TODO Auto-generated catch block
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -83,7 +84,7 @@ public class ExcelTest { | 
			
		
	
		
			
				
					|  |  |  |  | 		XSSFWorkbook workbook = null; | 
			
		
	
		
			
				
					|  |  |  |  | 		try { | 
			
		
	
		
			
				
					|  |  |  |  | 			workbook = new XSSFWorkbook(f); | 
			
		
	
		
			
				
					|  |  |  |  | 			list = ExcelOperation.readExcel4Update(workbook,  Constant.EXCEL_TEMPLATE_INIT_ROW, PreDataInfo.class); | 
			
		
	
		
			
				
					|  |  |  |  | 			list = ExcelOperation.readExcel4Update(workbook,  Constant.EXCEL_TEMPLATE_INIT_ROW, 0, PreDataInfo.class,"id"); | 
			
		
	
		
			
				
					|  |  |  |  | 		} catch (IllegalArgumentException | 
			
		
	
		
			
				
					|  |  |  |  | 				| IllegalAccessException | InstantiationException | InvalidFormatException | IOException e) { | 
			
		
	
		
			
				
					|  |  |  |  | 			e.printStackTrace(); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |