From b56c3c0f1bc87935a8b59f6ee39f78b4796250ff Mon Sep 17 00:00:00 2001 From: “djh” <“3298565835@qq.com”> Date: 星期三, 06 十一月 2024 15:01:02 +0800 Subject: [PATCH] 修改前台页面对应的后台效果,新增学习记录的自然时间差 --- exam-system/src/main/java/com/gkhy/exam/coalmine/model/dto/req/CmStaffExamAddReqDTO.java | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/exam-system/src/main/java/com/gkhy/exam/coalmine/model/dto/req/CmStaffExamAddReqDTO.java b/exam-system/src/main/java/com/gkhy/exam/coalmine/model/dto/req/CmStaffExamAddReqDTO.java index d7a9f6f..242eb34 100644 --- a/exam-system/src/main/java/com/gkhy/exam/coalmine/model/dto/req/CmStaffExamAddReqDTO.java +++ b/exam-system/src/main/java/com/gkhy/exam/coalmine/model/dto/req/CmStaffExamAddReqDTO.java @@ -6,6 +6,7 @@ import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import java.io.Serializable; +import java.time.LocalDate; import java.time.LocalDateTime; /** @@ -20,15 +21,9 @@ @NotNull(message = "人员id不能为空") private Long staffId; - //开始时间 - @NotNull(message = "开始时间不能为空") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private LocalDateTime startTime; - - //结束时间 - @NotNull(message = "结束时间不能为空") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private LocalDateTime endTime; + //考试时间 + @NotNull(message = "考试时间不能为空") + private LocalDate examTime; //考试中心 @NotBlank(message = "考试中心不能为空") -- Gitblit v1.9.2