feat(energy-record): 为统计日期字段添加JSON和日期格式化注解
- 添加@JsonFormat注解以支持yyyy-MM-dd格式的JSON序列化 - 添加@DateTimeFormat注解以支持yyyy-MM-dd格式的日期解析 - 确保recordDate字段在API交互中的格式一致性
This commit is contained in:
@@ -44,6 +44,8 @@ public class EmsEnergyRecordBo extends BaseEntity {
|
||||
/**
|
||||
* 统计日期(yyyy-MM-dd)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date recordDate;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user