| 
					
				 | 
			
			
				@@ -4311,15 +4311,20 @@ public class ExcelTabController extends BladeController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/add-buss-imginfo") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperationSupport(order = 32) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "表单填写图片上传", notes = "表单填写图片上传") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public R addBussFile(@RequestParam MultipartFile file, @RequestParam String oldOSSUrl) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public R addBussFile(@RequestParam MultipartFile file, @RequestParam Long pkeyId,@RequestParam String key) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         BladeFile bladeFile = this.newIOSSClient.uploadFileByInputStream(file); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(bladeFile!=null&&StringUtils.isNotEmpty(bladeFile.getLink())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String oldOSSUrl = isExistOssUrl(pkeyId,key); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(bladeFile!=null&&StringUtils.isNotEmpty(oldOSSUrl)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String fileName=oldOSSUrl.substring(oldOSSUrl.lastIndexOf("/")+1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             newIOSSClient.removeFile(fileName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return R.data(bladeFile); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private String isExistOssUrl(Long pkeyId,String key) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return wbsTreeContractService.isExistOssUrl(pkeyId,key); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 项目元素 关联表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 |