feat(energy-record): 为统计日期字段添加JSON和日期格式化注解

- 添加@JsonFormat注解以支持yyyy-MM-dd格式的JSON序列化
- 添加@DateTimeFormat注解以支持yyyy-MM-dd格式的日期解析
- 确保recordDate字段在API交互中的格式一致性
This commit is contained in:
2026-04-20 14:47:57 +08:00
parent d398c2e4fc
commit c3bef9615e

View File

@@ -44,6 +44,8 @@ public class EmsEnergyRecordBo extends BaseEntity {
/** /**
* 统计日期yyyy-MM-dd * 统计日期yyyy-MM-dd
*/ */
@JsonFormat(pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date recordDate; private Date recordDate;
/** /**