package com.storlead.sales.pojo.entity.customer;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工单动态表
 * </p>
 *
 * @author YPZ
 * @since 2024-04-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dynamic_log")
@ApiModel(value="DynamicLogEntity", description="通用动态表")
public class DynamicLogEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "主业务ID")
    @TableField("record_id")
    private Long recordId;

    @ApiModelProperty(value = "通用类型枚举")
    @TableField("resource_type")
    private String resourceType;

    @ApiModelProperty(value = "工单标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "执行分配用户的公司名")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "执行分配的用户唯一标识，关联user表id")
    @TableField("assign_user_id")
    private Long assignUserId;

    @ApiModelProperty(value = "原处理人姓名")
    @TableField("old_user_name")
    private String oldUserName;

    @ApiModelProperty(value = "原处理人唯一标识")
    @TableField("old_user_id")
    private Long oldUserId;

    @ApiModelProperty(value = "新处理人姓名")
    @TableField("new_user_name")
    private String newUserName;

    @ApiModelProperty(value = "新处理人唯一标识")
    @TableField("new_user_id")
    private Long newUserId;

    @ApiModelProperty(value = "等待耗时")
    @TableField("wait_time_str")
    private String waitTimeStr;

    @ApiModelProperty(value = "备注内容")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "工单的状态：0待处理，1已撤销，2被退回，3已完成，4已关闭")
    @TableField("order_status")
    private Integer orderStatus;


}
