SchedulePlanInfo.java 6.2 KB
package com.bsth.entity.schedule;

import com.bsth.entity.sys.SysUser;

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

/**
 * 排班计划明细。
 * 内部字段全冗余,无关联对象(外键关联关系),
 * 可以单独存在,其余表要关联此对象/表,必须使用中间对象/表。
 */
@Entity
@Table(name = "bsth_c_s_sp_info")
public class SchedulePlanInfo {

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

    /** 排班计划日期 */
    private Date scheduleDate;

    /** 路牌名称 */
    private String lpName;
    /** 线路编码 */
    private String xlBm;
    /** 线路名称 */
    private String xlName;
    /** 车辆自编号 */
    private String clZbh;


    /** 报道1时间(格式 HH:mm) */
    private String bd1Time;
    /** 出场1时间(格式 HH:mm) */
    private String cc1Time;
    /** 驾驶员1工号 */
    private String j1Gh;
    /** 驾驶员1名字 */
    private String j1Name;
    /** 售票员1工号 */
    private String s1Gh;
    /** 售票员1名字 */
    private String s1Name;

    /** 报道2时间(格式 HH:mm) */
    private String bd2Time;
    /** 出场2时间(格式 HH:mm) */
    private String cc2Time;
    /** 驾驶员2工号 */
    private String j2Gh;
    /** 驾驶员2名字 */
    private String j2Name;
    /** 售票员2工号 */
    private String s2Gh;
    /** 售票员2名字 */
    private String s2Name;

    // 冗余的时刻明细信息
    /** 线路方向 */
    private String xlDir;
    /** 起点站名称 */
    private String qdz;
    /** 终点站名称 */
    private String zdz;
    /** 发车时间(格式 HH:mm) */
    private String fcsj;
    /** 发车顺序号 */
    private int fcno;
    /** 对应班次数 */
    private int bcs;
    /** 计划里程 */
    private double jhlc;
    /** 班次历时 */
    private int bcsj;

    /** 操作人 */
    @ManyToOne(optional = false, cascade = CascadeType.PERSIST, fetch = FetchType.LAZY)
    private SysUser user;

    // 创建日期
    @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 Date getScheduleDate() {
        return scheduleDate;
    }

    public void setScheduleDate(Date scheduleDate) {
        this.scheduleDate = scheduleDate;
    }

    public String getLpName() {
        return lpName;
    }

    public void setLpName(String lpName) {
        this.lpName = lpName;
    }

    public String getXlName() {
        return xlName;
    }

    public void setXlName(String xlName) {
        this.xlName = xlName;
    }

    public String getClZbh() {
        return clZbh;
    }

    public void setClZbh(String clZbh) {
        this.clZbh = clZbh;
    }

    public String getCc1Time() {
        return cc1Time;
    }

    public void setCc1Time(String cc1Time) {
        this.cc1Time = cc1Time;
    }

    public String getJ1Gh() {
        return j1Gh;
    }

    public void setJ1Gh(String j1Gh) {
        this.j1Gh = j1Gh;
    }

    public String getJ1Name() {
        return j1Name;
    }

    public void setJ1Name(String j1Name) {
        this.j1Name = j1Name;
    }

    public String getS1Gh() {
        return s1Gh;
    }

    public void setS1Gh(String s1Gh) {
        this.s1Gh = s1Gh;
    }

    public String getS1Name() {
        return s1Name;
    }

    public void setS1Name(String s1Name) {
        this.s1Name = s1Name;
    }

    public String getBd1Time() {
        return bd1Time;
    }

    public void setBd1Time(String bd1Time) {
        this.bd1Time = bd1Time;
    }

    public String getBd2Time() {
        return bd2Time;
    }

    public void setBd2Time(String bd2Time) {
        this.bd2Time = bd2Time;
    }

    public String getCc2Time() {
        return cc2Time;
    }

    public void setCc2Time(String cc2Time) {
        this.cc2Time = cc2Time;
    }

    public String getJ2Gh() {
        return j2Gh;
    }

    public void setJ2Gh(String j2Gh) {
        this.j2Gh = j2Gh;
    }

    public String getJ2Name() {
        return j2Name;
    }

    public void setJ2Name(String j2Name) {
        this.j2Name = j2Name;
    }

    public String getS2Gh() {
        return s2Gh;
    }

    public void setS2Gh(String s2Gh) {
        this.s2Gh = s2Gh;
    }

    public String getS2Name() {
        return s2Name;
    }

    public void setS2Name(String s2Name) {
        this.s2Name = s2Name;
    }

    public String getXlDir() {
        return xlDir;
    }

    public void setXlDir(String xlDir) {
        this.xlDir = xlDir;
    }

    public String getQdz() {
        return qdz;
    }

    public void setQdz(String qdz) {
        this.qdz = qdz;
    }

    public String getZdz() {
        return zdz;
    }

    public void setZdz(String zdz) {
        this.zdz = zdz;
    }

    public String getFcsj() {
        return fcsj;
    }

    public void setFcsj(String fcsj) {
        this.fcsj = fcsj;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    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 int getFcno() {
        return fcno;
    }

    public void setFcno(int fcno) {
        this.fcno = fcno;
    }

    public int getBcs() {
        return bcs;
    }

    public void setBcs(int bcs) {
        this.bcs = bcs;
    }

    public double getJhlc() {
        return jhlc;
    }

    public void setJhlc(double jhlc) {
        this.jhlc = jhlc;
    }

    public int getBcsj() {
        return bcsj;
    }

    public void setBcsj(int bcsj) {
        this.bcsj = bcsj;
    }

    public String getXlBm() {
        return xlBm;
    }

    public void setXlBm(String xlBm) {
        this.xlBm = xlBm;
    }
}