fix:修改生产计划工艺路线及换线相关接口
parent
20440ed330
commit
815f405cfa
@ -0,0 +1,44 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.plan.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 生产计划批量换线 Request VO")
|
||||
@Data
|
||||
public class PlanLineChangeBatchReqVO {
|
||||
|
||||
@Schema(description = "生产计划 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "生产计划 ID 不能为空")
|
||||
private Long planId;
|
||||
|
||||
@Valid
|
||||
@NotEmpty(message = "换线明细列表不能为空")
|
||||
@Schema(description = "换线明细列表", implementation = LineChangeItem.class)
|
||||
private List<LineChangeItem> items;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Data
|
||||
@Schema(description = "生产计划批量换线明细")
|
||||
public static class LineChangeItem {
|
||||
|
||||
@Schema(description = "计划工艺流程明细 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "计划工艺流程明细 ID 不能为空")
|
||||
private Long planProcessRouteItemId;
|
||||
|
||||
@Schema(description = "换线后的设备 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
|
||||
@NotNull(message = "换线后的设备 ID 不能为空")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.plan.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 生产计划换线记录批次 Response VO")
|
||||
@Data
|
||||
public class PlanLineChangeRecordBatchRespVO {
|
||||
|
||||
@Schema(description = "换线批次号", example = "B20260706000001")
|
||||
private String changeBatchNo;
|
||||
|
||||
@Schema(description = "生产计划编号", example = "1")
|
||||
private Long planId;
|
||||
|
||||
@Schema(description = "换线时间")
|
||||
private LocalDateTime changeTime;
|
||||
|
||||
@Schema(description = "操作人 ID", example = "1")
|
||||
private Long operatorUserId;
|
||||
|
||||
@Schema(description = "当前计划合格数量", example = "100")
|
||||
private Long passNumber;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "变更工序数量", example = "2")
|
||||
private Integer changeCount;
|
||||
|
||||
@Schema(description = "换线明细列表")
|
||||
private List<PlanLineChangeRecordRespVO> items;
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.plan.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Schema(description = "管理后台 - 生产计划换线记录分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class PlanLineChangeRecordPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "生产计划 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
||||
@NotNull(message = "生产计划 ID 不能为空")
|
||||
private Long planId;
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue