package com.sckw.order.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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
* @date 2026-04-27 10:13:13
* @author xucaiqin
*/
/**
    * 交易订单（采购订单/销售订单）
    */
@Schema(description="交易订单（采购订单/销售订单）")
@Data
@TableName(value = "kwo_trade_order_archive")
public class KwoTradeOrderArchive {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="主键")
    private Long id;

    /**
     * 贸易订单id
     */
    @TableField(value = "trade_order_id")
    @Schema(description="贸易订单id")
    private Long tradeOrderId;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    @Schema(description="商品id")
    private Long goodsId;

    /**
     * 商品品名
     */
    @TableField(value = "product_name")
    @Schema(description="商品品名")
    private String productName;

    /**
     * 商品规格
     */
    @TableField(value = "product_spec")
    @Schema(description="商品规格")
    private String productSpec;

    /**
     * 商品成交单价
     */
    @TableField(value = "unit_price")
    @Schema(description="商品成交单价")
    private BigDecimal unitPrice;

    /**
     * 货物数量
     */
    @TableField(value = "amount")
    @Schema(description="货物数量")
    private BigDecimal amount;
}
