package com.hzs.common.domain.sale.order;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 订单商品拆分
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("SA_ORDER_WARES_SEQ")
@TableName("SA_ORDER_WARES")
public class SaOrderWares extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 销售订单主表
     */
    @TableField("PK_ORDER")
    private Long pkOrder;

    /**
     * 商品主键
     */
    @TableField("PK_WARES")
    private Integer pkWares;

    /**
     * 商品数量
     */
    @TableField("WARES_QUANTITY")
    private BigDecimal waresQuantity;

    /**
     * 商品价格
     */
    @TableField("WARES_PRICE")
    private BigDecimal waresPrice;


}
