ElecInfo.java 2.29 KB
package com.bsth.entity;


import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 电量信息表
 */
@Entity
@Table(name = "bsth_c_dlb")
public class ElecInfo implements Serializable {
    @Id
    private Integer id;
    /**
     * 日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date rq;
    /**
     * 线路编码
     */
    private String xlbm;
    /**
     * 所属公司代码
     */
    private String ssgsdm;
    /**
     * 分公司代码
     */
    private String fgsdm;
    /**
     * 内部编码
     */
    private String nbbm;
    /**
     * 驾驶员
     */
    private String jsy;
    /**
     * 充电量
     */
    private Double cdl;
    /**
     * 耗电
     */
    private Double hd;

    @Override
    public int hashCode() {
        return this.toString().hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return this.toString().equals(((ElecInfo)obj).toString());
    }

    @Override
    public String toString() {
        return "oil_" + this.id;
    }

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getRq() {
		return rq;
	}

	public void setRq(Date rq) {
		this.rq = rq;
	}

    public String getXlbm() {
        return xlbm;
    }

    public void setXlbm(String xlbm) {
        this.xlbm = xlbm;
    }

    public String getSsgsdm() {
        return ssgsdm;
    }

    public void setSsgsdm(String ssgsdm) {
        this.ssgsdm = ssgsdm;
    }

    public String getFgsdm() {
        return fgsdm;
    }

    public void setFgsdm(String fgsdm) {
        this.fgsdm = fgsdm;
    }

	public String getNbbm() {
		return nbbm;
	}

	public void setNbbm(String nbbm) {
		this.nbbm = nbbm;
	}

	public String getJsy() {
		return jsy;
	}

	public void setJsy(String jsy) {
		this.jsy = jsy;
	}

	public Double getCdl() {
		return cdl;
	}

	public void setCdl(Double cdl) {
		this.cdl = cdl;
	}

	public Double getHd() {
		return hd;
	}

	public void setHd(Double hd) {
		this.hd = hd;
	}

}