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 | 6 +-----
1 files changed, 1 insertions(+), 5 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 9b6f5e7..2412443 100644
--- a/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
+++ b/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
@@ -179,7 +179,6 @@
",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.dataSync(s);
}
//返回
@@ -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,7 +221,6 @@
"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.dataSync(s);
}else {
//内网同步
@@ -232,7 +230,6 @@
",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.dataSync(s);
}
}else {
@@ -243,7 +240,6 @@
",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.dataSync(s);
}
});
--
Gitblit v1.9.3