package com.yiqi.order.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yiqi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.yiqi.common.core.domain.BaseEntity;
import lombok.Data;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 商品订单物料明细对象 order_goods_sku
 *
 * @author ruoyi
 * @date 2023-12-06
 */
@ApiModel("商品订单物料明细")
@TableName("order_goods_sku")
@Data
public class OrderGoodsSku extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    @ApiModelProperty("订单ID")
    private Long orderId;

    /**
     * 退款ID
     */
    @Excel(name = "退款ID")
    @ApiModelProperty("退款ID")
    private Long refundId;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    @ApiModelProperty("订单编号")
    private String orderNo;

    /**
     * 购买数量
     */
    @Excel(name = "购买数量")
    @ApiModelProperty("购买数量")
    private Integer buyNum;

    /**
     * 单价
     */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    private BigDecimal salePrice;


    /**
     * 折扣总价
     */
    @Excel(name = "折扣总价")
    @ApiModelProperty("折扣总价")
    private BigDecimal totalAmount;

    /**
     * 退款总价
     */
    @Excel(name = "退款总价")
    @ApiModelProperty("退款总价")
    private BigDecimal refundAmount;

    /**
     * 规格内容
     */
    @Excel(name = "规格内容")
    @ApiModelProperty("规格内容")
    private String skuName;

    /**
     * 物料ID
     */
    @Excel(name = "物料ID")
    @ApiModelProperty("物料ID")
    private Long skuId;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    @ApiModelProperty("商品ID")
    private Long goodsId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    @ApiModelProperty("商品名称")
    private String goodsName;

    @Excel(name = "商品图片")
    @ApiModelProperty("商品图片")
    private String goodsImg;
}
