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

import cn.afterturn.easypoi.excel.annotation.Excel;
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;

import java.math.BigDecimal;

/**
 * <p>
 * 数据播报
 * </p>
 *
 * @author chenkq
 * @since 2025-12-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dashboard_sketch")
@ApiModel(value="DashboardSketchEntity对象", description="数据播报")
public class DashboardSketchEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "组织id")
    @TableField("organization_id")
    private Long organizationId;

    @ApiModelProperty(value = "组织名称")
    @TableField("organization_name")
    private String organizationName;

    @ApiModelProperty(value = "简报类型：10：周报，20：月报,30：季度，40：半年度，50：年度")
    @TableField("sketch_type")
    private Integer sketchType;

    @ApiModelProperty(value = "组织类别：10：个人，20：部门,30：分公司，40：集团")
    @TableField("organization_type")
    private Integer organizationType;

    @ApiModelProperty(value = "年")
    @TableField("year")
    private Integer year;

    @ApiModelProperty(value = "月")
    @TableField("month")
    private Integer month;

    @ApiModelProperty(value = "具体周期")
    @TableField("cycle")
    private Integer cycle;

    @ApiModelProperty(value = "订单新增总金额")
    @TableField("order_amount")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "客户新增数")
    @TableField("customer_new_num")
    private Integer customerNewNum;

    @ApiModelProperty(value = "商机新增数")
    @TableField("business_new_num")
    private Integer businessNewNum;

    @ApiModelProperty(value = "订单新增数")
    @TableField("order_new_num")
    private Integer orderNewNum;

    @ApiModelProperty(value = "线索新增数")
    @TableField("lead_new_num")
    private Integer leadNewNum;

    @ApiModelProperty(value = "跟进新增数")
    @TableField("follow_new_num")
    private Integer followNewNum;

    @ApiModelProperty(value = "邮件新增数")
    @TableField("mail_new_num")
    private Integer mailNewNum;

    @ApiModelProperty(value = "JSON格式存储数据")
    @TableField("sketch_data_json")
    private String sketchDataJson;
}
