longz
2026-04-21 69c51f85223ff8c14c55e61d48865ac8b1275e22
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
package com.stylefeng.guns.modular.crossCity.warpper;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
@ApiModel("同班次其他司机信息")
public class OtherDriverShiftWarpper {
 
    @ApiModelProperty("司机排班记录id")
    private Integer lineShiftDriverId;
 
    @ApiModelProperty("司机id")
    private Integer driverId;
 
    @ApiModelProperty("司机头像")
    private String headImgUrl;
 
    @ApiModelProperty("司机姓名")
    private String driverName;
 
    @ApiModelProperty("车牌号")
    private String carLicensePlate;
 
    @ApiModelProperty("车型")
    private String carModel;
 
    @ApiModelProperty("车辆颜色")
    private String carColor;
 
    @ApiModelProperty("可乘车人数")
    private Integer laveSeat;
 
    @ApiModelProperty("总人数")
    private Integer totalSeat;
 
    @ApiModelProperty("评分")
    private Double score;
 
    @ApiModelProperty("发车时间")
    private String startTime;
 
    public Integer getLineShiftDriverId() {
        return lineShiftDriverId;
    }
 
    public void setLineShiftDriverId(Integer lineShiftDriverId) {
        this.lineShiftDriverId = lineShiftDriverId;
    }
 
    public Integer getDriverId() {
        return driverId;
    }
 
    public void setDriverId(Integer driverId) {
        this.driverId = driverId;
    }
 
    public String getHeadImgUrl() {
        return headImgUrl;
    }
 
    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }
 
    public String getDriverName() {
        return driverName;
    }
 
    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }
 
    public String getCarLicensePlate() {
        return carLicensePlate;
    }
 
    public void setCarLicensePlate(String carLicensePlate) {
        this.carLicensePlate = carLicensePlate;
    }
 
    public String getCarModel() {
        return carModel;
    }
 
    public void setCarModel(String carModel) {
        this.carModel = carModel;
    }
 
    public String getCarColor() {
        return carColor;
    }
 
    public void setCarColor(String carColor) {
        this.carColor = carColor;
    }
 
    public Integer getLaveSeat() {
        return laveSeat;
    }
 
    public void setLaveSeat(Integer laveSeat) {
        this.laveSeat = laveSeat;
    }
 
    public Integer getTotalSeat() {
        return totalSeat;
    }
 
    public void setTotalSeat(Integer totalSeat) {
        this.totalSeat = totalSeat;
    }
 
    public Double getScore() {
        return score;
    }
 
    public void setScore(Double score) {
        this.score = score;
    }
 
    public String getStartTime() {
        return startTime;
    }
 
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }
 
    public static OtherDriverShiftWarpper fromMap(Map<String, Object> map) {
        OtherDriverShiftWarpper warpper = new OtherDriverShiftWarpper();
        if (map == null) {
            return warpper;
        }
        warpper.setLineShiftDriverId(map.get("lineShiftDriverId") == null ? null : Integer.valueOf(map.get("lineShiftDriverId").toString()));
        warpper.setDriverId(map.get("driverId") == null ? null : Integer.valueOf(map.get("driverId").toString()));
        warpper.setHeadImgUrl(map.get("headImgUrl") == null ? "" : map.get("headImgUrl").toString());
        warpper.setDriverName(map.get("driverName") == null ? "" : map.get("driverName").toString());
        warpper.setCarLicensePlate(map.get("carLicensePlate") == null ? "" : map.get("carLicensePlate").toString());
        warpper.setCarModel(map.get("carModel") == null ? "" : map.get("carModel").toString());
        warpper.setCarColor(map.get("carColor") == null ? "" : map.get("carColor").toString());
        warpper.setLaveSeat(map.get("laveSeat") == null ? 0 : Integer.valueOf(map.get("laveSeat").toString()));
        warpper.setTotalSeat(map.get("totalSeat") == null ? 0 : Integer.valueOf(map.get("totalSeat").toString()));
        warpper.setScore(map.get("score") == null ? 0D : Double.valueOf(map.get("score").toString()));
        warpper.setStartTime(map.get("startTime") == null ? "" : map.get("startTime").toString());
        return warpper;
    }
 
    public static List<OtherDriverShiftWarpper> fromMaps(List<Map<String, Object>> maps) {
        List<OtherDriverShiftWarpper> list = new ArrayList<>();
        if (maps == null) {
            return list;
        }
        for (Map<String, Object> map : maps) {
            list.add(fromMap(map));
        }
        return list;
    }
}