package com.usky.ems.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 能源分项编码（leo.ems_energy_item_code），用于能源类型列表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ems_energy_item_code")
public class EmsEnergyItemCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String code;
    @TableField("parent_code")
    private String parentCode;
    private String unit;
    @TableField("unit_name")
    private String unitName;
    private String name;
    private String identifier;
    @TableField("energy_type")
    private Integer energyType;

    @TableField("created_by")
    private String createdBy;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("updated_by")
    private Long updatedBy;

    @TableField("updated_time")
    private LocalDateTime updatedTime;

    /** 租户号 */
    private Integer tenantId;

    /** 能耗绑定产品id集合 **/
    @TableField(exist = false)
    private List<Long> productIdList;

    /** 能耗分项绑定设备uuid集合 **/
    @TableField(exist = false)
    private List<String> deviceUuidList;
}
