package cn.iocoder.yudao.module.mes.controller.admin.wm.productissue.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.DecimalMin;
|
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
@Schema(description = "管理后台 - MES 补领辅料 Request VO")
|
@Data
|
public class MesWmProductIssueSupplementReqVO {
|
|
@Schema(description = "生产工单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "生产工单不能为空")
|
private Long workOrderId;
|
|
@Schema(description = "生产任务编号(为空时自动取该工单下的第一道任务)", example = "1")
|
private Long taskId;
|
|
@Schema(description = "工作站编号(为空时自动取任务所在工作站)", example = "1")
|
private Long workstationId;
|
|
@Schema(description = "补领物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
|
@NotNull(message = "补领物料不能为空")
|
private Long itemId;
|
|
@Schema(description = "补领数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10.00")
|
@NotNull(message = "补领数量不能为空")
|
@DecimalMin(value = "0", inclusive = false, message = "补领数量必须大于 0")
|
private BigDecimal quantity;
|
|
@Schema(description = "补领原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "来料不良,追加领用")
|
@NotBlank(message = "补领原因不能为空")
|
private String reason;
|
|
@Schema(description = "需求时间(为空时默认取当前时间)")
|
private LocalDateTime requiredTime;
|
|
@Schema(description = "备注", example = "备注")
|
private String remark;
|
|
}
|