|
@@ -128,16 +128,22 @@ public class FaultServiceImpl implements IFaultService {
|
|
|
return tree;
|
|
|
}
|
|
|
|
|
|
+ public static final String SIM_TYPE_0001 = "0001";
|
|
|
+ public static final String SIM_TYPE_0002 = "0002";
|
|
|
+ public static final String SIM_TYPE_0003 = "0003";
|
|
|
+ public static final Set<String> SIM_TYPE_SET = new HashSet<>(
|
|
|
+ Arrays.asList(
|
|
|
+ SIM_TYPE_0001,
|
|
|
+ SIM_TYPE_0002,
|
|
|
+ SIM_TYPE_0003)
|
|
|
+ );
|
|
|
+
|
|
|
/**
|
|
|
* @param simType
|
|
|
* @return
|
|
|
*/
|
|
|
public boolean checkSimType(String simType) {
|
|
|
- Set<String> s = new HashSet<>();
|
|
|
- s.add("0001");
|
|
|
- s.add("0002");
|
|
|
- s.add("0003");
|
|
|
- return s.contains(simType);
|
|
|
+ return SIM_TYPE_SET.contains(simType);
|
|
|
}
|
|
|
|
|
|
private static String ROOT_FAULT_ID = "000000000000";
|