|
|
@ -65,7 +65,7 @@ public static class ClientMgr
|
|
|
|
if (equipInfos.Count > 0)
|
|
|
|
if (equipInfos.Count > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Dictionary<string,EquipInfo> set = equipInfos.ToDictionary(it => it.Code, it => it);
|
|
|
|
Dictionary<string,EquipInfo> set = equipInfos.ToDictionary(it => it.Code, it => it);
|
|
|
|
List<EquipNetInfo> equipNetInfos = netInfoRepository.QueryListByClause(it => set.ContainsKey(it.Code));
|
|
|
|
List<EquipNetInfo> equipNetInfos = netInfoRepository.QueryListByClause(it => set.Keys.Contains(it.Code));
|
|
|
|
foreach (EquipNetInfo netInfo in equipNetInfos)
|
|
|
|
foreach (EquipNetInfo netInfo in equipNetInfos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Task.Run(() =>
|
|
|
|
Task.Run(() =>
|
|
|
@ -73,6 +73,8 @@ public static class ClientMgr
|
|
|
|
ConnClient(netInfo);
|
|
|
|
ConnClient(netInfo);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StartAutoChargeThread();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|