feat(oa):为项目计划步骤添加日期时间格式化注解
-为 startTime 字段添加 JsonFormat 和 DateTimeFormat 注解 -为 endTime 字段添加 JsonFormat 和 DateTimeFormat 注解- 设置日期时间格式为 yyyy-MM-dd HH:mm:ss - 配置时区为 GMT+8
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user