wlzboy
6 天以前 09e6dc3fb7266620fafb5e341808a8eb36e080a1
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
package com.ruoyi.system.domain;
 
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
 
import java.util.List;
import java.io.Serializable;
 
/**
 * 车辆信息对象 tb_vehicle_info
 */
public class VehicleInfo extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
 
    /** 车辆ID */
    private Long vehicleId;
 
    /** 旧系统车辆ID(SQL Server CarID) */
    @Excel(name = "旧系统车辆ID")
    private Integer carId;
 
    /** 设备ID */
    @Excel(name = "设备ID")
    private String deviceId;
 
    /** 车牌号 */
    @Excel(name = "车牌号")
    private String vehicleNo;
 
    /** 车辆类型 */
    @Excel(name = "车辆类型")
    private String vehicleType;
 
    /** 车辆品牌 */
    @Excel(name = "车辆品牌")
    private String vehicleBrand;
 
    /** 车辆型号 */
    @Excel(name = "车辆型号")
    private String vehicleModel;
 
    /** 状态(0正常 1停用) */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;
 
    /** 平台标识 */
    @Excel(name = "平台标识")
    private String platformCode;
 
    /** 归属部门ID */
    @Excel(name = "归属部门ID")
    private Long deptId;
 
    /** 归属部门名称 */
    @Excel(name = "归属部门")
    private String deptName;
    
    /** 归属的多个分公司ID列表(用于查询和显示) */
    private List<Long> deptIds;
    
    /** 归属的多个分公司名称列表(用于显示) */
    private List<String> deptNames;
 
    public void setVehicleId(Long vehicleId) {
        this.vehicleId = vehicleId;
    }
 
    public Long getVehicleId() {
        return vehicleId;
    }
 
    public void setCarId(Integer carId) {
        this.carId = carId;
    }
 
    public Integer getCarId() {
        return carId;
    }
 
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
 
    public String getDeviceId() {
        return deviceId;
    }
 
    public void setVehicleNo(String vehicleNo) {
        this.vehicleNo = vehicleNo;
    }
 
    public String getVehicleNo() {
        return vehicleNo;
    }
 
    public void setVehicleType(String vehicleType) {
        this.vehicleType = vehicleType;
    }
 
    public String getVehicleType() {
        return vehicleType;
    }
 
    public void setVehicleBrand(String vehicleBrand) {
        this.vehicleBrand = vehicleBrand;
    }
 
    public String getVehicleBrand() {
        return vehicleBrand;
    }
 
    public void setVehicleModel(String vehicleModel) {
        this.vehicleModel = vehicleModel;
    }
 
    public String getVehicleModel() {
        return vehicleModel;
    }
 
    public void setStatus(String status) {
        this.status = status;
    }
 
    public String getStatus() {
        return status;
    }
 
    public String getPlatformCode() {
        return platformCode;
    }
 
    public void setPlatformCode(String platformCode) {
        this.platformCode = platformCode;
    }
 
    public Long getDeptId() {
        return deptId;
    }
 
    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
 
    public String getDeptName() {
        return deptName;
    }
 
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
    
    public List<Long> getDeptIds() {
        return deptIds;
    }
    
    public void setDeptIds(List<Long> deptIds) {
        this.deptIds = deptIds;
    }
    
    public List<String> getDeptNames() {
        return deptNames;
    }
    
    public void setDeptNames(List<String> deptNames) {
        this.deptNames = deptNames;
    }
 
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("vehicleId", getVehicleId())
                .append("carId", getCarId())
                .append("deviceId", getDeviceId())
                .append("vehicleNo", getVehicleNo())
                .append("vehicleType", getVehicleType())
                .append("vehicleBrand", getVehicleBrand())
                .append("vehicleModel", getVehicleModel())
                .append("status", getStatus())
                .append("platformCode", getPlatformCode())
                .append("deptId", getDeptId())
                .append("deptName", getDeptName())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
    
    /**
     * 初始化延迟加载的属性,避免序列化问题
     */
    public void initializeLazyProperties() {
        if (this.deptIds != null) {
            this.deptIds.size(); // 触发加载
        }
        if (this.deptNames != null) {
            this.deptNames.size(); // 触发加载
        }
    }
}