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;

/**
 * <p>
 * 订单与虚拟订单关联表
 * </p>
 *
 * @author hzs
 * @since 2023-03-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("SA_ORDER_RELATION_SEQ")
@TableName("SA_ORDER_RELATION")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SaOrderRelation extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 订单编号
     */
    @TableField("ORDER_CODE")
    private String orderCode;

    /**
     * 订单类型 来源于枚举：所属专区
     */
    @TableField("ORDER_TYPE")
    private Integer orderType;

    /**
     * 汇率
     */
    @TableField("PK_RATE")
    private Integer pkRate;

    /**
     * 订单金额
     */
    @TableField("ORDER_AMOUNT")
    private BigDecimal orderAmount;

    /**
     * 邮费
     */
    @TableField("POSTAGE")
    private BigDecimal postage;

}
