package com.xhpc.common.domain;

import com.xhpc.common.core.web.domain.BaseEntity;

import javax.persistence.*;

/**
 * 终端 xhpc_terminal
 *
 * @author yuyang
 * @date 2021-07-20
 */
@Entity
@Table(name = "xhpc_terminal")
public class XhpcTerminal extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 终端id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "terminal_id", nullable = false)
    private Long terminalId;

    /**
     * 电桩id
     */
    @Column(name = "charging_pile_id")
    private Long chargingPileId;

    /**
     * 电站id
     */
    @Column(name = "charging_station_id")
    private Long chargingStationId;

    /**
     * 名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 编号
     */
    @Column(name = "serial_number")
    private String serialNumber;

    /** 电桩编号 */
    @Column(name = "pile_serial_number")
    private String pileSerialNumber;

    /**
     * 插枪状态
     */
    @Column(name = "gun_status", nullable = true)
    private Integer gunStatus;

    /** 工作状态(0离线 1故障 2空闲 3充电) */
    @Column(name = "work_status", nullable = true)
    private Integer workStatus;

    /** 状态（0正常 1停用） */
    @Column(name = "status", nullable = true)
    private Integer status;

    /** 删除标志（0代表存在 2代表删除） */
    @Column(name = "del_flag", nullable = true)
    private Integer delFlag;

    /** 费率模型id */
    @Column(name = "rate_model_id")
    private Long rateModelId;

    @Column(name = "operator_id_evcs", nullable = true)
    private String operatorIdEvcs;

    /**
     * 充电设备类型
     */
    @Column(name = "connector_type", nullable = true)
    private Integer connectorType;

    /**
     * 电桩统计数量
     */
    @Column(name = "number", nullable = true)
    private Integer number;

    private String prompt;


    public XhpcTerminal(String serialNumber, Integer status){
        this.serialNumber = serialNumber;
        this.status = status;
    }

    public XhpcTerminal() {

    }


    public int getConnectorType() {

        return connectorType;
    }

    public void setConnectorType(Integer connectorType) {

        this.connectorType = connectorType;
    }

    public String getOperatorIdEvcs() {
        return operatorIdEvcs;
    }

    public void setOperatorIdEvcs(String operatorIdEvcs) {
        this.operatorIdEvcs = operatorIdEvcs;
    }

    public static long getSerialVersionUID() {

        return serialVersionUID;
    }

    public Long getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(Long terminalId) {
        this.terminalId = terminalId;
    }

    public Long getChargingPileId() {

        return chargingPileId;
    }

    public void setChargingPileId(Long chargingPileId) {

        this.chargingPileId = chargingPileId;
    }

    public Long getChargingStationId() {

        return chargingStationId;
    }

    public void setChargingStationId(Long chargingStationId) {

        this.chargingStationId = chargingStationId;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    public String getSerialNumber() {

        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {

        this.serialNumber = serialNumber;
    }

    public String getPileSerialNumber() {

        return pileSerialNumber;
    }

    public void setPileSerialNumber(String pileSerialNumber) {

        this.pileSerialNumber = pileSerialNumber;
    }

    public Integer getGunStatus() {

        return gunStatus;
    }

    public void setGunStatus(Integer gunStatus) {

        this.gunStatus = gunStatus;
    }

    public Integer getWorkStatus() {

        return workStatus;
    }

    public void setWorkStatus(Integer workStatus) {

        this.workStatus = workStatus;
    }

    public Integer getStatus() {

        return status;
    }

    public void setStatus(Integer status) {

        this.status = status;
    }

    public Integer getDelFlag() {

        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {

        this.delFlag = delFlag;
    }

    public Long getRateModelId() {

        return rateModelId;
    }

    public void setRateModelId(Long rateModelId) {

        this.rateModelId = rateModelId;
    }

    public Integer getNumber() {

        return number;
    }

    public void setNumber(Integer number) {

        this.number = number;
    }

    public String getPrompt() {
        return prompt;
    }

    public void setPrompt(String prompt) {
        this.prompt = prompt;
    }

    @Override
    public String toString() {
        return "XhpcTerminal{" +
                "terminalId=" + terminalId +
                ", chargingPileId=" + chargingPileId +
                ", chargingStationId=" + chargingStationId +
                ", name='" + name + '\'' +
                ", serialNumber='" + serialNumber + '\'' +
                ", pileSerialNumber='" + pileSerialNumber + '\'' +
                ", gunStatus=" + gunStatus +
                ", workStatus=" + workStatus +
                ", status=" + status +
                ", delFlag=" + delFlag +
                ", rateModelId=" + rateModelId +
                ", operatorIdEvcs='" + operatorIdEvcs + '\'' +
                ", connectorType=" + connectorType +
                ", number=" + number +
                ", prompt='" + prompt + '\'' +
                '}';
    }
}
