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