From 2120e286982ca827414739fde465e8a168fc7eeb Mon Sep 17 00:00:00 2001 From: zhaokai Date: Mon, 6 Jul 2026 17:27:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(config):=20=E6=9B=B4=E6=96=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=92=8C=E5=9F=B9=E8=AE=AD=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=B7=BB=E5=8A=A0=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start/src/main/resources/bootstrap.yml | 6 +++--- .../com/zcloud/edu/dto/training/TrainingUserAddCmd.java | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/start/src/main/resources/bootstrap.yml b/start/src/main/resources/bootstrap.yml index 77138f9..3e32bb6 100644 --- a/start/src/main/resources/bootstrap.yml +++ b/start/src/main/resources/bootstrap.yml @@ -3,8 +3,8 @@ spring: import: # - classpath:nacos.yml # - classpath:sdk.yml - - classpath:nacos-prod.yml - - classpath:sdk-prod.yml # - classpath:nacos-prod.yml -# - classpath:sdk-prod2.yml +# - classpath:sdk-prod.yml + - classpath:nacos-prod.yml + - classpath:sdk-prod2.yml - classpath:swagger.yml diff --git a/web-client/src/main/java/com/zcloud/edu/dto/training/TrainingUserAddCmd.java b/web-client/src/main/java/com/zcloud/edu/dto/training/TrainingUserAddCmd.java index db05109..151d44c 100644 --- a/web-client/src/main/java/com/zcloud/edu/dto/training/TrainingUserAddCmd.java +++ b/web-client/src/main/java/com/zcloud/edu/dto/training/TrainingUserAddCmd.java @@ -1,6 +1,7 @@ package com.zcloud.edu.dto.training; import com.alibaba.cola.dto.Command; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; @@ -29,10 +30,12 @@ public class TrainingUserAddCmd extends Command { @ApiModelProperty(value = "有效期开始时间", name = "startTime", required = true) @NotNull(message = "有效期开始时间不能为空") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime startTime; @ApiModelProperty(value = "有效期结束时间", name = "endTime", required = true) @NotNull(message = "有效期结束时间不能为空") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime endTime; @ApiModelProperty(value = "考试状态:1.待考试2:考试通过,3:考试不通过", name = "examineStatus", required = true)