智慧保安后台管理-外网项目备份
钟日健
2026-06-01 62eb499b0c969f246d3245d1429a97da4de1ce28
src/main/java/org/springblade/modules/resource/controller/AttachController.java
@@ -34,6 +34,7 @@
import org.springblade.modules.resource.entity.Attach;
import org.springblade.modules.resource.service.IAttachService;
import org.springblade.modules.resource.vo.AttachVO;
import org.springblade.modules.system.service.MyAsyncService;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
@@ -52,7 +53,7 @@
public class AttachController extends BladeController {
   private final IAttachService attachService;
   private final MyAsyncService myAsyncService;
   /**
    * 详情
    */
@@ -132,7 +133,8 @@
      list.forEach(id ->{
         //内网同步
         String s1 = "delete from blade_attach where id = " + "'" + id + "'";
         FtpUtil.sqlFileUpload(s1);
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.dataSync(s1);
      });
      return R.status(attachService.deleteLogic(Func.toLongList(ids)));
   }