ReviewSceneChangeTask.java 5.05 KB
Newer Older
王飞's avatar
王飞 committed
1 2 3
package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
王飞's avatar
王飞 committed
4
import com.baomidou.mybatisplus.annotation.TableField;
王飞's avatar
王飞 committed
5 6 7
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
王飞's avatar
王飞 committed
8

王飞's avatar
王飞 committed
9
import com.fasterxml.jackson.annotation.JsonFormat;
王飞's avatar
王飞 committed
10 11
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
王飞's avatar
王飞 committed
12
import lombok.Data;
王飞's avatar
王飞 committed
13
import lombok.experimental.Accessors;
王飞's avatar
王飞 committed
14 15 16 17 18

/**
 * 审查场景变更任务
 * @TableName t_review_scene_change_task
 */
王飞's avatar
王飞 committed
19
@ApiModel(value = "ReviewSceneChangeTask", description = "场景变更任务")
王飞's avatar
王飞 committed
20
@TableName(value ="t_review_scene_change_task")
王飞's avatar
王飞 committed
21
@Accessors(chain = true)
王飞's avatar
王飞 committed
22 23
@Data
public class ReviewSceneChangeTask {
王飞's avatar
王飞 committed
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

    @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";

    /**
     * 参与审核的角色
     */
    @TableField(exist = false)
    public static final Long REVIEW_ROLE_ID = 103L;

王飞's avatar
王飞 committed
50 51 52
    /**
     * 主键
     */
王飞's avatar
王飞 committed
53
    @ApiModelProperty("主键")
王飞's avatar
王飞 committed
54
    @TableId(type = IdType.ASSIGN_ID)
王飞's avatar
王飞 committed
55
    @JsonFormat(shape = JsonFormat.Shape.STRING)
王飞's avatar
王飞 committed
56 57 58 59 60
    private Long id;

    /**
     * 任务编号
     */
王飞's avatar
王飞 committed
61
    @ApiModelProperty("任务编号")
王飞's avatar
王飞 committed
62
    private String taskNo;
王飞's avatar
王飞 committed
63 64 65 66

    /**
     * 章节
     */
王飞's avatar
王飞 committed
67
    @ApiModelProperty("章节")
王飞's avatar
王飞 committed
68 69
    private String chapter;

王飞's avatar
王飞 committed
70 71 72
    /**
     * 审查标准id
     */
W_Y's avatar
W_Y committed
73
    @JsonFormat(shape = JsonFormat.Shape.STRING)
王飞's avatar
王飞 committed
74
    @ApiModelProperty("审查标准id")
王飞's avatar
王飞 committed
75 76
    private Long standardId;

王飞's avatar
王飞 committed
77 78 79
    /**
     * 审查标准
     */
王飞's avatar
王飞 committed
80
    @ApiModelProperty("审查标准")
王飞's avatar
王飞 committed
81 82
    private String standard;

王飞's avatar
王飞 committed
83 84 85 86 87 88
    /**
     * 检查类型[system(体系审查)、car(车型审查)]
     */
    @ApiModelProperty("检查类型[system(体系审查)、car(车型审查)]")
    private String type;

王飞's avatar
王飞 committed
89 90 91
    /**
     * 审查要点id
     */
W_Y's avatar
W_Y committed
92
    @JsonFormat(shape = JsonFormat.Shape.STRING)
王飞's avatar
王飞 committed
93
    @ApiModelProperty("审查要点id")
王飞's avatar
王飞 committed
94 95
    private Long keypointId;

王飞's avatar
王飞 committed
96 97 98
    /**
     * 审查要点
     */
王飞's avatar
王飞 committed
99
    @ApiModelProperty("审查要点")
王飞's avatar
王飞 committed
100 101
    private String keypoint;

王飞's avatar
王飞 committed
102 103 104
    /**
     * 审查细则id
     */
W_Y's avatar
W_Y committed
105
    @JsonFormat(shape = JsonFormat.Shape.STRING)
王飞's avatar
王飞 committed
106
    @ApiModelProperty("审查细则id")
王飞's avatar
王飞 committed
107 108
    private Long detailsId;

王飞's avatar
王飞 committed
109 110 111
    /**
     * 审查细则
     */
王飞's avatar
王飞 committed
112
    @ApiModelProperty("审查细则")
王飞's avatar
王飞 committed
113 114 115
    private String details;

