package com.jeesharp.business.modules.mall.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("mall_order_item")
public class MallOrderItem extends BaseEntity<MallOrderItem> {

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * SKU ID
     */
    private String skuId;

    /**
     * SPU ID
     */
    private String spuId;

    /**
     * 商品名称
     */
    private String skuName;

    /**
     * 规格信息
     */
    private String specInfo;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 小计金额
     */
    private BigDecimal totalAmount;

    /**
     * 商品图片
     */
    private String image;

    /**
     * 是否赠品：0-否 1-是
     */
    private Integer isGift;
}