fly 2 年之前
父节点
当前提交
a742d2b92f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Service/DeviceService.cs

+ 2 - 2
Service/DeviceService.cs

@@ -427,7 +427,7 @@ namespace WingDeviceService.Service
                     }
                     else
                     {
-                        users = await _userServiceProxy.GetUserListAsync(new GetUserListRequest { OrganizationQueryType = OrganizationQueryTypeEnum.All, OrganizationCode = deviceDb.OrganizationCode });
+                        users = await _userServiceProxy.GetUserListAsync(new GetUserListDBRequest { OrganizationQueryType = OrganizationQueryTypeEnum.All, OrganizationCode = deviceDb.OrganizationCode });
                     }
                     var userCodes = users.Select(f => f.UserCode).ToList();
                     await _userServiceProxy.BingDevicesToUsersAsync(new BingDevicesToUsersRequest
@@ -483,7 +483,7 @@ namespace WingDeviceService.Service
                 }
                 else
                 {
-                    users = await _userServiceProxy.GetUserListAsync(new GetUserListRequest { OrganizationQueryType = OrganizationQueryTypeEnum.All, OrganizationCode = deviceDb.OrganizationCode });
+                    users = await _userServiceProxy.GetUserListAsync(new GetUserListDBRequest { OrganizationQueryType = OrganizationQueryTypeEnum.All, OrganizationCode = deviceDb.OrganizationCode });
                 }
                 var userCodes = users.Select(f => f.UserCode).ToList();
                 //先解绑,再绑定,避免绑定重复设备code