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

import java.math.BigDecimal;
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-12-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("target_plan")
@ApiModel(value="TargetPlanEntity对象", description="目标方案主表")
public class TargetPlanEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "目标方案主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "所属年度")
    @TableField("year")
    private String year;

    @ApiModelProperty(value = "方式（1汇总、2分配、3认领）")
    @TableField("method")
    private Integer method;

    @ApiModelProperty(value = "周期（1季度、2月度）")
    @TableField("cycle")
    private Integer cycle;

    @ApiModelProperty(value = "指标类型（10新增客户、11新增线索、12跟进次数、30新增商机、40成交订单、41成交金额）")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "目标值")
    @TableField("target_value")
    private BigDecimal targetValue;

    @ApiModelProperty(value = "公司范围id，逗号隔开")
    @TableField("company_scope_id")
    private String companyScopeId;

    @ApiModelProperty(value = "公司范围名称，逗号隔开")
    @TableField("company_scope_name")
    private String companyScopeName;

    @ApiModelProperty(value = "部门范围id，逗号隔开")
    @TableField("dept_scope_id")
    private String deptScopeId;

    @ApiModelProperty(value = "部门范围名称，逗号隔开")
    @TableField("dept_scope_name")
    private String deptScopeName;

    @ApiModelProperty(value = "用户范围id，逗号隔开")
    @TableField("user_scope_id")
    private String userScopeId;

    @ApiModelProperty(value = "用户范围名称，逗号隔开")
    @TableField("user_scope_name")
    private String userScopeName;

    @ApiModelProperty(value = "认领状态（0未完成、1已完成）")
    @TableField("status")
    private Integer status;

    @TableField("former_owner_by")
    private Long formerOwnerBy;


}
