package cn.iocoder.yudao.module.mes.controller.admin.stockworkshop.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

@Schema(description = "管理后台 - 车间仓明细新增/修改 Request VO")
@Data
public class StockWorkshopDetailSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24842")
    private Long id;

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

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "28845")
    @NotNull(message = "数量不能为空")
    private BigDecimal count;
    @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24261")
    private Long unitId;
    @Schema(description = "明细类别", example = "2")
    private String detailType;

    @Schema(description = "领料单")
    private String itemRequisitionCode;

    @Schema(description = "领料明细id", example = "877")
    private Long itemRequisitionDetailId;

    @Schema(description = "投料单")
    private String feedingRecordCode;

    @Schema(description = "投料id", example = "19286")
    private Long feedingRecordId;

    @Schema(description = "操作人员", requiredMode = Schema.RequiredMode.REQUIRED, example = "26362")
    @NotNull(message = "操作人员不能为空")
    private Long userId;

    @Schema(description = "单据时间")
    private LocalDateTime operateTime;

}