package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

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

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

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long activityId;

    private LocalDate statDate;

    private Long shopId;

    private String shopName;

    private Integer totalAdjustedProducts;

    private Integer priorityProducts;

    private Integer totalAdjustedStock;

    private Integer totalSoldQuantity;

    private Integer prioritySoldQuantity;

    private BigDecimal originalValue;

    private BigDecimal actualSales;

    private BigDecimal savedAmount;

    private BigDecimal wasteReductionRate;

    private BigDecimal sellThroughRate;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String activityName;
}
