package com.rj.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 客户统计表
 * </p>
 *
 * @author 李中华 ,spllzh
 * @since 2025-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("customer_management_statistics")
@Schema(description="客户统计表")
public class CustomerManagementStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    @Schema(description = "经销商ID")
    @TableField("dealership_id")
    private String dealershipId;

    @Schema(description = "经销商名称")
    @TableField("dealership_name")
    private String dealershipName;

    @Schema(description = "销售ID")
    @TableField("sales_id")
    private String salesId;

    @Schema(description = "按经销商统计数量")
    @TableField("count_by_dealership")
    private Integer countByDealership;

    @Schema(description = "按销售统计数量")
    @TableField("count_by_sales")
    private Integer countBySales;

    @Schema(description = "按项目统计数量")
    @TableField("count_by_project")
    private Integer countByProject;

    @Schema(description = "统计日期")
    @TableField("statistics_date")
    private LocalDate statisticsDate;

    @Schema(description = "创建时间")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    @TableField("updated_at")
    private LocalDateTime updatedAt;
}

