feat(oa): 优化项目时间筛选字段格式
- 为beginCreateTime和endCreateTime字段添加时分秒支持 - 设置JSON序列化格式为yyyy-MM-dd HH:mm:ss - 配置日期反序列化格式以匹配前端传输数据 - 统一时间字段的时区处理为GMT+8 - 提升时间筛选精度从日期级别到秒级别
This commit is contained in:
@@ -207,8 +207,12 @@ public class SysOaProjectBo extends BaseEntity {
|
|||||||
//生产结项状态
|
//生产结项状态
|
||||||
private Integer productStatus;
|
private Integer productStatus;
|
||||||
|
|
||||||
//时间筛选字段
|
//时间筛选字段 带时分秒
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date beginCreateTime;
|
private Date beginCreateTime;
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date endCreateTime;
|
private Date endCreateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user