| 
					
				 | 
			
			
				@@ -20,6 +20,7 @@ import com.alibaba.fastjson.JSONObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.google.gson.Gson; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.google.gson.GsonBuilder; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.poi.ss.usermodel.Workbook; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.jeecg.common.system.api.ISysBaseAPI; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.common.system.util.JwtUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.common.system.vo.LoginUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.shiro.SecurityUtils; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -31,6 +32,7 @@ import org.jeecg.modules.spapl.entity.SyPreAssembledPackingList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.splfi.vo.SyPackingListFabricVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.splt.entity.SyPackingListTailoring; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.splt.entity.SyPackingListTailoringItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.jeecg.modules.system.controller.CommonController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecgframework.poi.excel.ExcelImportUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecgframework.poi.excel.def.NormalExcelConstants; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecgframework.poi.excel.entity.ExportParams; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -633,11 +635,15 @@ public class SyPackingListFabricController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 CommonController commonController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 @AutoLog(value = "附件上传") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 @ApiOperation(value="附件上传", notes="附件上传") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 @RequestMapping(value = "/upload") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	 public Result upload(String id,String fileName){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		Result result=new Result(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 public Result upload(HttpServletRequest request, HttpServletResponse response,String id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 	String fileName=commonController.upload(request,response).getMessage(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 	Result result=new Result(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if(oConvertUtils.isEmpty(id)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			result.setMessage("id为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return result; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -653,7 +659,6 @@ public class SyPackingListFabricController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			result.setMessage("上传成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			result.setMessage("数据库未找到该数据"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 } 
			 |