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
| package cn.iocoder.yudao.module.ums.enums;
|
| import cn.hutool.core.util.ArrayUtil;
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| /**
| * 入会申请状态枚举
| *
| * @author 超级管理员
| */
| @Getter
| @AllArgsConstructor
| public enum UmsApplicationStatusEnum {
|
| DRAFT(0, "草稿"),
| APPROVING(15, "审批中"),
| APPROVED(20, "已通过"),
| REJECTED(35, "已驳回"),
| ;
|
| private final Integer status;
| private final String name;
|
| public static UmsApplicationStatusEnum valueOf(Integer status) {
| return ArrayUtil.firstMatch(e -> e.getStatus().equals(status), values());
| }
|
| }
|
|