|  | @@ -1,7 +1,6 @@
 | 
	
		
			
				|  |  |  package com.ruoyi.sim.service.impl;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import com.ruoyi.common.core.domain.AjaxResult;
 | 
	
		
			
				|  |  | -import com.ruoyi.common.utils.uuid.IdUtils;
 | 
	
		
			
				|  |  |  import com.ruoyi.sim.domain.*;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.slf4j.Logger;
 | 
	
	
		
			
				|  | @@ -196,6 +195,20 @@ 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");
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 是否在故障部位白名单中。
 | 
	
		
			
				|  |  |       *
 | 
	
	
		
			
				|  | @@ -205,28 +218,7 @@ public class CommReceiveService {
 | 
	
		
			
				|  |  |       * @return true 在白名单中。
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      public boolean isFaultCheckPass(SimMsg sm, Sim s, Fault f) {
 | 
	
		
			
				|  |  | -        String simType = s.getSimType();
 | 
	
		
			
				|  |  |          String faultRealGZBWId = f.getFaultId();
 | 
	
		
			
				|  |  | -        if (Sim.TYPE_0001.equals(simType)) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        if (Sim.TYPE_0002.equals(simType)) {
 | 
	
		
			
				|  |  | -            // 0002型 01故障部位进行特殊处理。
 | 
	
		
			
				|  |  | -            if ("0002GZBW0001".equals(faultRealGZBWId)) {
 | 
	
		
			
				|  |  | -                return true;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        if (Sim.TYPE_0003.equals(simType)) {
 | 
	
		
			
				|  |  | -            // 干燥管
 | 
	
		
			
				|  |  | -            if ("0003GZBW0007".equals(faultRealGZBWId)) {
 | 
	
		
			
				|  |  | -                return true;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            // 检测剂
 | 
	
		
			
				|  |  | -            if ("0003GZBW0006".equals(faultRealGZBWId)) {
 | 
	
		
			
				|  |  | -                return true;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        // finally
 | 
	
		
			
				|  |  | -        return false;
 | 
	
		
			
				|  |  | +        return FAULT_CHECK_PASS_SET.contains(faultRealGZBWId);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |