DriverSignRecommendation.java
870 Bytes
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;
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());
}
}