package com.fjhx.victoriatourist.entity.jd.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BasePo;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>
 * 京东订单明细
 * </p>
 *
 * @author
 * @since 2023-04-20
 */
@Getter
@Setter
@TableName("jd_order_details")
public class JdOrderDetails extends BasePo {

    /**
     * 京东订单id
     */
    private Long jdOrderId;

    /**
     * 产品id
     */
    @NotNull(message = "产品id不能为空")
    private Long productId;

    /**
     * 单价
     */
    @NotNull(message = "单价不能为空")
    private BigDecimal price;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空")
    private BigDecimal quantity;

    /**
     * 小计
     */
    private BigDecimal subtotal;

    /**
     * 备注
     */
    private String remark;

    /**
     * 出库数量
     */
    private BigDecimal quantityDelivered;

}
