package com.kym.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kym.entity.BaseEntity;
import lombok.Getter;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author skyline
 * @since 2023-08-07
 */
@Getter
@TableName("t_equipment_relation")
public class EquipmentRelation extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * EN+站点id
     */
    private String stationId;

    /**
     * 二维码sn号
     */
    private String shortId;

    /**
     * EN+充电的sn号
     */
    private String equipmentId;
    /**
     * 充电枪口编号
     */
    @TableField(exist = false)
    private String connectorId;

    /**
     * 状态 0：启用，1：未启用
     */
    private Integer status;

    public void setStationId(String stationId) {
        this.stationId = stationId;
    }

    public void setShortId(String shortId) {
        this.shortId = shortId;
    }

    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
        this.connectorId = equipmentId.concat("1");
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
