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_record")
public class TimedDiscountRecord implements Serializable {
    private static final long serialVersionUID = 1L;

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

    private Long activityId;

    private String activityName;

    private LocalDate executeDate;

    private LocalDateTime executeTime;

    private Long shopId;

    private String shopName;

    private String deviceId;

    private String deviceName;

    private Integer totalProducts;

    private Integer priorityProducts;

    private Integer totalStock;

    private BigDecimal originalValue;

    private BigDecimal discountValue;

    private BigDecimal savedValue;

    private Integer status;

    private String errorMessage;

    private Integer executeDuration;

    private LocalDateTime createTime;

    @TableField(exist = false)
    private String statusLabel;

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