From 62eb499b0c969f246d3245d1429a97da4de1ce28 Mon Sep 17 00:00:00 2001
From: 钟日健 <arsn163@163.com>
Date: Mon, 01 Jun 2026 20:46:13 +0800
Subject: [PATCH] feat: 成绩查询增加年龄查询返回

---
 src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 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 53c1dcc..57a731d 100644
--- a/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
+++ b/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
@@ -29,6 +29,7 @@
 import org.springblade.modules.accreditation.entity.AccreditationRecords;
 import org.springblade.modules.accreditation.service.AccreditationRecordsService;
 import org.springblade.modules.accreditation.vo.AccreditationRecordsVo;
+import org.springblade.modules.system.service.MyAsyncService;
 import org.springframework.core.io.ClassPathResource;
 import org.springframework.core.io.Resource;
 import org.springframework.web.bind.annotation.*;
@@ -56,7 +57,7 @@
 	private final AccreditationRecordsService accreditationRecordsService;
 
 	private final IUserService userService;
-
+	private final MyAsyncService myAsyncService;
 
 	/**
 	 * 自定义分页
@@ -101,7 +102,8 @@
 		"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);
+		//FtpUtil.sqlFileUpload(s);
+		myAsyncService.dataSync(s);
 		return R.data(save);
 	}
 
@@ -156,7 +158,8 @@
 						"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);
+				//FtpUtil.sqlFileUpload(s);
+				myAsyncService.dataSync(s);
 			}else {
 				//内网同步
 				String s =
@@ -165,7 +168,8 @@
 						",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" +
 						",audit_user = " + accreditationRecords.getAuditUser() + " " +
 						"where id = " + "'" + accreditationRecords.getId() + "'";
-				FtpUtil.sqlFileUpload(s);
+				//FtpUtil.sqlFileUpload(s);
+				myAsyncService.dataSync(s);
 			}
 		}else {
 			//内网同步
@@ -175,7 +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.dataSync(s);
 		}
 		//返回
 		return R.status(b);
@@ -217,7 +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.dataSync(s);
 				}else {
 					//内网同步
 					String s =
@@ -226,7 +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.dataSync(s);
 				}
 			}else {
 				//内网同步
@@ -236,7 +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.dataSync(s);
 			}
 		});
 		//返回

--
Gitblit v1.9.3