feat(oa):为项目计划步骤添加日期时间格式化注解

-为 startTime 字段添加 JsonFormat 和 DateTimeFormat 注解
-为 endTime 字段添加 JsonFormat 和 DateTimeFormat 注解- 设置日期时间格式为 yyyy-MM-dd HH:mm:ss
- 配置时区为 GMT+8
This commit is contained in:
2025-11-11 15:30:13 +08:00
parent 086cdb6c3e
commit 46e964468a

View File

@@ -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; 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; private LocalDateTime endTime;
/** /**