LineCompare.java
1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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;//票务系统线路名
private int subLine;//是否子线路0-否 1是
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 && subLine==0){
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;
}
public int getSubLine() {
return subLine;
}
public void setSubLine(int subLine) {
this.subLine = subLine;
}
}