package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("t_marketing_statistics")
public class MarketingStatistics implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long activityId;

    private LocalDate statDate;

    private Integer participantCount;

    private Integer newUserCount;

    private Integer orderCount;

    private BigDecimal orderAmount;

    private BigDecimal discountAmount;

    private BigDecimal actualAmount;

    private Integer couponReceiveCount;

    private Integer couponUseCount;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
