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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
package com.ruoyi.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 审查场景变更任务
* @TableName t_review_scene_change_task
*/
@ApiModel(value = "ReviewSceneChangeTask", description = "场景变更任务")
@TableName(value ="t_review_scene_change_task")
@Accessors(chain = true)
@Data
public class ReviewSceneChangeTask {
@TableField(exist = false)
public static final String OPERATION_ADD = "ADD";
@TableField(exist = false)
public static final String OPERATION_DELETE = "DELETE";
@TableField(exist = false)
public static final String OPERATION_UPDATE = "UPDATE";
@TableField(exist = false)
public static final String STATUS_PENDING = "PENDING";
@TableField(exist = false)
public static final String STATUS_FINISH = "FINISH";
@TableField(exist = false)
public static final String STATUS_CLOSE = "CLOSE";
@TableField(exist = false)
public static final String RESULT_PASS = "PASS";
@TableField(exist = false)
public static final String RESULT_REJECT = "REJECT";
/**
* 前段传入审核结果(1:通过)
*/
@TableField(exist = false)
public static final String PASSED_PASS = "1";
/**
* 前段传入审核结果(0:不通过)
*/
@TableField(exist = false)
public static final String PASSED_REJECT = "0";
/**
* 参与审核的角色
*/
@TableField(exist = false)
public static final Long REVIEW_ROLE_ID = 103L;
/**
* 主键
*/
@ApiModelProperty("主键")
@TableId(type = IdType.ASSIGN_ID)
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long id;
/**
* 任务编号
*/
@ApiModelProperty("任务编号")
private String taskNo;
@ApiModelProperty("检验标准id")
private String inspectStandardId;
@ApiModelProperty("检验标准号")
private String inspectStandardNo;
/**
* 章节
*/
@ApiModelProperty("章节")
private String chapter;
/**
* 审查标准id
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
@ApiModelProperty("审查标准id")
private Long standardId;
/**
* 审查标准
*/
@ApiModelProperty("审查标准")
private String standard;
/**
* 检查类型[system(体系审查)、car(车型审查)]
*/
@ApiModelProperty("检查类型[system(体系审查)、car(车型审查)]")
private String type;
/**
* 审查要点id
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
@ApiModelProperty("审查要点id")
private Long keypointId;
/**
* 审查要点
*/
@ApiModelProperty("审查要点")
private String keypoint;
/**
* 审查细则id
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
@ApiModelProperty("审查细则id")
private Long detailsId;
/**
* 审查细则
*/
@ApiModelProperty("审查细则")
private String details;
/**
* 操作 [ADD DELETE UPDATE]
*/
@ApiModelProperty(value = "操作" , notes = "[ADD DELETE UPDATE]")
private String operation;
@ApiModelProperty(value = "分类" , notes = "[KEYPOINT DETAILS SCENE]")
private String sort;
@ApiModelProperty("评审类型")
private String operationSort;
/**
* 当 operation 为 ADD 时该字段为空
*/
@ApiModelProperty(value = "场景旧值", notes = "当 operation 为 ADD 时该字段为空")
private String oldText;
/**
* 当 operation 为 DELETE 时该字段为空
*/
@ApiModelProperty(value = "场景新值", notes = "当 operation 为 DELETE 时该字段为空")
private String newText;
/**
* 任务发起人姓名
*/
@ApiModelProperty("任务发起人姓名")
private String taskInitiator;
/**
* 任务发起人部门
*/
@ApiModelProperty("任务发起人部门")
private String taskInitiatorDept;
/**
* 任务发起人Id
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
@ApiModelProperty("任务发起人Id")
private Long taskInitiatorId;
/**
* 任务状态 [PENDING、FINISH、CLOSE]
*/
@ApiModelProperty(value = "任务状态", notes = "[PENDING、FINISH、CLOSE]")
private String taskStatus;
/**
* 任务结果 [PASS、REJECT]
*/
@ApiModelProperty(value = "任务结果", notes = "[PASS、REJECT]")
private String taskResult;
/**
* 任务开始时间
*/
@ApiModelProperty("任务开始时间")
private Date taskBeginTime;
/**
* 任务结束时间
*/
@ApiModelProperty("任务结束时间")
private Date taskEndTime;
/**
* 备注
*/
@ApiModelProperty("备注")
private String remark;
/**
* 审查场景id
* 若为修改、删除任务时,此id在创建任务时赋值
* 若为新增任务时,此id在审批通过并保存新场景后赋值
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
@ApiModelProperty(value = "审查场景id", notes = "1.若为修改、删除任务时,此id在创建任务时赋值; 2.若为新增任务时,此id在审批通过并保存新场景后赋值 ")
private Long reviewSceneId;
}