package com.sckw.order.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sckw.core.model.base.BaseModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @desc: 交易订单商品信息
 * @author: yzc
 * @date: 2023-06-25 9:31
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("kwo_trade_order_goods")
public class KwoTradeOrderGoods extends BaseModel implements Serializable {

    @Serial
    private static final long serialVersionUID = -4889876395927682008L;
    /**
     * 交易订单id
     */
    @JsonProperty("tOrderId")
    private Long tOrderId;

    /**
     * 订单编号
     */
    @JsonProperty("tOrderNo")
    private String tOrderNo;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 商品类型
     */
    private String goodsType;

    /**
     * sku
     */
    private Long skuId;

    /**
     * 单位（吨、方、件、箱、其他）
     */
    private String unit;

    /**
     * 商品成交单价
     */
    private BigDecimal unitPrice;

    /**
     * kwp_goods_price_range表主键ID
     */
    private Long priceRangeId;
    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName ;

}
