package com.mes.energy.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.Date; @Data @TableName("energy_consumption") public class EnergyConsumption { @TableId(type = IdType.AUTO) private Integer id; @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date recordDate; private Double energyValue; private Integer userId; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createdAt; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date updatedAt; }