|  | @@ -763,7 +763,8 @@ public class CommSendService {
 | 
	
		
			
				|  |  |          // 未正确安装可换件故障List
 | 
	
		
			
				|  |  |          // NG not good
 | 
	
		
			
				|  |  |          List<FaultCheckVo> listNGVo = new ArrayList<>();
 | 
	
		
			
				|  |  | -        Map<String, FaultCheckVo> map = new HashMap<>();
 | 
	
		
			
				|  |  | +//        Map<String, FaultCheckVo> mapVo = new HashMap<>();
 | 
	
		
			
				|  |  | +        Set<String> setNG = new HashSet<>();
 | 
	
		
			
				|  |  |          // 单一检查
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              for (Fault oneF : listF) {
 | 
	
	
		
			
				|  | @@ -774,17 +775,26 @@ public class CommSendService {
 | 
	
		
			
				|  |  |                  AjaxResult ar = readOneSimOneFaultCheck(voOne);
 | 
	
		
			
				|  |  |                  FaultCheckVo voReturn = (FaultCheckVo) ar.get(AjaxResult.DATA_TAG);
 | 
	
		
			
				|  |  |                  if (!voReturn.isCheckOk()) {
 | 
	
		
			
				|  |  | -                    listNGVo.add(voReturn);
 | 
	
		
			
				|  |  |                      l.info("log 故障部位[" + oneF.getBindHardwareMsg() + "][" + oneF.getReplaceName() + "]未正确安装;");
 | 
	
		
			
				|  |  | +                    listNGVo.add(voReturn);
 | 
	
		
			
				|  |  | +                    // add map.
 | 
	
		
			
				|  |  | +                    // mapVo.put(buildKey(voReturn.getSim().getSimType(), voReturn.getFault().getBindHardwareMsg()), voReturn);
 | 
	
		
			
				|  |  | +                    setNG.add(oneF.getFaultId());
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  |                      l.info("log 故障部位[" + oneF.getBindHardwareMsg() + "][" + oneF.getReplaceName() + "]安装ok;");
 | 
	
		
			
				|  |  | -                    // add map.
 | 
	
		
			
				|  |  | -                    map.put(buildKey(voReturn.getSim().getSimType(), voReturn.getFault().getBindHardwareMsg()), voReturn);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  if (ar.isError()) {
 | 
	
		
			
				|  |  |                      return ar;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            // 复核条件检查
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                AjaxResult ar = checkStep2(sim, setNG);
 | 
	
		
			
				|  |  | +                if (ar.isError()) {
 | 
	
		
			
				|  |  | +                    return ar;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            //
 | 
	
		
			
				|  |  |              if (!listNGVo.isEmpty()) {
 | 
	
		
			
				|  |  |                  StringBuilder sb = new StringBuilder();
 | 
	
		
			
				|  |  |                  for (FaultCheckVo oneVo : listNGVo) {
 | 
	
	
		
			
				|  | @@ -794,13 +804,6 @@ public class CommSendService {
 | 
	
		
			
				|  |  |                  return AjaxResult.error(sb.toString());
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        // 复核条件检查
 | 
	
		
			
				|  |  | -        {
 | 
	
		
			
				|  |  | -            AjaxResult ar = checkStep2(sim, map);
 | 
	
		
			
				|  |  | -            if (ar.isError()) {
 | 
	
		
			
				|  |  | -                return ar;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  |          return AjaxResult.success("所有故障部位检查没有问题。");
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -815,17 +818,25 @@ public class CommSendService {
 | 
	
		
			
				|  |  |          return simType + "@" + bindHardwareMsg;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private AjaxResult checkStep2(Sim sim, Map<String, FaultCheckVo> map) {
 | 
	
		
			
				|  |  | +    private AjaxResult checkStep2(Sim sim, Set<String> setNG) {
 | 
	
		
			
				|  |  |          if (StringUtils.equals(sim.getSimType(), Sim.TYPE_0003)) {
 | 
	
		
			
				|  |  | -            if (map.containsKey(buildKeyType0003("01"))) {
 | 
	
		
			
				|  |  | -                SimMsg smR = map.get(buildKeyType0003("01")).getSimMsgReceive();
 | 
	
		
			
				|  |  | -                String smRS = CommParseUtils.subContentData(smR);
 | 
	
		
			
				|  |  | -                // 没有连接FFC排线
 | 
	
		
			
				|  |  | -                if (StringUtils.endsWith(smRS, "02")) {
 | 
	
		
			
				|  |  | -                    return AjaxResult.error("请检查FFC排线连接!");
 | 
	
		
			
				|  |  | -                } else if (StringUtils.endsWith(smRS, "01")) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +//            if (map.containsKey(buildKeyType0003("01"))) {
 | 
	
		
			
				|  |  | +//                SimMsg smR = map.get(buildKeyType0003("01")).getSimMsgReceive();
 | 
	
		
			
				|  |  | +//                String smRS = CommParseUtils.subContentData(smR);
 | 
	
		
			
				|  |  | +//                // 没有连接FFC排线
 | 
	
		
			
				|  |  | +//                if (StringUtils.endsWith(smRS, "02")) {
 | 
	
		
			
				|  |  | +//                    return AjaxResult.error("请检查FFC排线连接!");
 | 
	
		
			
				|  |  | +//                } else if (StringUtils.endsWith(smRS, "01")) {
 | 
	
		
			
				|  |  | +//
 | 
	
		
			
				|  |  | +//                }
 | 
	
		
			
				|  |  | +//            }
 | 
	
		
			
				|  |  | +            if (setNG != null &&
 | 
	
		
			
				|  |  | +                    setNG.contains("0003GZBW0003") &&
 | 
	
		
			
				|  |  | +                    setNG.contains("0003GZBW0004") &&
 | 
	
		
			
				|  |  | +                    setNG.contains("0003GZBW000B") &&
 | 
	
		
			
				|  |  | +                    setNG.contains("0003GZBW000E")
 | 
	
		
			
				|  |  | +            ) {
 | 
	
		
			
				|  |  | +                return AjaxResult.error("请检查 显控报警板与主板连接线 连接情况!");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          return AjaxResult.success("");
 |