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

import com.baomidou.mybatisplus.annotation.TableName;
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-05-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("business_transfer")
@ApiModel(value="BusinessTransferEntity对象", description="商机转移表")
public class BusinessTransferEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商机转移id")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "要转移的商机id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "原归属人员")
    @TableField("old_owner_by")
    private Long oldOwnerBy;

    @ApiModelProperty(value = "现归属人员（接收对象）")
    @TableField("new_owner_by")
    private Long newOwnerBy;

    @ApiModelProperty(value = "转移类型，逗号分隔（10:客户、11线索、20:联系人、30:商机、40:订单、50:回款、60:退款、70:费用、80:任务、90:跟进、100:工单）")
    @TableField("types")
    private String types;

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


}
