#
vincentlu
2025-05-13 ebd2f4397a92c6a5096de1b86d59154363344720
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
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;
        }
    }
 
}