Newer
Older
huludao / src / main / java / com / newfiber / api / pc / model / entity / TaskUser.java
package com.newfiber.api.pc.model.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.newfiber.api.pc.model.vo.TaskProcessVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @描述:
 * @作者: luzhan
 * @日期: 2021-08-02
 */
@ApiModel(value = "")
@TableName("task_user")
@Data
public class TaskUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("task_id")
    @ApiModelProperty(value = "任务id")
    private Long taskId;
    @TableField("unit_id")
    @ApiModelProperty(value = "单位id")
    private Long unitId;

    @TableField("unit")
    @ApiModelProperty(value = "单位")
    private String unit;
    @TableField("job")
    @ApiModelProperty(value = "职位")
    private String job;
    @TableField("user_no")
    @ApiModelProperty(value = "用户no")
    private String userNo;
    @TableField("user_name")
    @ApiModelProperty(value = "用户名")
    private String userName;
    @TableField("phone")
    @ApiModelProperty(value = "手机号")
    private String phone;
    @TableField("user_type")
    @ApiModelProperty(value = "用户类型(1 查看人员  2操作人员)")
    private Integer userType;
    @TableField("state")
    @ApiModelProperty(value = "状态(1.未读 2.已查阅 3.已超时 4.未办结 5.已办结)")
    private Integer state;
    @TableField("state_desc")
    @ApiModelProperty(value = "状态描述")
    private String stateDesc;

    @TableField("description")
    @ApiModelProperty(value = "描述")
    private String description;

    @TableField("check_state")
    @ApiModelProperty(value = "任务状态")
    private Integer checkState;

    @TableField("check_state_desc")
    @ApiModelProperty(value = "任务状态描述")
    private String checkStateDesc;

    @TableField("org_type")
    @ApiModelProperty(value = "组织类型")
    private String orgType;

    @TableField("org_name")
    @ApiModelProperty(value = "组织名称")
    private String orgName;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @TableField("update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "更新时间")
    private Date expectedEndTime;

    @TableField(exist = false)
    private Integer taskSign;

    //流程数据
    @TableField(exist = false)
    private List<TaskProcessVo> processVos;

    //未读超时 0 未超时 1已超时
    @TableField(exist = false)
    private Integer readOverTime = 0;

    //未完成 0未超时  1已超时
    @TableField(exist = false)
    private Integer completeOverTime = 0;

}