package com.czg.account.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

/**
 * 台桌订单统计表 实体类。
 *
 * @author zs
 * @since 2025-03-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("tb_shop_table_order_statistic")
public class ShopTableOrderStatistic implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private Long tableId;

    @Column(ignore = true)
    private String name;

    /**
     * 订单数量
     */
    private Long orderCount;

    /**
     * 订单金额
     */
    private BigDecimal orderAmount;
    /**
     * 退款金额
     */
    private BigDecimal refundAmount;
    /**
     * 退款金额
     */
    private Long refundCount;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 创建日期 年月日
     */
    private Date createDay;

}
