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/apply/service/impl/ApplyServiceImpl.java |   44 +++++++++++++++++++++++++++-----------------
 1 files changed, 27 insertions(+), 17 deletions(-)

diff --git a/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java b/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
index c2ec3d2..3449a4b 100644
--- a/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
+++ b/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
@@ -28,8 +28,10 @@
 import org.springblade.modules.exam.service.ExamScoreService;
 import org.springblade.modules.system.entity.User;
 import org.springblade.modules.system.service.IUserService;
+import org.springblade.modules.system.service.MyAsyncService;
 import org.springblade.modules.training.entity.TrainingRegistration;
 import org.springblade.modules.training.service.TrainingRegistrationService;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
@@ -40,22 +42,23 @@
 import java.text.SimpleDateFormat;
 import java.util.*;
 
-import static org.springblade.common.constant.FtpConstant.*;
-
 /**
  * 考试报名服务实现类
  * @author zhongrj
  */
 @Service
-@AllArgsConstructor
 public class ApplyServiceImpl extends ServiceImpl<ApplyMapper, Apply> implements ApplyService {
 
+	@Autowired
+	private ExamPaperService examPaperService;
 
-	private final ExamPaperService examPaperService;
+	@Autowired
+	private IUserService userService;
 
-	private final IUserService userService;
-
-	private final TrainingRegistrationService trainingRegistrationService;
+	@Autowired
+	private TrainingRegistrationService trainingRegistrationService;
+	@Autowired
+	private  MyAsyncService myAsyncService;
 
 	/**
 	 * 自定义分页数据
@@ -142,7 +145,8 @@
 						+ "'" + examId + "'" + ","
 						+"'" + apply1.getIsExam() + "'" + ");" +
 						"update blade_user set is_apply = " + "'" + user1.getIsApply() + "'" +"where id = " + "'" + user1.getId() + "'";
-					FtpUtil.sqlFileUpload(s);
+					//FtpUtil.sqlFileUpload(s);
+					myAsyncService.dataSync(s);
 				}else {
 					if (user1.getIsApply()!=1) {
 						Apply apply1 = new Apply();
@@ -173,7 +177,8 @@
 							+ "'" + examId + "'" + ","
 							+"'" + apply1.getIsExam() + "'" + ");" +
 							"update blade_user set is_apply = " + "'" + user1.getIsApply() + "'" +"where id = " + "'" + user1.getId() + "'";
-						FtpUtil.sqlFileUpload(s);
+						//FtpUtil.sqlFileUpload(s);
+						myAsyncService.dataSync(s);
 					}
 				}
 			}
@@ -394,8 +399,10 @@
 	 * @return
 	 */
 	@Override
-	public List<Long> getApplyIds() {
-		return baseMapper.getApplyIds();
+	public List<Apply> getApplyIds(ApplyVO applyVO) {
+		applyVO.setSerialStart(applyVO.getSerialStart() -1);
+		applyVO.setSerialEnd(applyVO.getSerialEnd() -applyVO.getSerialStart());
+		return baseMapper.getApplyIds(applyVO);
 	}
 
 	/**
@@ -461,9 +468,10 @@
 			apply1.setIsExam(3);
 			baseMapper.updateById(apply1);
 
-//			String s1 =
-//				"update sys_apply set is_exam = " + apply1.getIsExam() + " " +"where id = " + "'" + apply1.getId() + "'";
-//			FtpUtil.sqlFileUpload(s1);
+			String s1 =
+				"update sys_apply set is_exam = " + apply1.getIsExam() + " " +"where id = " + "'" + apply1.getId() + "'";
+			//FtpUtil.sqlFileUpload(s1);
+			myAsyncService.dataSync(s1);
 		}
 		//模拟考
 		if (apply.getExamType()==2){
@@ -471,11 +479,13 @@
 			trainingRegistration.setId(apply.getId());
 			//考试中
 			trainingRegistration.setIsExam(3);
+//			trainingRegistration.setIsExam(1);
 			trainingRegistrationService.updateById(trainingRegistration);
 
-//			String s1 =
-//				"update sys_training_registration set is_exam = " + trainingRegistration.getIsExam() + " " +"where id = " + "'" + trainingRegistration.getId() + "'";
-//			FtpUtil.sqlFileUpload(s1);
+			String s1 =
+				"update sys_training_registration set is_exam = " + trainingRegistration.getIsExam() + " " +"where id = " + "'" + trainingRegistration.getId() + "'";
+			//FtpUtil.sqlFileUpload(s1);
+			myAsyncService.dataSync(s1);
 		}
 	}
 

--
Gitblit v1.9.3