package com.fjhx.entity;

import com.fjhx.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author ${author}
 * @since 2022-08-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Order extends BaseEntity {


    /**
     * 供应商id
     */
    private Long supplierId;

    /**
     * 订单号
     */
    private String code;

    /**
     * 账期/天
     */
    private Integer accountPeriod;

    /**
     * 订单金额
     */
    private BigDecimal price;

    /**
     * 到货金额
     */
    private BigDecimal arrivalPrice;

    /**
     * 支付金额
     */
    private BigDecimal payPrice;

    /**
     * 状态 1待审批 2不通过 3审批通过 4完成
     */
    private Integer status;

}
