From ddae03ebb4297e78c69beab11bc8bd7e9c370913 Mon Sep 17 00:00:00 2001
From: zhongrj <123456>
Date: Wed, 24 Aug 2022 08:43:25 +0800
Subject: [PATCH] 保安公司查询修改,派遣单位字段属性修改
---
src/main/java/org/springblade/modules/FTP/monitor.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/springblade/modules/FTP/monitor.java b/src/main/java/org/springblade/modules/FTP/monitor.java
index ed0af4d..52f72be 100644
--- a/src/main/java/org/springblade/modules/FTP/monitor.java
+++ b/src/main/java/org/springblade/modules/FTP/monitor.java
@@ -20,7 +20,7 @@
//private static String fileName = "nsql.json";
- @Scheduled(cron = "*/30 * * * * ?")
+// @Scheduled(cron = "*/30 * * * * ?")
public static boolean isFTPFileExist() {
FTPClient ftp = new FTPClient();
@@ -36,7 +36,7 @@
ftp.login(ftpUserName, ftpPassword);
- System.out.println("ftp.getReplyCode() = " + ftp.getReplyCode());
+// System.out.println("ftp.getReplyCode() = " + ftp.getReplyCode());
// 检验登陆操作的返回码是否正确
if (!FTPReply.isPositiveCompletion(ftp.getReplyCode())) {
@@ -128,8 +128,8 @@
}
} catch (Exception e) {
- //MysqlCenlint.deletess(fileName);
- //FtpUtil.deleteFile(ftpHost, ftpPort, ftpUserName, ftpPassword, "anbao/", fileName);
+ MysqlCenlint.deletess(fileName);
+ FtpUtil.deleteFile(ftpHost, ftpPort, ftpUserName, ftpPassword, "anbao/", fileName);
e.printStackTrace();
} finally {
--
Gitblit v1.9.3