fix org and machine
parent
e2ae5e8f49
commit
46464ae58a
@ -0,0 +1,36 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.machine.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum MachineStatusEnum {
|
||||
|
||||
|
||||
空闲(1),
|
||||
工作(2),
|
||||
维修(3),
|
||||
保养(4),
|
||||
报废(5);
|
||||
|
||||
private final Integer value;
|
||||
|
||||
// 一个可选的方法,用于根据整数值获取对应的枚举实例
|
||||
public static MachineStatusEnum fromValue(int value) {
|
||||
for (MachineStatusEnum status : MachineStatusEnum.values()) {
|
||||
if (status.getValue() == value) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown value: " + value);
|
||||
}
|
||||
//返回能状态
|
||||
public static List<Integer> getEnableStatus(){
|
||||
List<Integer> statusList = new ArrayList<>();
|
||||
return statusList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.machine.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum MachineTypeEnum {
|
||||
|
||||
|
||||
产线(1),
|
||||
机台(2),
|
||||
关键件(3);
|
||||
|
||||
private final Integer value;
|
||||
|
||||
// 一个可选的方法,用于根据整数值获取对应的枚举实例
|
||||
public static MachineTypeEnum fromValue(int value) {
|
||||
for (MachineTypeEnum status : MachineTypeEnum.values()) {
|
||||
if (status.getValue() == value) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown value: " + value);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.organization.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum OrgClassEnum {
|
||||
|
||||
|
||||
工厂("factory"),
|
||||
车间("workshop"),
|
||||
产线("pipeline"),
|
||||
工序("process"),
|
||||
工位("workplace"),;
|
||||
|
||||
private final String value;
|
||||
|
||||
// 一个可选的方法,用于根据整数值获取对应的枚举实例
|
||||
public static OrgClassEnum fromValue(String value) {
|
||||
for (OrgClassEnum status : OrgClassEnum.values()) {
|
||||
if (status.getValue() .equals(value)) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown value: " + value);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.organization.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum ProcessTypeEnum {
|
||||
|
||||
|
||||
|
||||
制浆("zhijiang"),
|
||||
成型("chengxing"),
|
||||
烘干("honggan"),
|
||||
转移("zhuanyi"),
|
||||
加湿("jiashi"),
|
||||
热压("reya"),
|
||||
切边("qiebian"),
|
||||
品检("pinjian"),
|
||||
打包("dabao"),
|
||||
贴标("tiebiao"),
|
||||
塑封("sufeng");
|
||||
|
||||
private final String value;
|
||||
|
||||
// 一个可选的方法,用于根据整数值获取对应的枚举实例
|
||||
public static OrgClassEnum fromValue(String value) {
|
||||
for (OrgClassEnum status : OrgClassEnum.values()) {
|
||||
if (status.getValue() .equals(value)) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown value: " + value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue