| 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
31
32
33
34
35
36
37
38
39
40
41
42
 | | package com.zy.asrs.wcs.core.model.enums; |  |   |  | public enum NavigationMapType { |  |   |  |     NONE(-1, "无过滤"), |  |     DFX(1, "过滤库位状态DFX"),    // 带货走行 |  |     NORMAL(2, "过滤库位状态X"),   // 无货走行 |  |     ; |  |   |  |     public Integer id; |  |     public String desc; |  |   |  |     NavigationMapType(Integer id, String desc) { |  |         this.id = id; |  |         this.desc = desc; |  |     } |  |   |  |     public static NavigationMapType get(Short id) { |  |         if (null == id) { |  |             return null; |  |         } |  |         for (NavigationMapType type : NavigationMapType.values()) { |  |             if (type.id.equals(id.intValue())) { |  |                 return type; |  |             } |  |         } |  |         return null; |  |     } |  |   |  |     public static NavigationMapType get(NavigationMapType type) { |  |         if (null == type) { |  |             return null; |  |         } |  |         for (NavigationMapType type1 : NavigationMapType.values()) { |  |             if (type1 == type) { |  |                 return type1; |  |             } |  |         } |  |         return null; |  |     } |  |   |  | } | 
 |