package com.qianwen.smartman.modules.andon.enums;
|
|
import java.util.Arrays;
|
import com.qianwen.core.tool.utils.Func;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/andon/enums/WorkType.class */
|
public enum WorkType {
|
GROUP(0),
|
WORKSTATION(1);
|
|
private final Integer type;
|
|
WorkType(final Integer type) {
|
this.type = type;
|
}
|
|
public Integer getType() {
|
return this.type;
|
}
|
|
public static WorkType findByType(Integer type) {
|
if (Func.isNull(type)) {
|
return GROUP;
|
}
|
return (WorkType) Arrays.stream(values()).filter(wt -> {
|
return wt.getType().equals(type);
|
}).findFirst().get();
|
}
|
}
|