/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.bean.model;

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.util.Date;

@Data
@TableName("tz_order_item")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 7307405761190788407L;
    /**
     * 订单项ID
     */
    @TableId(type = IdType.AUTO)
    private Long orderItemId;

    private Long shopId;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 产品ID
     */
    private Long prodId;

    /**
     * 产品SkuID
     */

    private Long skuId;

    /**
     * 购买数量
     */
    private Integer prodCount;

    /**
     * 商品重量
     */
    private Double weight;
    /**
     * 拆分数量
     */
    private Integer splitCount;

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

    /**
     * SKU名称
     */
    private String skuName;

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

    /**
     * 商品单价
     */
    private Double price;

    /**
     * 用户ID
     */

    private String userId;

    /**
     * 商品总金额
     */
    private Double productTotalAmount;

    /**
     * 下单时间
     */

    private Date recTime;

    /**
     * 评论状态
     */
    private Integer commSts;

    /**
     * 分销卡号
     */
    private String distributionCardNo;

    /**
     * 加入购物车时间
     */
    private Date basketDate;

    /**
     * 实际金额
     */
    private Double actualTotal;

    /**
     * 分摊优惠
     */
    private Double shareReduce;

    /**
     * 会员折扣分摊金额
     */
    private Double memberDiscountShareAmount;

    /**
     * 使用积分
     */
    private Integer useScore;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 获得积分
     */
    private Integer gainScore;
//
//    /**
// 订单项字段说明
//     */
//    private Double subsidyAmount;

    /**
     * 平台分摊优惠
     */
    private Double platformShareReduce;

    /**
     * 分销金额
     */
    private Double distributionAmount;

    /**
     * 上级分销金额
     */
    private Double distributionParentAmount;

    /**
     * 配送类型
     */
    private Integer dvyType;

    /**
     * 变更数量
     */
    @TableField(exist = false)
    private Integer changeNum;


    /**
     * 退款单号
     */
    @TableField(exist = false)
    private String refundSn;

    /**
     * 退款状态
     */
    @TableField(exist = false)
    private Integer returnMoneySts;

    /**
     * 变更金额
     */
    @TableField(exist = false)
    private Double chageAmount;

    @TableField(exist = false)
    private Integer productCount;

    @TableField(exist = false)
    private Double goodsTotal;

    @TableField(exist = false)
    private Integer refundIngCount;

    @TableField(exist = false)
    private Integer refundSuccessCount;

    @TableField(exist = false)
    private Integer refundCount;

    @TableField(exist = false)
    private String spec;

    /**
     * 海博SKU ID
     */
    @TableField(exist = false)
    private String hbSkuId;

    /**
     * SKU编码
     */
    @TableField(exist = false)
    private String skuCode;

}
