Jeremy 2 yıl önce
ebeveyn
işleme
193489e75f
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      Service/DeviceService.cs

+ 2 - 2
Service/DeviceService.cs

@@ -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