liu
2 天以前 5d34bdd3c426bb2ca5f6627424ae67984f745603
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package cn.iocoder.yudao.module.vehicle.enums;
 
import lombok.AllArgsConstructor;
import lombok.Getter;
 
/**
 * 用车申请状态枚举
 */
@Getter
@AllArgsConstructor
public enum VehicleApplicationStatusEnum {
 
    DRAFT(0, "草稿"),
    APPROVING(15, "审批中"),
    APPROVED(20, "已通过"),
    REJECTED(35, "已驳回");
 
    private final Integer status;
    private final String name;
 
    public static String nameOf(Integer status) {
        for (VehicleApplicationStatusEnum value : values()) {
            if (value.status.equals(status)) {
                return value.name;
            }
        }
        return "未知";
    }
 
}