package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
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-01-11 10:45:12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopCount对象", description = "商城销售统计表")
public class ShopCount implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "统计日期")
    private LocalDate dateTime;

    @Schema(description = "总销售额")
    private BigDecimal totalPrice;

    @Schema(description = "今日销售额")
    private BigDecimal todayPrice;

    @Schema(description = "总会员数")
    private BigDecimal totalUsers;

    @Schema(description = "今日新增")
    private BigDecimal todayUsers;

    @Schema(description = "总订单笔数")
    private BigDecimal totalOrders;

    @Schema(description = "今日订单笔数")
    private BigDecimal todayOrders;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
