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/exam/controller/ExamPaperController.java |   40 ++++++++++++++++++++++++++++++++--------
 1 files changed, 32 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/springblade/modules/exam/controller/ExamPaperController.java b/src/main/java/org/springblade/modules/exam/controller/ExamPaperController.java
index ec26338..263ce83 100644
--- a/src/main/java/org/springblade/modules/exam/controller/ExamPaperController.java
+++ b/src/main/java/org/springblade/modules/exam/controller/ExamPaperController.java
@@ -127,6 +127,30 @@
 		return R.data(pages);
 	}
 
+	/**
+	 * 查询列表
+	 *
+	 * @param examPaperVO 查询参数
+	 * @return
+	 */
+	@GetMapping("/getList")
+	public R getList(ExamPaperVO examPaperVO) {
+		List<ExamPaperVO>list = examPaperService.getList(examPaperVO);
+		return R.data(list);
+	}
+
+	/**
+	 * 查询列表
+	 *
+	 * @param examPaperVO 查询参数
+	 * @return
+	 */
+	@GetMapping("/getLatest")
+	public R getLatest(ExamPaperVO examPaperVO) {
+		ExamPaperVO latest= examPaperService.getLatest(examPaperVO);
+		return R.data(latest);
+	}
+
 
 	/**
 	 * 新增
@@ -143,7 +167,7 @@
 				"'" + "," + "'" + examPaper.getExamType() +
 				"'" + "," + "'" + format + "'" + ")";
 			//FtpUtil.sqlFileUpload(s);
-			myAsyncService.FTP(s);
+			myAsyncService.dataSync(s);
 		}
 		return R.status(save);
 	}
@@ -162,7 +186,7 @@
 					",start_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(exam.getStartTime()) + "'" +
 					" " + "where id = " + "'" + exam.getId() + "'";
 			//FtpUtil.sqlFileUpload(s1);
-			myAsyncService.FTP(s1);
+			myAsyncService.dataSync(s1);
 		}
 		return R.status(b);
 	}
@@ -190,7 +214,7 @@
 			//内网同步
 			String s1 = "delete from ksxt_exam where id = " + "'" + id + "'";
 			//FtpUtil.sqlFileUpload(s1);
-			myAsyncService.FTP(s1);
+			myAsyncService.dataSync(s1);
 		});
 		boolean temp = examPaperService.removeByIds(Func.toLongList(ids));
 		return R.status(temp);
@@ -270,7 +294,7 @@
 	 */
 	@PostMapping("/getExamDetail")
 	public R getExamDetail(@RequestBody ExamPaperVO examPaper) {
-		System.out.println("examPaper = " + examPaper);
+//		System.out.println("examPaper = " + examPaper);
 		return R.data(examPaperService.getExamDetail(examPaper));
 	}
 
@@ -291,7 +315,7 @@
 					+ ",confirm_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(exam.getConfirmTime()) + "'"
 					+ " " + "where id = " + "'" + exam.getId() + "'";
 			//FtpUtil.sqlFileUpload(s1);
-			myAsyncService.FTP(s1);
+			myAsyncService.dataSync(s1);
 		}
 		//返回数据
 		return R.data(status);
@@ -303,7 +327,7 @@
 	 *
 	 * @param examPaper 报名培训申请信息对象
 	 */
-	@PostMapping("/update-audit")
+	@PostMapping(value = "/update-audit",produces = "application/json;charset=UTF-8")
 	public R updateAudit(@RequestBody ExamPaper examPaper) {
 		//查询之前的审核状态,如果审核状态没有发生改变,则不会去修改审核信息
 		ExamPaper paper = examPaperService.getById(examPaper.getId());
@@ -321,7 +345,7 @@
 						+ ",audit_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(examPaper.getAuditTime()) + "'"
 						+ " " + "where id = " + "'" + examPaper.getId() + "'";
 				//FtpUtil.sqlFileUpload(s1);
-				myAsyncService.FTP(s1);
+				myAsyncService.dataSync(s1);
 			}
 			//查询当前考试已报名的人员培训报名数据集合
 			List<TrainingRegistration> trainingRegistrations = examPaperService.getTrainList(examPaper.getId());
@@ -363,7 +387,7 @@
 								+ ",audit_status = " + "'" + trainingRegistration.getAuditStatus() + "'"
 								+ " " + "where id = " + "'" + trainingRegistration.getId() + "'";
 						//FtpUtil.sqlFileUpload(s2);
-						myAsyncService.FTP(s2);
+						myAsyncService.dataSync(s2);
 					}
 				});
 			}

--
Gitblit v1.9.3