云
14 小时以前 3edf8c4fc07f9784e2d04ee7a98692bb457749eb
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/pro/route/vo/process/MesProRouteProcessSaveReqVO.java
@@ -4,8 +4,8 @@
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
import java.math.BigDecimal;
@Schema(description = "管理后台 - MES 工艺路线工序新增/修改 Request VO")
@Data
@@ -18,16 +18,16 @@
    @NotNull(message = "工艺路线编号不能为空")
    private Long routeId;
    @Schema(description = "工序编号", example = "1")
    @Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "工序编号不能为空")
    private Long processId;
    @Schema(description = "工艺参数模板编号", example = "1")
    private Long paramTemplateId;
    @Schema(description = "工序收率(产出/投入,0~1)", example = "0.98")
    private BigDecimal yieldRate;
    @Schema(description = "序号", example = "1")
    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "序号不能为空")
    private Integer sort;
    @Schema(description = "与下一道工序关系", example = "0")
@@ -54,7 +54,28 @@
    @Schema(description = "产出产品物料编号列表(多选,为空时默认用工单成品)", example = "[100, 101]")
    private List<Long> outputItemIds;
    @Schema(description = "产出物料归属配置(优先于 outputItemIds;productId 为空表示多产品通用)")
    private List<OutputItem> outputs;
    @Schema(description = "备注")
    private String remark;
    @Schema(description = "产出物料归属")
    @Data
    public static class OutputItem {
        @Schema(description = "归属产品编号,为空表示多产品通用")
        private Long productId;
        @Schema(description = "产出物料编号", requiredMode = Schema.RequiredMode.REQUIRED)
        private Long itemId;
        @Schema(description = "排序")
        private Integer sort;
        @Schema(description = "备注")
        private String remark;
    }
}