ReviewSceneChangeTask.java 4.36 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 9 10

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
王飞's avatar
王飞 committed
11
import lombok.Data;
王飞's avatar
王飞 committed
12
import lombok.experimental.Accessors;
王飞's avatar
王飞 committed
13 14 15 16 17

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

    @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
49 50 51
    /**
     * 主键
     */
王飞's avatar
王飞 committed
52
    @ApiModelProperty("主键")
王飞's avatar
王飞 committed
53 54 55 56 57 58
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

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

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

王飞's avatar
王飞 committed
68 69 70
    /**
     * 审查标准id
     */
王飞's avatar
王飞 committed
71
    @ApiModelProperty("审查标准id")
王飞's avatar
王飞 committed
72 73
    private Long standardId;

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

王飞's avatar
王飞 committed
80 81 82
    /**
     * 审查要点id
     */
王飞's avatar
王飞 committed
83
    @ApiModelProperty("审查要点id")
王飞's avatar
王飞 committed
84 85
    private Long keypointId;

王飞's avatar
王飞 committed
86 87 88
    /**
     * 审查要点
     */
王飞's avatar
王飞 committed
89
    @ApiModelProperty("审查要点")
王飞's avatar
王飞 committed
90 91
    private String keypoint;

王飞's avatar
王飞 committed
92 93 94
    /**
     * 审查细则id
     */
王飞's avatar
王飞 committed
95
    @ApiModelProperty("审查细则id")
王飞's avatar
王飞 committed
96 97
    private Long detailsId;

王飞's avatar
王飞 committed
98 99 100
    /**
     * 审查细则
     */
王飞's avatar
王飞 committed
101
    @ApiModelProperty("审查细则")
王飞's avatar
王飞 committed
102 103 104
    private String details;

    /**
王飞's avatar
王飞 committed
105
     * 操作 [ADD DELETE UPDATE]
王飞's avatar
王飞 committed
106
     */
王飞's avatar
王飞 committed
107
    @ApiModelProperty(value = "操作" , notes = "[ADD DELETE UPDATE]")
王飞's avatar
王飞 committed
108 109 110 111 112
    private String operation;

    /**
     * 当 operation 为 ADD 时该字段为空
     */
王飞's avatar
王飞 committed
113
    @ApiModelProperty(value = "场景旧值", notes = "当 operation 为 ADD 时该字段为空")
王飞's avatar
王飞 committed
114 115 116 117 118
    private String oldText;

    /**
     * 当 operation 为 DELETE 时该字段为空
     */
王飞's avatar
王飞 committed
119
    @ApiModelProperty(value = "场景新值", notes = "当 operation 为 DELETE 时该字段为空")
王飞's avatar
王飞 committed
120 121 122 123 124
    private String newText;

    /**
     * 任务发起人姓名
     */
王飞's avatar
王飞 committed
125
    @ApiModelProperty("任务发起人姓名")
王飞's avatar
王飞 committed
126 127 128 129 130
    private String taskInitiator;

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

134 135 136
    /**
     * 任务发起人Id
     */
王飞's avatar
王飞 committed
137
    @ApiModelProperty("任务发起人Id")
138 139
    private Long taskInitiatorId;

王飞's avatar
王飞 committed
140
    /**
王飞's avatar
王飞 committed
141
     * 任务状态 [PENDING、FINISH、CLOSE]
王飞's avatar
王飞 committed
142
     */
王飞's avatar
王飞 committed
143
    @ApiModelProperty(value = "任务状态", notes = "[PENDING、FINISH、CLOSE]")
王飞's avatar
王飞 committed
144 145 146
    private String taskStatus;

    /**
王飞's avatar
王飞 committed
147
     * 任务结果 [PASS、REJECT]
王飞's avatar
王飞 committed
148
     */
王飞's avatar
王飞 committed
149
    @ApiModelProperty(value = "任务结果", notes = "[PASS、REJECT]")
王飞's avatar
王飞 committed
150 151 152 153 154
    private String taskResult;

    /**
     * 任务开始时间
     */
王飞's avatar
王飞 committed
155
    @ApiModelProperty("任务开始时间")
王飞's avatar
王飞 committed
156 157 158 159 160
    private Date taskBeginTime;

    /**
     * 任务结束时间
     */
王飞's avatar
王飞 committed
161
    @ApiModelProperty("任务结束时间")
王飞's avatar
王飞 committed
162 163
    private Date taskEndTime;

王飞's avatar
王飞 committed
164 165 166
    /**
     * 备注
     */
王飞's avatar
王飞 committed
167
    @ApiModelProperty("备注")
王飞's avatar
王飞 committed
168 169 170 171 172 173 174
    private String remark;

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

178
}