You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					
					
						
							30 lines
						
					
					
						
							714 B
						
					
					
				
			
		
		
	
	
							30 lines
						
					
					
						
							714 B
						
					
					
				package com.ynxbd.ali.enums;
 | 
						|
 | 
						|
// 能量枚举
 | 
						|
public enum AliEnergyEnum {
 | 
						|
    HO_REGISTER("register", "horegister", "挂号"),
 | 
						|
    HO_INQUIRE("report", "hoinquire", "报告查询"),
 | 
						|
    ;
 | 
						|
 | 
						|
    public final String CALL_NO;
 | 
						|
    public final String CODE;
 | 
						|
 | 
						|
    public final String NAME;
 | 
						|
 | 
						|
    AliEnergyEnum(String CALL_NO, String CODE, String NAME) {
 | 
						|
        this.CALL_NO = CALL_NO;
 | 
						|
        this.CODE = CODE;
 | 
						|
        this.NAME = NAME;
 | 
						|
    }
 | 
						|
 | 
						|
 | 
						|
    public static AliEnergyEnum toEnum(String callNo) {
 | 
						|
        for (AliEnergyEnum item : AliEnergyEnum.values()) {
 | 
						|
            if (item.CALL_NO.equals(callNo)) {
 | 
						|
                return item;
 | 
						|
            }
 | 
						|
        }
 | 
						|
        return null;
 | 
						|
    }
 | 
						|
 | 
						|
}
 | 
						|
 |