From 70dcf4e610a0ec5fd6ca2c3daf9edf4957b30529 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期二, 25 二月 2025 16:34:46 +0800
Subject: [PATCH] 考试制证修改

---
 exam-system/src/main/java/com/gkhy/exam/coalmine/controller/CmStaffExamController.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/exam-system/src/main/java/com/gkhy/exam/coalmine/controller/CmStaffExamController.java b/exam-system/src/main/java/com/gkhy/exam/coalmine/controller/CmStaffExamController.java
index ac33b1e..f879d52 100644
--- a/exam-system/src/main/java/com/gkhy/exam/coalmine/controller/CmStaffExamController.java
+++ b/exam-system/src/main/java/com/gkhy/exam/coalmine/controller/CmStaffExamController.java
@@ -11,6 +11,7 @@
 import com.gkhy.exam.coalmine.model.dto.req.CmStaffResumeUpdateReqDTO;
 import com.gkhy.exam.coalmine.service.CmStaffManagerService;
 import com.gkhy.exam.coalmine.service.baseService.CmStaffExamService;
+import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
@@ -21,6 +22,7 @@
 import javax.annotation.Resource;
 import javax.validation.constraints.NotNull;
 import java.io.Serializable;
+import java.time.LocalDate;
 import java.time.LocalDateTime;
 import java.util.List;
 
@@ -28,6 +30,7 @@
  * @author hz
  * @since 2023-09-14 10:37:03
  */
+@Api(tags = "考试经历管理")
 @RestController
 @RequestMapping("/cmStaffExam")
 public class CmStaffExamController{
@@ -44,8 +47,7 @@
     @ApiOperation(value = "新增考试经历",httpMethod = "POST")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "staffId",dataTypeClass = Long.class, value = "人员id",required = true),
-            @ApiImplicitParam(name = "startTime", dataTypeClass = LocalDateTime.class,value = "开始时间"),
-            @ApiImplicitParam(name = "endTime", dataTypeClass = LocalDateTime.class,value = "结束时间",required = true),
+            @ApiImplicitParam(name = "examTime", dataTypeClass = LocalDate.class,value = "考试时间"),
             @ApiImplicitParam(name = "examCenter", dataTypeClass = String.class,value = "考试中心",required = true),
             @ApiImplicitParam(name = "subject", dataTypeClass = String.class,value = "科目",required = true),
             @ApiImplicitParam(name = "result", dataTypeClass = String.class,value = "考试结果;0-通过;1-未通过",required = true)
@@ -60,7 +62,7 @@
      */
     @ApiOperation(value = "根据id删除考试经历",httpMethod = "GET")
     @ApiImplicitParam(name = "id",dataTypeClass = Long.class,value = "考试经历id",required = true)
-    @GetMapping("/del")
+    @GetMapping("/del/{id}")
     public AjaxResult delete(@PathVariable @NotNull(message = "id不能为空") Long id) {
         return this.cmStaffManagerService.deleteCmStaffExam(id);
     }
@@ -73,8 +75,7 @@
     @ApiImplicitParams({
             @ApiImplicitParam(name = "id",dataTypeClass = Long.class, value = "考试经历id",required = true),
             @ApiImplicitParam(name = "staffId",dataTypeClass = Long.class, value = "人员id",required = true),
-            @ApiImplicitParam(name = "startTime", dataTypeClass = LocalDateTime.class,value = "开始时间"),
-            @ApiImplicitParam(name = "endTime", dataTypeClass = LocalDateTime.class,value = "结束时间",required = true),
+            @ApiImplicitParam(name = "examTime", dataTypeClass = LocalDate.class,value = "考试时间"),
             @ApiImplicitParam(name = "examCenter", dataTypeClass = String.class,value = "考试中心",required = true),
             @ApiImplicitParam(name = "subject", dataTypeClass = String.class,value = "科目",required = true),
             @ApiImplicitParam(name = "result", dataTypeClass = String.class,value = "考试结果;0-通过;1-未通过",required = true)

--
Gitblit v1.9.2