package com.qianwen.smartman.modules.coproduction.enums;
|
|
import java.util.Arrays;
|
import com.qianwen.smartman.common.constant.CommonConstant;
|
import com.qianwen.core.tool.utils.Func;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/enums/CoProductionEnum.class */
|
public class CoProductionEnum {
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/enums/CoProductionEnum$WhetherTest.class */
|
public enum WhetherTest {
|
NO(0, "否"),
|
YES(1, "是");
|
|
private final Integer code;
|
private final String name;
|
|
public Integer getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
WhetherTest(int code, String name) {
|
this.code = Integer.valueOf(code);
|
this.name = name;
|
}
|
|
public String getNameByCode(Integer code) {
|
return (String) Arrays.stream(values()).filter(o -> {
|
return Func.isNotEmpty(code) && code.equals(o.getCode());
|
}).map((v0) -> {
|
return v0.getName();
|
}).findFirst().orElse("");
|
}
|
}
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/enums/CoProductionEnum$WhetherParallel.class */
|
public enum WhetherParallel {
|
NO(0, "否"),
|
YES(1, "是");
|
|
private final Integer code;
|
private final String name;
|
|
public Integer getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
WhetherParallel(int code, String name) {
|
this.code = Integer.valueOf(code);
|
this.name = name;
|
}
|
|
public String getNameByCode(Integer code) {
|
return (String) Arrays.stream(values()).filter(o -> {
|
return Func.isNotEmpty(code) && code.equals(o.getCode());
|
}).map((v0) -> {
|
return v0.getName();
|
}).findFirst().orElse("");
|
}
|
}
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/enums/CoProductionEnum$RecordStatus.class */
|
public enum RecordStatus {
|
NO(0, "开工"),
|
YES(1, "完工");
|
|
private final Integer code;
|
private final String name;
|
|
public Integer getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
RecordStatus(int code, String name) {
|
this.code = Integer.valueOf(code);
|
this.name = name;
|
}
|
|
public String getNameByCode(Integer code) {
|
return (String) Arrays.stream(values()).filter(o -> {
|
return Func.isNotEmpty(code) && code.equals(o.getCode());
|
}).map((v0) -> {
|
return v0.getName();
|
}).findFirst().orElse("");
|
}
|
}
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/enums/CoProductionEnum$WorkstationStatus.class */
|
public enum WorkstationStatus {
|
NO(1, "未开工"),
|
YES(2, "已开工");
|
|
private final Integer code;
|
private final String name;
|
|
public Integer getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
WorkstationStatus(int code, String name) {
|
this.code = Integer.valueOf(code);
|
this.name = name;
|
}
|
|
public String getNameByCode(Integer code) {
|
return (String) Arrays.stream(values()).filter(o -> {
|
return Func.isNotEmpty(code) && code.equals(o.getCode());
|
}).map((v0) -> {
|
return v0.getName();
|
}).findFirst().orElse("");
|
}
|
}
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/enums/CoProductionEnum$OrderStatus.class */
|
public enum OrderStatus {
|
TOBE_START(1, "待加工"),
|
PROCESSING(2, "加工中"),
|
TIME_OUT(3, "暂停"),
|
CLOSED(4, "关闭"),
|
COMPLETED(5, CommonConstant.FINISH);
|
|
private final Integer code;
|
private final String name;
|
|
public Integer getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
OrderStatus(int code, String name) {
|
this.code = Integer.valueOf(code);
|
this.name = name;
|
}
|
|
public String getNameByCode(Integer code) {
|
return (String) Arrays.stream(values()).filter(o -> {
|
return Func.isNotEmpty(code) && code.equals(o.getCode());
|
}).map((v0) -> {
|
return v0.getName();
|
}).findFirst().orElse("");
|
}
|
}
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/enums/CoProductionEnum$SystemOrOrdinaryStatus.class */
|
public enum SystemOrOrdinaryStatus {
|
ORDINARY(0, "普通报工"),
|
SYSTEM(1, "系统报工");
|
|
private final Integer code;
|
private final String name;
|
|
public Integer getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
SystemOrOrdinaryStatus(int code, String name) {
|
this.code = Integer.valueOf(code);
|
this.name = name;
|
}
|
|
public String getNameByCode(Integer code) {
|
return (String) Arrays.stream(values()).filter(o -> {
|
return Func.isNotEmpty(code) && code.equals(o.getCode());
|
}).map((v0) -> {
|
return v0.getName();
|
}).findFirst().orElse("");
|
}
|
}
|
}
|