package com.ruoyi.equipmentenergyconsumption.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.framework.aspectj.lang.annotation.Excel; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.util.Date; @Data @TableName("energy_period") @Schema public class EnergyPeriod { @TableId(value = "id", type = IdType.AUTO) private Long id; /** * 日期 */ @Schema(description = "日期") @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") private Date date; /** * 单价 */ @Schema(description = "单价") @Excel(name = "单价") private Double price; /** * 租户id */ @TableField(fill = FieldFill.INSERT) private Long tenantId; /** * 峰段 */ @Schema(description = "峰段") @Excel(name = "峰段") private Double peak; /** * 谷段 */ @Schema(description = "谷段") @Excel(name = "谷段") private Double valley; /** * 平段 */ @Schema(description = "平段") @Excel(name = "平段") private Double flat; /** * 尖段 */ @Schema(description = "尖段") @Excel(name = "尖段") private Double sharp; @Schema(description = "创建用户") @TableField(fill = FieldFill.INSERT) private Integer createUser; @TableField(fill = FieldFill.INSERT) private Long deptId; }