package com.gxwebsoft.cms.param;

import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 站点统计信息表查询参数
 *
 * @author 科技小王子
 * @since 2025-07-25 12:32:06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsStatisticsParam对象", description = "站点统计信息表查询参数")
public class CmsStatisticsParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "自增ID")
    @QueryField(type = QueryType.EQ)
    private Integer id;

    @Schema(description = "站点ID")
    @QueryField(type = QueryType.EQ)
    private Integer websiteId;

    @Schema(description = "用户总数")
    @QueryField(type = QueryType.EQ)
    private Integer userCount;

    @Schema(description = "订单总数")
    @QueryField(type = QueryType.EQ)
    private Integer orderCount;

    @Schema(description = "商品总数")
    @QueryField(type = QueryType.EQ)
    private Integer productCount;

    @Schema(description = "总销售额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal totalSales;

    @Schema(description = "本月销售额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal monthSales;

    @Schema(description = "今日销售额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal todaySales;

    @Schema(description = "昨日销售额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal yesterdaySales;

    @Schema(description = "本周销售额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal weekSales;

    @Schema(description = "本年销售额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal yearSales;

    @Schema(description = "今日订单数")
    @QueryField(type = QueryType.EQ)
    private Integer todayOrders;

    @Schema(description = "本月订单数")
    @QueryField(type = QueryType.EQ)
    private Integer monthOrders;

    @Schema(description = "今日新增用户")
    @QueryField(type = QueryType.EQ)
    private Integer todayUsers;

    @Schema(description = "本月新增用户")
    @QueryField(type = QueryType.EQ)
    private Integer monthUsers;

    @Schema(description = "今日访问量")
    @QueryField(type = QueryType.EQ)
    private Integer todayVisits;

    @Schema(description = "总访问量")
    @QueryField(type = QueryType.EQ)
    private Integer totalVisits;

    @Schema(description = "商户总数")
    @QueryField(type = QueryType.EQ)
    private Integer merchantCount;

    @Schema(description = "活跃用户数")
    @QueryField(type = QueryType.EQ)
    private Integer activeUsers;

    @Schema(description = "转化率(%)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal conversionRate;

    @Schema(description = "平均订单金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal avgOrderAmount;

    @Schema(description = "统计日期")
    private String statisticsDate;

    @Schema(description = "统计类型: 1日统计, 2月统计, 3年统计")
    @QueryField(type = QueryType.EQ)
    private Integer statisticsType;

    @Schema(description = "排序号")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @Schema(description = "操作用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "商户ID")
    @QueryField(type = QueryType.EQ)
    private Long merchantId;

    @Schema(description = "状态: 0禁用, 1启用")
    @QueryField(type = QueryType.EQ)
    private Boolean status;

    @Schema(description = "是否删除: 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Boolean deleted;

}
