LinggangSchedulingVO.java
3.86 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
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
package com.ruoyi.domain.scheduling.vo;
import com.ruoyi.common.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import java.util.Date;
import java.util.Objects;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "排班的VO")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
/** VO*/
public class LinggangSchedulingVO implements java.io.Serializable {
private static final long serialVersionUID = 427513728L;
/***主键*/
@ApiModelProperty(value = "主键", example = "1")
private Long id;
/***排班日期*/
@ApiModelProperty(value = "排班日期")
private Date scheduleDate;
/***线路名称*/
@ApiModelProperty(value = "线路名称")
private String lineName;
/***工号*/
@ApiModelProperty(value = "工号")
private String jobCode;
/***姓名*/
@ApiModelProperty(value = "姓名")
private String name;
/***工种*/
@ApiModelProperty(value = "工种")
private String posts;
/***路牌*/
@ApiModelProperty(value = "路牌")
private String lpName;
/***车辆自编号*/
@ApiModelProperty(value = "车辆自编号")
private String nbbm;
/***班次类型;in 进站 ;out 出站*/
@ApiModelProperty(value = "班次类型;in 进站 ;out 出站")
private String bcType;
/***发车时间*/
@ApiModelProperty(value = "发车时间", example = "1")
private Long fcsjT;
/***到站时间*/
@ApiModelProperty(value = "到站时间", example = "1")
private Long zdsjT;
/***签到表id*/
@ApiModelProperty(value = "签到表id", example = "1")
private Long signInId;
/***记录状态*/
@ApiModelProperty(value = "记录状态", example = "1")
private Integer exType;
/***打卡时间*/
@ApiModelProperty(value = "打卡时间")
private java.util.Date signTime;
/***打卡类型*/
@ApiModelProperty(value = "打卡类型", example = "1")
private Integer signType;
/***是否酒精测试*/
@ApiModelProperty(value = "是否酒精测试", example = "1")
private Integer alcoholFlag;
/***酒精测试含量*/
@ApiModelProperty(value = "酒精测试含量")
private java.math.BigDecimal alcoholIntake;
/***原因*/
@ApiModelProperty(value = "原因")
private String remark;
/***1:实际排班表;100为计划排班表*/
@ApiModelProperty(value = "1:实际排班表;100为计划排班表", example = "1")
private java.lang.Integer type;
/***钥匙ID*/
@ApiModelProperty(value = "钥匙ID", example = "1")
private Integer keyInfoId;
private Integer alcoholCount;
private java.lang.String qdzname;
private java.lang.String zdzname;
public String getFcsjTStr() {
return formatDate(fcsjT);
}
public String getZdsjTStr() {
return formatDate(zdsjT);
}
private String formatDate(Long val) {
if (Objects.isNull(val)) {
return null;
}
Date date = new Date(val);
return DateUtils.YYYY_MM_DD_HH_MM_SS.format(date);
}
public String getScheduleDateStr() {
return Objects.isNull(scheduleDate) ? null : DateUtils.YYYY_MM_DD.format(scheduleDate);
}
public String getBcTypeLabel() {
return StringUtils.equalsAnyIgnoreCase("in", bcType) ? "进站" : StringUtils.equalsAnyIgnoreCase("out", bcType) ? "出站" : null;
}
public String getAlcoholFlagLabel() {
return Objects.equals(this.getAlcoholFlag(), 1) ? "是" : Objects.equals(this.getAlcoholFlag(), 0) ? "否" : null;
}
@Override
public String toString() {
return com.alibaba.fastjson2.JSON.toJSONString(this);
}
}