Browse Source

文件删除

gaodd 6 months ago
parent
commit
3be2a04e37

+ 6 - 0
src/main/java/com/chinaitop/depot/common/HystrixClientFallback.java

@@ -37,4 +37,10 @@ public class HystrixClientFallback implements BasicFeignClient {
37 37
 		return null;
38 38
 	}
39 39
 
40
+	@Override
41
+	public void deleteFile(String deleteFileIds) {
42
+		// TODO Auto-generated method stub
43
+		logger.info("文件删除: " + deleteFileIds);
44
+	}
45
+
40 46
 }

+ 3 - 0
src/main/java/com/chinaitop/depot/feign/BasicFeignClient.java

@@ -29,6 +29,9 @@ public interface BasicFeignClient {
29 29
     @RequestMapping(value = "/depot/basic/file/updateFile", method = RequestMethod.POST)
30 30
     void updateFile(@RequestParam(value = "fileIds") String fileIds,@RequestParam(value = "bid") Integer bid,
31 31
     		@RequestParam(value = "fileType") String fileType);
32
+    
33
+    @RequestMapping(value = "/depot/basic/file/deleteFile", method = RequestMethod.POST)
34
+    void deleteFile(@RequestParam(value = "deleteFileIds") String deleteFileIds);
32 35
 
33 36
     @RequestMapping(value = "/depot/basic/file/getList", method = RequestMethod.GET)
34 37
 	List<BusinessFile> getList(@RequestParam(value = "bid") Integer bid, @RequestParam(value = "fileType") String fileType,@RequestParam(value = "order") String order,@RequestParam(value = "orgId") Integer orgId);

+ 1 - 0
src/main/java/com/chinaitop/depot/risk/service/impl/StorageSafeManageServiceImpl.java

@@ -76,6 +76,7 @@ public class StorageSafeManageServiceImpl implements StorageSafeManageService {
76 76
             storageSafeManageMapper.updateByPrimaryKeyWithBLOBs(storageSafeManage);
77 77
             //附件
78 78
             basicFeignClient.updateFile(fileIds, storageSafeManage.getId(),"safeManage");
79
+            basicFeignClient.deleteFile(deleteFileIds);
79 80
             
80 81
             this.gjjjk(storageSafeManage.getId()+"", storageSafeManage.getOrgId(), "u");
81 82