package com.jeesharp.business.modules.food.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 订餐订单明细
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("app_food_meal_order_item")
public class FoodMealOrderItem extends BaseEntity<FoodMealOrderItem> {

    /**
     * 订餐订单ID
     */
    private String orderId;
    /**
     * 订餐订单号
     */
    private String orderNo;
    /**
     * 菜单明细ID
     */
    private String menuItemId;
    /**
     * 菜单ID
     */
    private String menuId;
    /**
     * 条目类型：dish/package
     */
    private String itemType;
    /**
     * 菜品ID
     */
    private String dishId;
    /**
     * 套餐ID
     */
    private String packageId;
    /**
     * 菜品/套餐名称快照
     */
    private String itemName;
    /**
     * 菜品/套餐图片快照
     */
    private String itemImage;
    /**
     * 规格ID
     */
    private String specId;
    /**
     * 规格名称快照
     */
    private String specName;
    /**
     * 规格描述快照
     */
    private String specDescription;
    /**
     * 成交单价
     */
    private BigDecimal salePrice;
    /**
     * 购买数量
     */
    private Integer quantity;
    /**
     * 明细总金额
     */
    private BigDecimal totalAmount;
    /**
     * 明细优惠金额
     */
    private BigDecimal discountAmount;
    /**
     * 明细企业承担金额
     */
    private BigDecimal companyPayAmount;
    /**
     * 明细用户实付金额
     */
    private BigDecimal userPayAmount;
    /**
     * 已退款数量
     */
    private Integer refundQuantity;
    /**
     * 明细已退款金额
     */
    private BigDecimal refundAmount;
}
