Blame view

fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/enums/ValhallaReportDimension.java 809 Bytes
bfac3874   xianpengcheng   public_report_dat...
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
  package cn.fw.valhalla.domain.enums;
  
  import com.fasterxml.jackson.annotation.JsonCreator;
  import lombok.AllArgsConstructor;
  import lombok.Getter;
  
  /**
   * 维度
   * <p>
   * create at 2020-07-14
   *
   * @author zhangjj
   */
  @AllArgsConstructor
  public enum ValhallaReportDimension {
      /**
       * 门店
       */
      D10("10"),
      /**
       * 人员
       */
      D20("20"),
      /**
       * 来源
       */
4e1784b0   xianpengcheng   来源与报表统一为 60
27
      D60("60"),
bfac3874   xianpengcheng   public_report_dat...
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
      ;
  
      /**
       * 
       */
      @Getter
      private final String value;
  
      @JsonCreator
      public static ValhallaReportDimension ofValue(final String value) {
          for (final ValhallaReportDimension instance : ValhallaReportDimension.values()) {
              if (instance.getValue().equals(value)) {
                  return instance;
              }
          }
          return null;
      }
  }