| package com.zy.core.enums; | 
|   | 
| import com.core.common.Cools; | 
|   | 
| public enum SteChargeType { | 
|   | 
|     FIRST(1, "0100101"), | 
|     SECOND(2, "1300101"), | 
|     ; | 
|   | 
|     SteChargeType(int ssbm, String locNo) { | 
|         this.ssbm = ssbm; | 
|         this.locNo = locNo; | 
|     } | 
|   | 
|     public int ssbm; | 
|   | 
|     public String locNo; | 
|   | 
|     public static SteChargeType get(String locNo) { | 
|         if (Cools.isEmpty(locNo)) { | 
|             return null; | 
|         } | 
|         SteChargeType[] values = SteChargeType.values(); | 
|         for (SteChargeType value : values) { | 
|             if (value.locNo.equals(locNo)) { | 
|                 return value; | 
|             } | 
|         } | 
|         return null; | 
|     } | 
|   | 
|     public static SteChargeType get(int ssbm) { | 
|         if (Cools.isEmpty(ssbm)) { | 
|             return null; | 
|         } | 
|         SteChargeType[] values = SteChargeType.values(); | 
|         for (SteChargeType value : values) { | 
|             if (value.ssbm == ssbm) { | 
|                 return value; | 
|             } | 
|         } | 
|         return null; | 
|     } | 
|   | 
| } |