/*
 * 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;
    /**
     * 璁㈠崟椤笽D
     */
    @TableId(type = IdType.AUTO)
    private Long orderItemId;

    private Long shopId;

    /**
     * 璁㈠崟orderNumber
     */
    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;

    /**
     * 璇勮鐘舵€侊細 0 鏈瘎浠? 1 宸茶瘎浠?
     */
    private Integer commSts;

    /**
     * 鎺ㄥ箍鍛樹娇鐢ㄧ殑鎺ㄩ攢鍗″彿
     */
    private String distributionCardNo;

    /**
     * 鍔犲叆璐墿杞︾殑鏃堕棿
     */
    private Date basketDate;

    /**
     * 鍟嗗搧瀹為檯閲戦 = 鍟嗗搧鎬婚噾棰?- 鍒嗘憡鐨勪紭鎯犻噾棰?
     */
    private Double actualTotal;

    /**
     * 鍒嗘憡鐨勪紭鎯犻噾棰?
     */
    private Double shareReduce;

    /**
     * 会员优惠分摊金额
     */
    private Double memberDiscountShareAmount;

    /**
     * 浣跨敤绉垎
     */
    private Integer useScore;
    /**
     * 鐘舵€?-1寰呭彂璐?0鍏ㄩ儴鍙戣揣 鍏朵粬鏁伴噺涓哄墿浣欏緟鍙戣揣鏁伴噺
     */
    private Integer status;
    /**
     * 璁㈠崟纭鏀惰揣鑾峰彇鐨勭Н鍒?
     */
    private Integer gainScore;
//
//    /**
//     * 琛ヨ创鐨勪紭鎯犻噾棰?
//     */
//    private Double subsidyAmount;

    /**
     * 骞冲彴琛ヨ创鐨勪紭鎯犻噾棰?
     */
    private Double platformShareReduce;

    /**
     * 鍒嗛攢浣ｉ噾
     */
    private Double distributionAmount;

    /**
     * 涓婄骇鍒嗛攢浣ｉ噾
     */
    private Double distributionParentAmount;

    /**
     * 鍗曚釜orderItem鐨勯厤閫佺被鍨?1:蹇€?2:鑷彁 3锛氭棤闇€蹇€?
     */
    private Integer dvyType;

    /**
     * 鍙戣揣鏀瑰彉鐨勬暟閲?
     */
    @TableField(exist = false)
    private Integer changeNum;


    /**
     * 閫€娆剧紪鍙凤紙閫€娆剧紪鍙蜂负null鏃讹紝璇存槑璁㈠崟涓烘甯哥姸鎬侊級
     */
    @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;

    /**
     * 娴峰崥鍟嗗搧ID
     */
    @TableField(exist = false)
    private String hbSkuId;

    /**
     * 鍟嗗搧缂栫爜
     */
    @TableField(exist = false)
    private String skuCode;

}
