fix item requisition
parent
e00d91e7ed
commit
904b2581e7
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
## 待完成
|
||||||
|
1. 获取当前某工序所有工人列表
|
||||||
|
2.
|
||||||
@ -0,0 +1,39 @@
|
|||||||
|
package cn.iocoder.yudao.module.mes.controller.admin.itemrequisition.vo;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.*;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import com.alibaba.excel.annotation.*;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 领料明细 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class ItemRequisitionDetailRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28224")
|
||||||
|
@ExcelProperty("ID")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8370")
|
||||||
|
private Long productId;
|
||||||
|
@Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "8370")
|
||||||
|
@ExcelProperty("产品")
|
||||||
|
private String productName;
|
||||||
|
@Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "1117")
|
||||||
|
private String unitName;
|
||||||
|
@Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1117")
|
||||||
|
@ExcelProperty("单位ID")
|
||||||
|
private Long unitId;
|
||||||
|
|
||||||
|
@Schema(description = "领料单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18973")
|
||||||
|
@ExcelProperty("领料单ID")
|
||||||
|
private Long itemRequisitionId;
|
||||||
|
|
||||||
|
@Schema(description = "数量")
|
||||||
|
@ExcelProperty("数量")
|
||||||
|
private BigDecimal number;
|
||||||
|
|
||||||
|
@Schema(description = "备注", example = "你说的对")
|
||||||
|
@ExcelProperty("备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
package cn.iocoder.yudao.module.mes.controller.admin.itemrequisition.vo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum ItemRequisitionStatusEnum {
|
||||||
|
|
||||||
|
草稿(1),
|
||||||
|
下达(2),
|
||||||
|
下料(3),
|
||||||
|
完成(4);
|
||||||
|
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
// 一个可选的方法,用于根据整数值获取对应的枚举实例
|
||||||
|
public static ItemRequisitionStatusEnum fromValue(int value) {
|
||||||
|
for (ItemRequisitionStatusEnum status : ItemRequisitionStatusEnum.values()) {
|
||||||
|
if (status.getValue() == value) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new IllegalArgumentException("Unknown value: " + value);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.mes.controller.admin.plan.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class PlanStatusUpdateVO {
|
||||||
|
@Schema(description = "计划id", example = "21176")
|
||||||
|
@NotNull(message = "计划id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "更新类型")
|
||||||
|
@NotNull(message = "更新类型")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
@Schema(description = "更新状态", example = "21176")
|
||||||
|
@NotNull(message = "更新状态")
|
||||||
|
private int status;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue