Browse Source

商品导出文件名只显示商品名称,导入重复界面默认全选覆盖20241118

kitchenmanage
gwbvipvip 1 month ago
parent
commit
0e99a2d821
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs

+ 6
- 6
BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs View File

@@ -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);
}


Loading…
Cancel
Save