EmployeeConfigInfo.java 2.35 KB
package com.bsth.entity.schedule;

import javax.persistence.*;
import java.util.Date;

/**
 * 人员配置信息。
 * TODO:暂时这样写,演示后重新修正
 */
@Entity
@Table(name = "bsth_c_s_ecinfo")
public class EmployeeConfigInfo {

    /** 主键Id */
    @Id
    @GeneratedValue
    private Long id;

    /** TODO:等其他实体类完整后,做关联引用 */
    /** 线路名称 */
    private String xl;
    /** 搭班编码(TODO:不懂) */
    private String dbbm;
    /** 驾驶员工号 */
    private String jsygh;
    /** 驾驶员 */
    private String jsy;
    /** 售票员工号 */
    private String spygh;
    /** 售票员 */
    private String spy;
    /** 车辆自编号 */
    private String zbh;

    // 创建日期
    @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    private Date createDate;
    // 修改日期
    @Column(name = "update_date", columnDefinition = "TIMESTAMP  DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
    private Date updateDate;

    public Long getId() {
        return id;
    }

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

    public String getXl() {
        return xl;
    }

    public void setXl(String xl) {
        this.xl = xl;
    }

    public String getDbbm() {
        return dbbm;
    }

    public void setDbbm(String dbbm) {
        this.dbbm = dbbm;
    }

    public String getJsy() {
        return jsy;
    }

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

    public String getSpy() {
        return spy;
    }

    public void setSpy(String spy) {
        this.spy = spy;
    }

    public String getZbh() {
        return zbh;
    }

    public void setZbh(String zbh) {
        this.zbh = zbh;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getJsygh() {
        return jsygh;
    }

    public void setJsygh(String jsygh) {
        this.jsygh = jsygh;
    }

    public String getSpygh() {
        return spygh;
    }

    public void setSpygh(String spygh) {
        this.spygh = spygh;
    }
}