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/service/impl/AccreditationRecordsServiceImpl.java | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java b/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
index a26abff..d5798f7 100644
--- a/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
+++ b/src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
@@ -4,6 +4,7 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
+import org.springblade.common.config.QrcodeConfig;
import org.springblade.common.utils.QRCodeUtil;
import org.springblade.modules.FTP.FtpUtil;
import org.springblade.modules.accreditation.excel.ExportSecurityBookPaperExcel;
@@ -85,7 +86,7 @@
+ "'" + records.getType() + "'" + ","
+ "'" + records.getAuditStatus() + "'" + ")";
//FtpUtil.sqlFileUpload(s);
- myAsyncService.FTP(s);
+ myAsyncService.dataSync(s);
}
}
//判断类型,如果是证书的,审核未通过的可以再次申请,审核通过的,暂时不给于新增记录
@@ -106,7 +107,7 @@
+ "'" + records.getType() + "'" + ","
+ "'" + records.getAuditStatus() + "'" + ")";
//FtpUtil.sqlFileUpload(s);
- myAsyncService.FTP(s);
+ myAsyncService.dataSync(s);
}
}
@@ -173,7 +174,7 @@
//如果保安证编号不为空
if (null != accreditationRecordsVo.getSecurityNumber() && accreditationRecordsVo.getSecurityNumber() != "") {
//去生成二维码
- String url = "http://61.131.136.25:2080/securityInfo.html";
+ String url = QrcodeConfig.baseUrl + "securityInfo.html";
String encoded = null;
try {
encoded = URLEncoder.encode(accreditationRecordsVo.getSecurityNumber(), "UTF-8");
@@ -231,7 +232,7 @@
list.forEach(id -> {
AccreditationRecords records = new AccreditationRecords();
records.setStatus(2);
- records.setId(Long.parseLong(id));
+ records.setId(id);
//更新
this.updateById(records);
@@ -240,7 +241,7 @@
"update sys_accreditation_records set status = " + accreditationRecords.getStatus() + "" +
"where id = " + "'" + accreditationRecords.getId() + "'";
//FtpUtil.sqlFileUpload(s);
- myAsyncService.FTP(s);
+ myAsyncService.dataSync(s);
});
return true;
}
--
Gitblit v1.9.3