package cn.iocoder.yudao.module.mes.controller.admin.pro.workorder.vo.paramrecord;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.Valid;
|
import jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
import java.util.List;
|
|
@Schema(description = "管理后台 - MES 生产工单参数记录新增/修改 Request VO")
|
@Data
|
public class MesProWorkOrderParamRecordSaveReqVO {
|
|
@Schema(description = "编号(修改时必传)", example = "1024")
|
private Long id;
|
|
@Schema(description = "参数模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "参数模板不能为空")
|
private Long templateId;
|
|
@Schema(description = "记录序号/批次号", example = "BATCH-001")
|
private String recordNo;
|
|
@Schema(description = "参数明细列表", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotEmpty(message = "参数明细不能为空")
|
@Valid
|
private List<DetailItem> details;
|
|
@Schema(description = "备注", example = "备注")
|
private String remark;
|
|
@Schema(description = "参数明细项")
|
@Data
|
public static class DetailItem {
|
|
@Schema(description = "模板明细编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "模板明细编号不能为空")
|
private Long templateDetailId;
|
|
@Schema(description = "参数值", example = "200")
|
private String paramValue;
|
|
}
|
|
}
|