package com.zksy.api.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 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;

/**
 * 工单操作日志表
 * @TableName work_order_log
 */
@TableName(value = "work_order_log", schema = "app_user")
@Data
@ApiModel(value = "工单操作日志入参", description = "工单操作日志入参")
public class WorkOrderLog implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 日志ID
     */
    @ApiModelProperty(value = "日志ID")
    @TableId(type = IdType.AUTO)
    private Long logId;

    /**
     * 关联工单ID
     */
    @ApiModelProperty(value = "工单ID")
    private Long orderId;

    /**
     * 操作类型：1-创建工单 2-派单 3-接单 4-开始维修 5-提交验收 6-验收通过 7-驳回工单 8-申请延期
     */
    @ApiModelProperty(value = "操作类型：1-创建工单 2-派单 3-接单 4-开始维修 5-提交验收 6-验收通过 7-驳回工单 8-申请延期 9-延期审核通过")
    private Integer operType;

    /**
     * 操作详情描述
     */
    @ApiModelProperty(value = "操作详情描述")
    private String operDesc;

    /**
     * 操作人ID
     */
    @ApiModelProperty(value = "操作人ID")
    private Long operUserId;

    /**
     * 操作人姓名
     */
    @ApiModelProperty(value = "操作人姓名")
    private String operUserName;

    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间")
    @JsonFormat(locale = "zh",pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date operTime;
}