package com.cpop.oam.business.entity;

import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 线索表 实体类。
 *
 * @author DB
 * @since 2024-02-19
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_oam_clue", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class Clue extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @Id
    private String id;

    /**
     * 校区id
     */
    private String storeId;

    /**
     * 城市(地区)
     */
    private String city;

    /**
     * 负责员工id
     */
    private String responsibleStaffId;

    /**
     * 开发员工id
     */
    private String devStaffId;

    /**
     * 最后跟进时间
     */
    private LocalDateTime lastFollowUpTime;

    /**
     * 最后跟进内容
     */
    private String lastFollowUpContent;

    /**
     * 接受时间
     */
    private LocalDateTime receiptTime;

    /**
     * 签约状态(0:待签约;1:已签约;2:警告线索)
     */
    private Integer clueStatus;

    /**
     * 最后接收时间
     */
    private LocalDateTime lastReceiptTime;

    /**
     * 最后接收员工id
     */
    private String lastReceiptStaffId;

    /**
     * 更进状态(0:待跟进、1:已歇业、2:无法联系、3:无意向、4:已拜访、5:跟进中、6:已成交)
     */
    private Integer followStatus;

    /**
     * 是否删除(0否1是)
     */
    @Column(isLogicDelete = true)
    private Boolean isDelete;

}
