|
|
@@ -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<string, string> { { "groupId", App.User.FindFirst(ClaimConst.GroupId)?.Value } }; |
|
|
|
var url = App.Configuration["baseurl"] + $"api/store/getbyIdstorelist_alm?id={deviceInfo.StopId}"; |
|
|
|
var stopInfo = JsonConvert.DeserializeObject<ResultSAASManageDto<StoreDto>>(HttpHelper.HttpGet(url, null, dic, "application/json")); |
|
|
|
if (stopInfo?.data == null) |
|
|
|
throw Oops.Oh("店铺不存在!"); |
|
|
|
//var dic = new Dictionary<string, string> { { "groupId", App.User.FindFirst(ClaimConst.GroupId)?.Value } }; |
|
|
|
//var url = App.Configuration["baseurl"] + $"api/store/getbyIdstorelist_alm?id={deviceInfo.StopId}"; |
|
|
|
//var stopInfo = JsonConvert.DeserializeObject<ResultSAASManageDto<StoreDto>>(HttpHelper.HttpGet(url, null, dic, "application/json")); |
|
|
|
//if (stopInfo?.data == null) |
|
|
|
// throw Oops.Oh("店铺不存在!"); |
|
|
|
var goodInfoList = new List<BPA_GoodsInfo>(); |
|
|
|
if (exportDto.GoodsId.Any()) |
|
|
|
goodInfoList = await _db.Queryable<BPA_GoodsInfo>().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); |
|
|
|
} |
|
|
|