Newer
Older
huludao / src / main / java / com / newfiber / api / pc / model / entity / Task.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.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

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

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("task_no")
    @ApiModelProperty(value = "任务编号 年份+FXRW+id(4位不足用0补齐) 例如2021FXRW0001")
    private String taskNo;
    @TableField("expected_end_time")
    @ApiModelProperty(value = "预计完成时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date expectedEndTime;
    @TableField("task_name")
    @ApiModelProperty(value = "防汛任务名称")
    private String taskName;
    @TableField("task_level")
    @ApiModelProperty(value = "防汛任务等级")
    private Integer taskLevel;
    @TableField("task_state")
    @ApiModelProperty(value = "任务状态")
    private Integer taskState;
    @TableField("task_state_name")
    @ApiModelProperty(value = "任务状态名称")
    private String taskStateName;
    @TableField("duty_user")
    @ApiModelProperty(value = "负责人")
    private String dutyUser;
    @TableField("duty_user_name")
    @ApiModelProperty(value = "负责人姓名")
    private String dutyUserName;
    @TableField("create_user")
    @ApiModelProperty(value = "创建任务用户")
    private String createUser;
    @TableField("create_user_name")
    @ApiModelProperty(value = "创建用户名称")
    private String createUserName;
    private String address;
    @TableField("longitude")
    @ApiModelProperty(value = "经度")
    private String longitude;
    @TableField("latitude")
    @ApiModelProperty(value = "纬度")
    private String latitude;
    @TableField("description")
    @ApiModelProperty(value = "描述")
    private String description;

    @TableField("task_sign")
    @ApiModelProperty(value = "任务类型")
    private Integer taskSign;

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

    @TableField(exist = false)
    private long taskUserId;
    @TableField(exist = false)
    private Integer userType;
    @TableField(exist = false)
    private Integer state;
    @TableField(exist = false)
    private String stateDesc;

    @TableField(exist = false)
    private Integer userState;

    @TableField(exist = false)
    private Integer unitId;

    /**
     * 超时
     */
    @TableField(exist = false)
    private Integer overTime = 0;

    //处理人
    @TableField(exist = false)
    private String userNo;
    //处理人姓名
    @TableField(exist = false)
    private String userName;
    //处理人单位
    @TableField(exist = false)
    private String unit;
}