LineCompare.java 1.57 KB
package com.bsth.entity.report;

import javax.persistence.*;

@Entity
@Table(name = "bsth_c_line_compare")
public class LineCompare {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String lineCodeOut;//青浦线路编码
    private String name;//线路名
    private String convoy;//车队
    private String lineCode;//线路编码
    private String namePw;//票务系统线路名

    public Integer getId() {
        return id;
    }

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

    public String getLineCodeOut() {
        if(lineCodeOut==null){
            return null;
        }
        else if(lineCodeOut.length()>4){
            return lineCodeOut.substring(lineCodeOut.length()-4);
        }else {
            while (lineCodeOut.length()<4){
                lineCodeOut="0"+lineCodeOut;
            }
            return lineCodeOut;
        }
    }

    public void setLineCodeOut(String lineCodeOut) {
        this.lineCodeOut = lineCodeOut;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getConvoy() {
        return convoy;
    }

    public void setConvoy(String convoy) {
        this.convoy = convoy;
    }

    public String getLineCode() {
        return lineCode;
    }

    public void setLineCode(String lineCode) {
        this.lineCode = lineCode;
    }

    public String getNamePw() {
        return namePw;
    }

    public void setNamePw(String namePw) {
        this.namePw = namePw;
    }
}