DriverSignInRecommendation.java
1.4 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
package com.ruoyi.pojo;
import com.ruoyi.domain.DriverScheduling;
import lombok.Data;
import java.util.Objects;
import static com.ruoyi.common.ConstDriverProperties.BC_TYPE_OUT;
/**
* 驾驶员操作对象
*
* @author 20412
*/
@Data
public class DriverSignInRecommendation {
private Long id;
private String posts;
private String bcType;
private Integer index;
private Long timestamps;
private Long signInId;
private Integer exType;
private String nbbm;
private String lpName;
private String lineName;
private Long signTime;
private String jobCode;
private String name;
private String fleetName;
public DriverSignInRecommendation() {
}
public DriverSignInRecommendation(DriverScheduling dto, Integer index) {
this.setIndex(index);
this.setFleetName(dto.getFleetName());
this.setBcType(dto.getBcType());
this.setJobCode(dto.getJobCode());
this.setName(dto.getName());
this.setTimestamps(BC_TYPE_OUT.equals(dto.getBcType()) ? dto.getFcsjT() : dto.getZdsjT());
this.setSignInId(dto.getSignInId());
this.setSignTime(Objects.isNull(dto.getSignTime()) ? null : dto.getSignTime().getTime());
this.setPosts(dto.getPosts());
this.setExType(dto.getExType());
this.setLineName(dto.getLineName());
this.setNbbm(dto.getNbbm());
this.setLpName(dto.getLpName());
}
}