package com.qianwen.smartman.modules.fms.enums;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/fms/enums/OrderSortEnum.class */
|
public enum OrderSortEnum {
|
DEFAULT(1, Boolean.TRUE, Boolean.TRUE),
|
PRIORITY_DESC(2, Boolean.FALSE, Boolean.FALSE),
|
PRIORITY_ASC(3, Boolean.TRUE, Boolean.FALSE),
|
PLAN_START_TIME_DESC(4, Boolean.FALSE, Boolean.TRUE),
|
PLAN_START_TIME_ASC(5, Boolean.TRUE, Boolean.TRUE);
|
|
private final Integer sort;
|
private final Boolean isAsc;
|
private final Boolean isTime;
|
|
OrderSortEnum(Integer sort, Boolean isAsc, Boolean isTime) {
|
this.sort = sort;
|
this.isAsc = isAsc;
|
this.isTime = isTime;
|
}
|
|
public Integer getSort() {
|
return this.sort;
|
}
|
|
public Boolean getIsAsc() {
|
return this.isAsc;
|
}
|
|
public Boolean getIsTime() {
|
return this.isTime;
|
}
|
|
public static OrderSortEnum of(Integer type) {
|
OrderSortEnum[] values;
|
for (OrderSortEnum value : values()) {
|
if (value.sort.equals(type)) {
|
return value;
|
}
|
}
|
return DEFAULT;
|
}
|
}
|