diff --git a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs index 9207ef6..103e5a9 100644 --- a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs +++ b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs @@ -2513,11 +2513,11 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services if (File.Exists(zipFolder)) File.Delete(zipFolder); await DownloadRemoteFile(recode.TemplatePath, tempFolder, recodeName); - var dic = new Dictionary { { "groupId", App.User.FindFirst(ClaimConst.GroupId)?.Value } }; - var url = App.Configuration["baseurl"] + $"api/store/getbyIdstorelist_alm?id={deviceInfo.StopId}"; - var stopInfo = JsonConvert.DeserializeObject>(HttpHelper.HttpGet(url, null, dic, "application/json")); - if (stopInfo?.data == null) - throw Oops.Oh("店铺不存在!"); + //var dic = new Dictionary { { "groupId", App.User.FindFirst(ClaimConst.GroupId)?.Value } }; + //var url = App.Configuration["baseurl"] + $"api/store/getbyIdstorelist_alm?id={deviceInfo.StopId}"; + //var stopInfo = JsonConvert.DeserializeObject>(HttpHelper.HttpGet(url, null, dic, "application/json")); + //if (stopInfo?.data == null) + // throw Oops.Oh("店铺不存在!"); var goodInfoList = new List(); if (exportDto.GoodsId.Any()) goodInfoList = await _db.Queryable().Where(t => exportDto.GoodsId.Contains(t.Id)).ToListAsync(); @@ -2653,7 +2653,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services UpdateGoodSheet(goodSheet); UpdateActionSheet(actionSheet); } - var filePath = Path.Combine(tempFolder, $"{goodInfo.Name}_{deviceInfo.DeviceName}_{stopInfo.data.Name}.xlsx"); + var filePath = Path.Combine(tempFolder, $"{goodInfo.Name}.xlsx"); using var stream = new FileStream(filePath, FileMode.Create, FileAccess.Write); workbook.Write(stream); }