From a491941cece9a90d72c9c6b0aab0e718e39dbd3c Mon Sep 17 00:00:00 2001
From: zhongrj <123456>
Date: Mon, 22 Aug 2022 15:54:22 +0800
Subject: [PATCH] 从业记录新增同步sql 修改,用户新增审查逻辑修改,外网部门只更新状态,不更新审查明细,内网状态和明细都更新

---
 src/main/java/org/springblade/modules/resource/controller/AttachController.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/springblade/modules/resource/controller/AttachController.java b/src/main/java/org/springblade/modules/resource/controller/AttachController.java
index 48e0b34..1ed7e92 100644
--- a/src/main/java/org/springblade/modules/resource/controller/AttachController.java
+++ b/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)));
 	}

--
Gitblit v1.9.3