CarReviewTask.java 4.1 KB
Newer Older
王飞's avatar
王飞 committed
1 2 3 4 5 6 7 8
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.io.Serializable;
import java.util.Date;
王飞's avatar
王飞 committed
9
import java.util.List;
王飞's avatar
王飞 committed
10

王飞's avatar
王飞 committed
11
import com.fasterxml.jackson.annotation.JsonFormat;
王飞's avatar
王飞 committed
12
import com.ruoyi.common.StandardJsonTypeHandler;
王飞's avatar
王飞 committed
13 14
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
W_Y's avatar
W_Y committed
15
import lombok.experimental.Accessors;
王飞's avatar
王飞 committed
16 17 18 19 20

/**
 * 车型审查任务
 * @TableName t_car_review_task
 */
王飞's avatar
王飞 committed
21
@TableName(value ="t_car_review_task", autoResultMap = true)
W_Y's avatar
W_Y committed
22
@Accessors(chain = true)
王飞's avatar
王飞 committed
23 24
@Data
public class CarReviewTask implements Serializable {
W_Y's avatar
W_Y committed
25 26 27 28
    @TableField(exist = false)
    public static final String TYPE = "car";


W_Y's avatar
W_Y committed
29

王飞's avatar
王飞 committed
30
    @TableField(exist = false)
31
    public static final String TASK_STATUS_NEW = "NEW";
王飞's avatar
王飞 committed
32
    @TableField(exist = false)
33
    public static final String TASK_STATUS_PENDING = "PENDING";
王飞's avatar
王飞 committed
34
    @TableField(exist = false)
35
    public static final String TASK_STATUS_SIGNED = "SIGNED";
王飞's avatar
王飞 committed
36
    @TableField(exist = false)
37
    public static final String TASK_STATUS_FINISH = "FINISH";
王飞's avatar
王飞 committed
38 39 40 41 42 43

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
王飞's avatar
王飞 committed
44
    @JsonFormat(shape = JsonFormat.Shape.STRING)
王飞's avatar
王飞 committed
45 46 47 48 49 50 51 52 53 54 55
    private Long id;

    /**
     * 任务编号
     */
    @ApiModelProperty("任务编号")
    private String taskNo;

    /**
     * 任务状态(PENDING、FINISH)
     */
W_Y's avatar
W_Y committed
56
    @ApiModelProperty("任务状态[NEW、PENDING、FINISH]")
王飞's avatar
王飞 committed
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
    private String taskStatus;

    /**
     * 任务发起人姓名
     */
    @ApiModelProperty("任务发起人姓名")
    private String taskInitiator;

    /**
     * 任务发起人部门
     */
    @ApiModelProperty("任务发起人部门")
    private String taskInitiatorDept;

    /**
     * 任务结果(PASS、REJECT)
     */
    @ApiModelProperty("任务结果(PASS、REJECT)")
    private String taskResult;

    /**
     * 任务开始时间
     */
    @ApiModelProperty("任务开始时间")
    private Date taskBeginTime;

    /**
     * 任务结束时间
     */
    @ApiModelProperty("任务结束时间")
    private Date taskEndTime;

    /**
     * 审查标准
     */
    @ApiModelProperty("审查标准")
王飞's avatar
王飞 committed
93 94
    @TableField(value="standard", typeHandler = StandardJsonTypeHandler. class)
    private List<ReviewStandard> standard;
王飞's avatar
王飞 committed
95 96 97 98 99 100 101 102 103 104

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 审查组长id
     */
W_Y's avatar
W_Y committed
105
    @JsonFormat(shape = JsonFormat.Shape.STRING)
王飞's avatar
王飞 committed
106 107 108 109 110 111 112 113 114 115 116 117
    @ApiModelProperty("审查组长id")
    private Long leaderId;

    /**
     * 审查组长姓名
     */
    @ApiModelProperty("审查组长姓名")
    private String leader;

    /**
     * 关联标准表id
     */
W_Y's avatar
W_Y committed
118
    @JsonFormat(shape = JsonFormat.Shape.STRING)
王飞's avatar
王飞 committed
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
    @ApiModelProperty("关联标准表id")
    private Long standardId;

    /**
     * 标准名称
     */
    @ApiModelProperty("标准名称")
    private String name;

    /**
     * 标准号
     */
    @ApiModelProperty("标准号")
    private String standardNo;

    /**
     * 文件路径
     */
    @ApiModelProperty("文件路径")
    private String file;

140 141 142
    /**
     * 车型问卷提交人id
     */
W_Y's avatar
W_Y committed
143
    @JsonFormat(shape = JsonFormat.Shape.STRING)
144 145
    @ApiModelProperty("提交人id")
    private Long submitId;
146 147 148 149 150

    /**
     * 车型问卷提交人姓名
     */
    @ApiModelProperty("车型问卷提交人姓名")
151
    private String submitName;
152

153
    @ApiModelProperty("问卷签名图片地址")
154
    private String imagesUrl;
155

wdy's avatar
wdy committed
156 157 158 159 160 161
    @TableField(exist = false)
    @ApiModelProperty("审查细则(条)")
    private Integer details;

    @TableField(exist = false)
    @ApiModelProperty("审查细则符合率")
wdy's avatar
wdy committed
162
    private Double detailsPass;
wdy's avatar
wdy committed
163 164 165 166 167 168 169

    @TableField(exist = false)
    @ApiModelProperty("标准条款(条)")
    private Integer standards;

    @TableField(exist = false)
    @ApiModelProperty("标准条款通过率")
wdy's avatar
wdy committed
170
    private Double standardsPass;
wdy's avatar
wdy committed
171 172 173 174 175

    @TableField(exist = false)
    @ApiModelProperty("参与审查人数(人)")
    private Integer person;

W_Y's avatar
W_Y committed
176
}