    /**
王飞's avatar
王飞 committed
116
     * 操作 [ADD DELETE UPDATE]
王飞's avatar
王飞 committed
117
     */
王飞's avatar
王飞 committed
118
    @ApiModelProperty(value = "操作" , notes = "[ADD DELETE UPDATE]")
王飞's avatar
王飞 committed
119 120
    private String operation;

W_Y's avatar
W_Y committed
121 122 123 124 125 126
    @ApiModelProperty(value = "分类" , notes = "[KEYPOINT DETAILS SCENE]")
    private String sort;

    @ApiModelProperty("评审类型")
    private String operationSort;

王飞's avatar
王飞 committed
127 128 129
    /**
     * 当 operation 为 ADD 时该字段为空
     */
王飞's avatar
王飞 committed
130
    @ApiModelProperty(value = "场景旧值", notes = "当 operation 为 ADD 时该字段为空")
王飞's avatar
王飞 committed
131 132 133 134 135
    private String oldText;

    /**
     * 当 operation 为 DELETE 时该字段为空
     */
王飞's avatar
王飞 committed
136
    @ApiModelProperty(value = "场景新值", notes = "当 operation 为 DELETE 时该字段为空")
王飞's avatar
王飞 committed
137 138 139 140 141
    private String newText;

    /**
     * 任务发起人姓名
     */
王飞's avatar
王飞 committed
142
    @ApiModelProperty("任务发起人姓名")
王飞's avatar
王飞 committed
143 144 145 146 147
    private String taskInitiator;

    /**
     * 任务发起人部门
     */
王飞's avatar
王飞 committed
148
    @ApiModelProperty("任务发起人部门")
王飞's avatar
王飞 committed
149 150
    private String taskInitiatorDept;

151 152 153
    /**
     * 任务发起人Id
     */
W_Y's avatar
W_Y committed
154
    @JsonFormat(shape = JsonFormat.Shape.STRING)
王飞's avatar
王飞 committed
155
    @ApiModelProperty("任务发起人Id")
156 157
    private Long taskInitiatorId;

王飞's avatar
王飞 committed
158
    /**
王飞's avatar
王飞 committed
159
     * 任务状态 [PENDING、FINISH、CLOSE]
王飞's avatar
王飞 committed
160
     */
王飞's avatar
王飞 committed
161
    @ApiModelProperty(value = "任务状态", notes = "[PENDING、FINISH、CLOSE]")
王飞's avatar
王飞 committed
162 163 164
    private String taskStatus;

    /**
王飞's avatar
王飞 committed
165
     * 任务结果 [PASS、REJECT]
王飞's avatar
王飞 committed
166
     */
王飞's avatar
王飞 committed
167
    @ApiModelProperty(value = "任务结果", notes = "[PASS、REJECT]")
王飞's avatar
王飞 committed
168 169 170 171 172
    private String taskResult;

    /**
     * 任务开始时间
     */
王飞's avatar
王飞 committed
173
    @ApiModelProperty("任务开始时间")
王飞's avatar
王飞 committed
174 175 176 177 178
    private Date taskBeginTime;

    /**
     * 任务结束时间
     */
王飞's avatar
王飞 committed
179
    @ApiModelProperty("任务结束时间")
王飞's avatar
王飞 committed
180 181
    private Date taskEndTime;

王飞's avatar
王飞 committed
182 183 184
    /**
     * 备注
     */
王飞's avatar
王飞 committed
185
    @ApiModelProperty("备注")
王飞's avatar
王飞 committed
186 187 188 189 190 191 192
    private String remark;

    /**
     * 审查场景id
     * 若为修改、删除任务时,此id在创建任务时赋值
     * 若为新增任务时,此id在审批通过并保存新场景后赋值
     */
W_Y's avatar
W_Y committed
193
    @JsonFormat(shape = JsonFormat.Shape.STRING)
王飞's avatar
王飞 committed
194
    @ApiModelProperty(value = "审查场景id", notes = "1.若为修改、删除任务时,此id在创建任务时赋值; 2.若为新增任务时,此id在审批通过并保存新场景后赋值 ")
王飞's avatar
王飞 committed
195 196
    private Long reviewSceneId;

197
}