package com.cool.store.entity;

import lombok.Data;

import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "xfsg_line_follow_log")
public class LineFollowLogDO {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * hy_partner_user_info.partner_id
     */
    @Column(name = "partner_id")
    private String partnerId;

    /**
     * hy_partner_line_info.id
     */
    @Column(name = "line_id")
    private Long lineId;

    /**
     * 操作人id
     */
    @Column(name = "operate_user_id")
    private String operateUserId;

    /**
     * 操作人姓名
     */
    @Column(name = "operate_username")
    private String operateUsername;

    /**
     * 流程阶段:1意向加盟;2新店进展;
     */
    @Column(name = "workflow_stage")
    private Integer workflowStage;

    /**
     * 流程子阶段
     */
    @Column(name = "workflow_sub_stage")
    private Integer workflowSubStage;

    /**
     * 流程子阶段状态
     */
    @Column(name = "workflow_sub_stage_status")
    private Integer workflowSubStageStatus;

    /**
     * 备注
     */
    private String message;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 删除标识
     */
    private Boolean deleted;

    public LineFollowLogDO() {
    }

    public LineFollowLogDO(String partnerId, Long lineId, String operateUserId, String operateUsername, Integer workflowStage, Integer workflowSubStage, Integer workflowSubStageStatus, String message) {
        this.partnerId = partnerId;
        this.lineId = lineId;
        this.operateUserId = operateUserId;
        this.operateUsername = operateUsername;
        this.workflowStage = workflowStage;
        this.workflowSubStage = workflowSubStage;
        this.workflowSubStageStatus = workflowSubStageStatus;
        this.message = message;
        this.createTime= new Date();
    }
}