| 
					
				 | 
			
			
				@@ -16,6 +16,7 @@ import org.jeecgframework.poi.excel.def.NormalExcelConstants; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecgframework.poi.excel.entity.ExportParams; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecgframework.poi.excel.entity.ImportParams; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecgframework.poi.excel.entity.enmus.ExcelType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.jeecgframework.poi.excel.entity.params.ExcelExportEntity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Value; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -153,6 +154,20 @@ public class JeecgController<T, S extends IService<T>> { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static <T> ModelAndView export(String title, Class<T> clazz, List<T> exportList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //导出文件名称 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        mv.addObject(NormalExcelConstants.FILE_NAME, title); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //注解对象Class 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        mv.addObject(NormalExcelConstants.CLASS, clazz); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //自定义表格参数  "自定义导出Excel模板内容标题", "自定义Sheet名字" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        mv.addObject(NormalExcelConstants.PARAMS, new ExportParams(title, title)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //导出数据列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        mv.addObject(NormalExcelConstants.DATA_LIST, exportList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return mv; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 通过excel导入数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 
			 |