From be38921cb7b2807e5e35c983940ee02d83df493b Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 27 Dec 2023 09:53:09 +0800
Subject: [PATCH] 制证时间批量导入

---
 src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java b/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
index 9a2010d..2412443 100644
--- a/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
+++ b/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
@@ -103,7 +103,7 @@
 			",update_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "'" +
 			" " + "where id = " + "'" + user.getId() + "'";
 		//FtpUtil.sqlFileUpload(s);
-		myAsyncService.FTP(s);
+		myAsyncService.dataSync(s);
 		return R.data(save);
 	}
 
@@ -159,7 +159,7 @@
 						",update_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "" +
 						"where id = " + "'" + user.getId() + "'";
 				//FtpUtil.sqlFileUpload(s);
-				myAsyncService.FTP(s);
+				myAsyncService.dataSync(s);
 			}else {
 				//内网同步
 				String s =
@@ -169,7 +169,7 @@
 						",audit_user = " + accreditationRecords.getAuditUser() + " " +
 						"where id = " + "'" + accreditationRecords.getId() + "'";
 				//FtpUtil.sqlFileUpload(s);
-				myAsyncService.FTP(s);
+				myAsyncService.dataSync(s);
 			}
 		}else {
 			//内网同步
@@ -179,8 +179,7 @@
 					",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" +
 					",audit_user = " + accreditationRecords.getAuditUser() + " " +
 					"where id = " + "'" + accreditationRecords.getId() + "'";
-			//FtpUtil.sqlFileUpload(s);
-			myAsyncService.FTP(s);
+			myAsyncService.dataSync(s);
 		}
 		//返回
 		return R.status(b);
@@ -198,7 +197,7 @@
 		List<String> list = Arrays.asList(ids.split(","));
 		//批量审核
 		list.forEach(id->{
-			accreditationRecords.setId(Long.parseLong(id));
+			accreditationRecords.setId(id);
 			accreditationRecords.setAuditTime(new Date());
 			accreditationRecordsService.updateById(accreditationRecords);
 			//审核通过
@@ -222,8 +221,7 @@
 							"update blade_user set user_type = " + user.getUserType() + "" +
 							",update_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "" +
 							"where id = " + "'" + user.getId() + "'";
-					//FtpUtil.sqlFileUpload(s);
-					myAsyncService.FTP(s);
+					myAsyncService.dataSync(s);
 				}else {
 					//内网同步
 					String s =
@@ -232,8 +230,7 @@
 							",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" +
 							",audit_user = " + accreditationRecords.getAuditUser() + " " +
 							"where id = " + "'" + accreditationRecords.getId() + "'";
-					//FtpUtil.sqlFileUpload(s);
-					myAsyncService.FTP(s);
+					myAsyncService.dataSync(s);
 				}
 			}else {
 				//内网同步
@@ -243,8 +240,7 @@
 						",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" +
 						",audit_user = " + accreditationRecords.getAuditUser() + " " +
 						"where id = " + "'" + accreditationRecords.getId() + "'";
-				//FtpUtil.sqlFileUpload(s);
-				myAsyncService.FTP(s);
+				myAsyncService.dataSync(s);
 			}
 		});
 		//返回

--
Gitblit v1.9.3