package cn.iocoder.foodnexus.module.erp.controller.admin.sale.vo.order;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "管理后台 - ERP 销售订单检获 Request VO")
@Data
public class ErpSaleOrderPickUpReqVO {

    @Schema(description = "销售订单id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "销售订单id不能为空")
    private Long id;

    @Schema(description = "销售订单子项id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "销售订单子项id不能为空")
    private Long itemId;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数量不能为空")
    @DecimalMin(value = "0", inclusive = false, message = "数量必须大于0")
    private BigDecimal count;

}
