| package com.zy.acs.manager.manager.enums; | 
|   | 
| import com.zy.acs.framework.common.Cools; | 
|   | 
| public enum FuncStaType { | 
|   | 
|     CHARGE, | 
|     STANDBY, | 
|     ; | 
|   | 
|     public static FuncStaType query(String type) { | 
|         if (Cools.isEmpty(type)) { | 
|             return null; | 
|         } | 
|         for (FuncStaType value : FuncStaType.values()) { | 
|             if (type.equals(value.toString())) { | 
|                 return value; | 
|             } | 
|         } | 
|         return null; | 
|     } | 
|   | 
|     public static FuncStaType query(TaskTypeType taskType) { | 
|         if (null == taskType) { | 
|             return null; | 
|         } | 
|         switch (taskType) { | 
|             case TO_CHARGE: | 
|                 return FuncStaType.CHARGE; | 
|             case TO_STANDBY: | 
|                 return FuncStaType.STANDBY; | 
|             default: | 
|                 return null; | 
|         } | 
|     } | 
|   | 
| } |