Audit.java 3.29 KB
Newer Older
wzp's avatar
wzp committed
1 2
package cn.wisenergy.chnmuseum.party.model;

liqin's avatar
liqin committed
3 4
import cn.wisenergy.chnmuseum.party.common.validator.groups.Add;
import com.baomidou.mybatisplus.annotation.*;
wzp's avatar
wzp committed
5 6
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
liqin's avatar
liqin committed
7
import lombok.*;
wzp's avatar
wzp committed
8 9 10 11
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
liqin's avatar
liqin committed
12 13
import java.io.Serializable;
import java.time.LocalDateTime;
wzp's avatar
wzp committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

/**
 * <p>
 * 学习内容信息
 * </p>
 *
 * @author Danny Lee
 * @since 2021-03-26
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("t_audit")
@ApiModel(value = "学习内容信息", description = "学习内容信息")
public class Audit implements Serializable {

    private static final long serialVersionUID = 1L;

liqin's avatar
liqin committed
35
    @ApiModelProperty("审核ID")
wzp's avatar
wzp committed
36
    @TableId(value = "id", type = IdType.ASSIGN_ID)
wzp's avatar
wzp committed
37
    @NotNull(message = "审核ID不能为空")
wzp's avatar
wzp committed
38 39 40
    private String id;

    @ApiModelProperty("审核内容")
liqin's avatar
liqin committed
41 42 43 44
    @TableField("content")
    private String content;

    @ApiModelProperty("所属机构ID")
wzp's avatar
wzp committed
45 46
    @TableField("organ_id")
    private String organId;
liqin's avatar
liqin committed
47 48 49

    @ApiModelProperty("审核项ID")
    @TableField("ref_item_id")
wzp's avatar
wzp committed
50
    @NotBlank(message = "审核项ID不能为空", groups = {Add.class})
liqin's avatar
liqin committed
51 52
    private String refItemId;

wzp's avatar
wzp committed
53
    @ApiModelProperty("提交人员")
liqin's avatar
liqin committed
54
    @TableField(value = "user_id", fill = FieldFill.INSERT)
wzp's avatar
wzp committed
55
    @NotBlank(message = "提交人员不能为空", groups = {Add.class})
liqin's avatar
liqin committed
56 57
    private String userId;

wzp's avatar
wzp committed
58
    @ApiModelProperty(value = "审核内容", allowableValues = "ASSET,EXHIBITION_BOARD,LEARNING_CONTENT,ACCOUNT")
wzp's avatar
wzp committed
59
    @TableField("type")
wzp's avatar
wzp committed
60
    @NotBlank(message = "0,看板;1 视频;2 学习内容;3 账号禁用不能为空", groups = {Add.class})
liqin's avatar
liqin committed
61 62 63 64 65 66
    private String type;

    @ApiModelProperty("操作类型")
    @TableField("operation")
    private String operation;

wzp's avatar
wzp committed
67
    @ApiModelProperty(value = "审核状态", allowableValues = "TBC,REFUSED,TBCA,APPROVED_FINAL")
wzp's avatar
wzp committed
68
    @TableField("status")
liqin's avatar
liqin committed
69 70 71
    private String status;

    @ApiModelProperty("创建日期")
wzp's avatar
wzp committed
72
    @TableField(value = "create_time", fill = FieldFill.INSERT)
wzp's avatar
wzp committed
73
    @NotNull(message = "创建日期不能为空", groups = {Add.class})
liqin's avatar
liqin committed
74 75
    private LocalDateTime createTime;

wzp's avatar
wzp committed
76 77
    @ApiModelProperty("初审日期")
    @TableField(value = "first_time", fill = FieldFill.INSERT_UPDATE)
liqin's avatar
liqin committed
78 79
    private LocalDateTime firstTime;

wzp's avatar
wzp committed
80 81
    @ApiModelProperty("复审日期")
    @TableField(value = "second_time", fill = FieldFill.INSERT_UPDATE)
liqin's avatar
liqin committed
82
    private LocalDateTime secondTime;
liqin's avatar
liqin committed
83

wzp's avatar
wzp committed
84 85 86
    @ApiModelProperty("0:未删除,1:已删除")
    @TableField("is_deleted")
    private Boolean isDeleted;
liqin's avatar
liqin committed
87

liqin's avatar
liqin committed
88 89 90 91 92 93 94
    @ApiModelProperty("初审意见")
    @TableField("first_remarks")
    private String firstRemarks;

    @ApiModelProperty("复审意见")
    @TableField("second_remarks")
    private String secondRemarks;
wzp's avatar
wzp committed
95

wzp's avatar
wzp committed
96
    @ApiModelProperty(value = "审核层级", allowableValues = "TBC,TBCA")
wzp's avatar
wzp committed
97 98 99
    @TableField("level")
    private String level;

wzp's avatar
wzp committed
100 101 102 103 104 105 106 107
    @ApiModelProperty("机构名")
    @TableField(exist = false)
    private String orgName;

    @ApiModelProperty("提交人名")
    @TableField(exist = false)
    private String userName;

108 109 110 111
    @ApiModelProperty("审核项名称")
    @TableField(exist = false)
    private String name;

wzp's avatar
wzp committed
112
}