|
@@ -628,10 +628,10 @@ namespace WingDeviceService.Service
|
|
|
var experts = await _userServiceProxy.GetBindExpertsAsync(userCode);
|
|
|
if (experts.Any())
|
|
|
{
|
|
|
- var bindDeviceCodes = experts.SelectMany(x => x.BindDevices ?? new List<string>()).ToList();
|
|
|
+ var bindDeviceCodes = experts.SelectMany(x => x.BindDevices ?? new List<string>()).Distinct().ToList();
|
|
|
if (bindDeviceCodes.Any())
|
|
|
{
|
|
|
- deviceInfoDOList = await _deviceInfoDBServiceProxy.FindDeviceInfoListByCodeListAsync(bindDeviceCodes.Distinct().ToList());
|
|
|
+ deviceInfoDOList = await _deviceInfoDBServiceProxy.FindDeviceInfoListByCodeListAsync(bindDeviceCodes);
|
|
|
}
|
|
|
}
|
|
|
else
|