From d1fe7798b3a04f893d14f5f9a97aefd5951794b7 Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Tue, 27 Feb 2024 17:38:33 +0800 Subject: [PATCH] z --- .../Device/Services/DeviceService.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs b/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs index 96dda0c..cdc34a2 100644 --- a/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs +++ b/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs @@ -23,7 +23,6 @@ namespace BPA.SAAS.Manage.Application.Device.Services { public class DeviceService: IDeviceService, ITransient { - private string BaseServerUrl=App.GetConfig("baseurl"); ISqlSugarClient _db; public DeviceService(ISqlSugarClient db) { @@ -36,14 +35,6 @@ namespace BPA.SAAS.Manage.Application.Device.Services /// public async Task GetDeviceInfoPage(DeviceQueryInputDto inputDto) { - var getStoreurl = BaseServerUrl + "api/goodsattribute/getstorelist_alm";//获取商品属性 - var responseGoodsAttribute = await getStoreurl.SetHeaders(new - { - groupId = App.User?.FindFirst(ClaimConst.GroupId)?.Value - }).SetHttpMethod(HttpMethod.Get).GetAsStringAsync(); - var resStore = JsonConvert.DeserializeObject(responseGoodsAttribute); - if (resStore.statusCode != "200") throw Oops.Oh("获取场景数据失败"); - var dataStore = JsonConvert.DeserializeObject>(resStore.data.ToString()); RefAsync total =0; var data = await _db.Queryable((a, b) => new JoinQueryInfos(JoinType.Left, a.ProductId == b.Id)) @@ -63,7 +54,7 @@ namespace BPA.SAAS.Manage.Application.Device.Services { var Vesion = _db.Queryable().Where(c => c.Id == x.ProductVersionId).First(); x.ProductVersionName = Vesion?.Vesion; - x.StopName= dataStore?.Where(f=>f.Id==x.StopId).First()?.Name; + //x.StopName= dataStore?.Where(f=>f.Id==x.StopId).First()?.Name; }) .ToPageListAsync(inputDto.Current, inputDto.PageSize, total); return new PageUtil()