|  |  |  | @ -2558,4 +2558,54 @@ public class CommonEnumUtil { | 
		
	
		
			
				|  |  |  |  |     public enum DYNAMIC_DATA_SOURCE_TYPE { | 
		
	
		
			
				|  |  |  |  |         MASTER,NODE | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     /** | 
		
	
		
			
				|  |  |  |  |      * 业务表:库存条码状态 | 
		
	
		
			
				|  |  |  |  |      */ | 
		
	
		
			
				|  |  |  |  |     @JsonFormat(shape = JsonFormat.Shape.OBJECT) | 
		
	
		
			
				|  |  |  |  |     public enum SESSION_MODE { | 
		
	
		
			
				|  |  |  |  |         DEFAULT(10, "默认"), | 
		
	
		
			
				|  |  |  |  |         OVERWRITE(20, "覆盖"), | 
		
	
		
			
				|  |  |  |  |         SEIZE(30, "抢占"); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         private int value; | 
		
	
		
			
				|  |  |  |  |         private String description; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         SESSION_MODE(int value, String description) { | 
		
	
		
			
				|  |  |  |  |             this.value = value; | 
		
	
		
			
				|  |  |  |  |             this.description = description; | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         public int getValue() { | 
		
	
		
			
				|  |  |  |  |             return value; | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         public String getDescription() { | 
		
	
		
			
				|  |  |  |  |             return description; | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         public static String valueOf(int val) { | 
		
	
		
			
				|  |  |  |  |             String tmp = null; | 
		
	
		
			
				|  |  |  |  |             for (int i = 0; i < values().length; i++) { | 
		
	
		
			
				|  |  |  |  |                 if (values()[i].value == val) { | 
		
	
		
			
				|  |  |  |  |                     tmp = values()[i].description; | 
		
	
		
			
				|  |  |  |  |                 } | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |             return tmp; | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         public static Integer descriptionOfValue(String desc) { | 
		
	
		
			
				|  |  |  |  |             Integer tmp = null; | 
		
	
		
			
				|  |  |  |  |             for (int i = 0; i < values().length; i++) { | 
		
	
		
			
				|  |  |  |  |                 if (values()[i].description.equals(desc)) { | 
		
	
		
			
				|  |  |  |  |                     tmp = values()[i].value; | 
		
	
		
			
				|  |  |  |  |                 } | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |             return tmp; | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | } | 
		
	
	
		
			
				
					|  |  |  | 
 |