PassengerFlow.java 3.76 KB
package com.bsth.message.entity;

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

@Entity
@Table(name = "bsth_c_passenger_flow")
public class PassengerFlow {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 线路
     */
    private String line;

    private String lineName;

    /**
     * 上下行
     */
    private int direction;

    /**
     * 车辆编码
     */
    private String insideCode;

    /**
     * 日期(yyyyMMddHH)
     */
    private String rq;

    /**
     * 站点序号
     */
    @Transient
    private int stationSeq;

    private String stationCode;

    private String stationName;

    private int stationRouteCode;

    /**
     * 车门编码
     */
    private int doorCode;

    /**
     * 上客人数
     */
    private int upNum;

    /**
     * 下客人数
     */
    private int downNum;

    /**
     * 数据产生时间
     */
    private Date createDate;

    public Long getId() {
        return id;
    }

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

    public String getLine() {
        return line;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public int getDirection() {
        return direction;
    }

    public void setDirection(int direction) {
        this.direction = direction;
    }

    public String getInsideCode() {
        return insideCode;
    }

    public void setInsideCode(String insideCode) {
        this.insideCode = insideCode;
    }

    public String getRq() {
        return rq;
    }

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

    public int getStationSeq() {
        return stationSeq;
    }

    public void setStationSeq(int stationSeq) {
        this.stationSeq = stationSeq;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public int getStationRouteCode() {
        return stationRouteCode;
    }

    public void setStationRouteCode(int stationRouteCode) {
        this.stationRouteCode = stationRouteCode;
    }

    public int getDoorCode() {
        return doorCode;
    }

    public void setDoorCode(int doorCode) {
        this.doorCode = doorCode;
    }

    public int getUpNum() {
        return upNum;
    }

    public void setUpNum(int upNum) {
        this.upNum = upNum;
    }

    public int getDownNum() {
        return downNum;
    }

    public void setDownNum(int downNum) {
        this.downNum = downNum;
    }

    public Date getCreateDate() {
        return createDate;
    }

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

    @Override
    public String toString() {
        return "PassengerFlow{" +
                "id=" + id +
                ", line='" + line + '\'' +
                ", lineName='" + lineName + '\'' +
                ", direction=" + direction +
                ", insideCode='" + insideCode + '\'' +
                ", rq='" + rq + '\'' +
                ", stationSeq=" + stationSeq +
                ", stationCode='" + stationCode + '\'' +
                ", stationName='" + stationName + '\'' +
                ", stationRouteCode='" + stationRouteCode + '\'' +
                ", doorCode=" + doorCode +
                ", upNum=" + upNum +
                ", downNum=" + downNum +
                ", createDate=" + createDate +
                '}';
    }
}