DriverSignRecommendation.java
1.05 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
package com.ruoyi.pojo;
import com.ruoyi.pojo.entity.DriverScheduling;
import lombok.Data;
import static com.ruoyi.common.ConstDriverProperties.BC_TYPE_OUT;
/**
* 驾驶员操作对象
*
* @author 20412
*/
@Data
public class DriverSignRecommendation {
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;
public DriverSignRecommendation() {
}
public DriverSignRecommendation(DriverScheduling dto, Integer index) {
this.setIndex(index);
this.setBcType(dto.getBcType());
this.setTimestamps(BC_TYPE_OUT.equals(dto.getBcType()) ? dto.getFcsjT() : dto.getZdsjT());
this.setSignInId(dto.getSignInId());
this.setPosts(dto.getPosts());
this.setExType(dto.getExType());
this.setLineName(dto.getLineName());
this.setNbbm(dto.getNbbm());
this.setLpName(dto.getLpName());
}
}