微调
This commit is contained in:
@@ -778,6 +778,7 @@ public class SocketDevResponseService {
|
||||
if (successComm.size() == FormalTestManager.monitorIdListComm.size()) {
|
||||
successComm.clear();
|
||||
failComm.clear();
|
||||
icdCheckDataMap.clear();
|
||||
|
||||
dataTypeList = pqScriptDtlsService.getScriptToIcdCheckInfo(param);
|
||||
icdTypeList = FormalTestManager.devList.stream().map(PreDetection::getIcdType).distinct().collect(Collectors.toList());
|
||||
@@ -822,6 +823,7 @@ public class SocketDevResponseService {
|
||||
icdCheckDataMap.put(icdCheckData.getIcdType(), icdCheckData);
|
||||
|
||||
if (isContinue) {
|
||||
//System.out.println("icdCheckDataMap.size()="+icdCheckDataMap.size()+",icdTypeList.size()="+icdTypeList.size());
|
||||
if (icdCheckDataMap.size() == icdTypeList.size()) {
|
||||
SocketDataMsg temMsg = new SocketDataMsg();
|
||||
temMsg.setCode(SourceResponseCodeEnum.DEV_COMM_ALL_SUCCESS.getCode());
|
||||
@@ -906,9 +908,10 @@ public class SocketDevResponseService {
|
||||
}
|
||||
} else {
|
||||
// 发送下一个脚本与icd校验
|
||||
String icdType = icdTypeList.stream().filter(it -> !icdCheckDataMap.containsKey(it)).findFirst().orElse(null);
|
||||
if(ObjectUtil.isNotNull(icdType)){
|
||||
Map<String, Object> map = new HashMap<>(2);
|
||||
map.put("dataType", dataTypeList);
|
||||
String icdType = icdTypeList.stream().filter(it -> !icdCheckDataMap.containsKey(it)).findFirst().get();
|
||||
map.put("icdType", icdType);
|
||||
socketMsg.setData(JSON.toJSONString(map));
|
||||
System.out.println("开始脚本与icd校验:++++++++++");
|
||||
@@ -916,6 +919,7 @@ public class SocketDevResponseService {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case UNPROCESSED_BUSINESS:
|
||||
WebServiceManager.sendMsg(param.getUserPageId(), JSON.toJSONString(socketDataMsg));
|
||||
|
||||
Reference in New Issue
Block a user