package net.lab1024.sa.admin.module.business.wms.receive.asnDetail.domain.form;

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

import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 入库明细 新建表单
 *
 * @Author 霍锦
 * @Date 2025-03-26 15:16:28
 * @Copyright 友仓
 */

@Data
public class AsnDetailAddForm {
    @Schema(description = "入库单", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入库单 不能为空")
    private Long asnId;

    @Schema(description = "物料", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "物料 不能为空")
    private Long itemId;

    @Schema(description = "订单数量")
    @NotNull(message = "订单数量不能为空")
    @DecimalMin(value = "1", message = "订单数量最低1")
    private BigDecimal orderQuantity;

    @Schema(hidden = true)
    private Long createUserId;

    @Schema(hidden = true)
    private String createUserName;
}