|
@@ -1,6 +1,7 @@
|
|
|
package com.ruoyi.sim.service.impl;
|
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
+import com.ruoyi.sim.constant.FaultConst;
|
|
|
import com.ruoyi.sim.domain.*;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
@@ -10,7 +11,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.HashSet;
|
|
|
|
|
|
-import static com.ruoyi.sim.service.impl.CommConst.*;
|
|
|
+import static com.ruoyi.sim.constant.CommConst.*;
|
|
|
|
|
|
@Service
|
|
|
// 多实例
|
|
@@ -195,20 +196,6 @@ public class CommReceiveService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private static HashSet<String> FAULT_CHECK_PASS_SET = new HashSet<>();
|
|
|
-
|
|
|
- static {
|
|
|
- // 1型
|
|
|
- // 1型不存在
|
|
|
- // 2型
|
|
|
- FAULT_CHECK_PASS_SET.add("0002GZBW0001");
|
|
|
- FAULT_CHECK_PASS_SET.add("0002GZBW0005");
|
|
|
- FAULT_CHECK_PASS_SET.add("0002GZBW0009");
|
|
|
- // 3型
|
|
|
- FAULT_CHECK_PASS_SET.add("0003GZBW0006");
|
|
|
- FAULT_CHECK_PASS_SET.add("0003GZBW0007");
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 是否在故障部位白名单中。
|
|
|
*
|
|
@@ -219,6 +206,6 @@ public class CommReceiveService {
|
|
|
*/
|
|
|
public boolean isFaultCheckPass(SimMsg sm, Sim s, Fault f) {
|
|
|
String faultRealGZBWId = f.getFaultId();
|
|
|
- return FAULT_CHECK_PASS_SET.contains(faultRealGZBWId);
|
|
|
+ return FaultConst.FAULT_SET_CHECK_PASS.contains(faultRealGZBWId);
|
|
|
}
|
|
|
}
|