| 
					
				 | 
			
			
				@@ -34,6 +34,7 @@ import org.jeecg.modules.spapl.entity.SyPreAssembledPackingList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.spapl.entity.SyPreAssembledPackingListItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.spapl.service.ISyPreAssembledPackingListService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.spapl.vo.SyPreAssembledPackingListVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.jeecg.modules.splfi.entity.SyPackingListFabric; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.splt.vo.SyPackingListTailoringVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.system.entity.SysPermission; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.system.service.impl.SysPermissionServiceImpl; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -861,4 +862,28 @@ public class SyPackingListTailoringController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 @AutoLog(value = "附件上传") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 @ApiOperation(value="附件上传", notes="附件上传") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 @RequestMapping(value = "/upload") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 public Result upload(String id,String fileName){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		 Result result=new Result(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		 if(oConvertUtils.isEmpty(id)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 result.setMessage("id为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		 SyPackingListTailoring syPackingListTailoring=syPackingListTailoringService.getById(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		 if(syPackingListTailoring!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 if(syPackingListTailoring.getAccessory()!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				 syPackingListTailoring.setAccessory(syPackingListTailoring.getAccessory()+","+fileName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				 syPackingListTailoring.setAccessory(fileName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 syPackingListTailoringService.updateById(syPackingListTailoring); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 result.setMessage("上传成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		 }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 result.setMessage("数据库未找到该数据"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		 return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ } 
			 |