From 46e964468a52f4bf7f41a6333421d6c75e506436 Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Tue, 11 Nov 2025 15:30:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(oa):=E4=B8=BA=E9=A1=B9=E7=9B=AE=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E6=AD=A5=E9=AA=A4=E6=B7=BB=E5=8A=A0=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -为 startTime 字段添加 JsonFormat 和 DateTimeFormat 注解 -为 endTime 字段添加 JsonFormat 和 DateTimeFormat 注解- 设置日期时间格式为 yyyy-MM-dd HH:mm:ss - 配置时区为 GMT+8 --- .../java/com/ruoyi/oa/domain/bo/OaProjectScheduleStepBo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaProjectScheduleStepBo.java b/ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaProjectScheduleStepBo.java index e4f1fb3..efde8dd 100644 --- a/ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaProjectScheduleStepBo.java +++ b/ruoyi-oa/src/main/java/com/ruoyi/oa/domain/bo/OaProjectScheduleStepBo.java @@ -119,6 +119,8 @@ public class OaProjectScheduleStepBo extends BaseEntity { /** * 开始时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime startTime; /** @@ -129,6 +131,8 @@ public class OaProjectScheduleStepBo extends BaseEntity { /** * 结束时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime endTime; /**