From 7c2c09439da3dccf1e032e89e1cb950b8fa1cc26 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 01 Mar 2022 20:09:57 +0800
Subject: [PATCH] 健康证,合同基础接口编写

---
 src/main/java/org/springblade/modules/system/service/MyAsyncService.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/service/MyAsyncService.java b/src/main/java/org/springblade/modules/system/service/MyAsyncService.java
index 8020619..af9b3e5 100644
--- a/src/main/java/org/springblade/modules/system/service/MyAsyncService.java
+++ b/src/main/java/org/springblade/modules/system/service/MyAsyncService.java
@@ -2,6 +2,7 @@
 
 import net.sf.json.JSONObject;
 import org.springblade.common.utils.HttpClientUtils;
+import org.springblade.modules.FTP.FtpUtil;
 import org.springblade.modules.system.dto.UserDTO;
 import org.springblade.modules.system.entity.User;
 import org.springframework.scheduling.annotation.Async;
@@ -100,4 +101,13 @@
 			e.printStackTrace();
 		}
 	}
+
+	/**
+	 * FTP
+	 * @param s sql语句
+	 */
+	@Async
+	public void FTP(String s) {
+		FtpUtil.sqlFileUpload(s);
+	}
 }

--
Gitblit v1.9.3