Blame view

fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/enums/PubStandType.java 1.2 KB
80738b3b   张志伟   公共池站岗必要类
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  package cn.fw.valhalla.domain.enums;
  
  import com.baomidou.mybatisplus.core.enums.IEnum;
  import com.fasterxml.jackson.annotation.JsonCreator;
  import com.fasterxml.jackson.annotation.JsonValue;
  
  /**
   * 公共池站岗类型
   *
   * @author : kurisu
   * @version : 1.0
   * @className : PubStandType
   * @description : 公共池站岗类型
   * @date : 2023-03-10 11:25
   */
  public enum PubStandType implements IEnum<Integer> {
      /**
       * 公共池
       */
      PUB(1),
      /**
c2c96eeb   张志伟   feature(*): 公共池站岗联调
22
       * 市场活动
80738b3b   张志伟   公共池站岗必要类
23
24
       */
      ACTIVITY(2),
03d7ac84   张志伟   feature(*): 添加续保、...
25
26
27
28
29
30
31
32
      /**
       * 续保
       */
      IR(3),
      /**
       * 事故车
       */
      AC(4),
80738b3b   张志伟   公共池站岗必要类
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
      ;
  
      /**
       * 
       */
      private final Integer value;
  
      PubStandType(Integer value) {
          this.value = value;
      }
  
      /**
       * 根据枚举值获取枚举对象
       */
      @JsonCreator
      public static PubStandType ofValue(final Integer value) {
          for (final PubStandType typeEnum : PubStandType.values()) {
              if (typeEnum.value.equals(value)) {
                  return typeEnum;
              }
          }
          return null;
      }
  
      /**
       * 获取值
       *
       * @return 
       */
      @JsonValue
      @Override
      public Integer getValue() {
          return value;
      }
  }