diff --git a/BPA.SAAS.Manage.Application/DataBase/Dtos/Goods/DeviceVersionTemplateImportInputDto.cs b/BPA.SAAS.Manage.Application/DataBase/Dtos/Goods/DeviceVersionTemplateImportInputDto.cs
index f053ec7..ad3887e 100644
--- a/BPA.SAAS.Manage.Application/DataBase/Dtos/Goods/DeviceVersionTemplateImportInputDto.cs
+++ b/BPA.SAAS.Manage.Application/DataBase/Dtos/Goods/DeviceVersionTemplateImportInputDto.cs
@@ -27,5 +27,10 @@ namespace BPA.SAAS.Manage.Application.DataBase.Dtos.Goods
public IFormFile file { get; set; }
public bool IsAddGoodsTemplate { get; set; } = false;
+
+ ///
+ /// 阿里云路径
+ ///
+ public string AliyunUrl { get;set; }
}
}
diff --git a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs
index 0c8151f..b1ad3db 100644
--- a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs
+++ b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs
@@ -41,11 +41,13 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
private readonly ISqlSugarClient _db;
IGoodsAttributeService _goodsAttributeService;
ISystemConfigService _SystemConfigService;
- public GoodsService(ISqlSugarClient db, IGoodsAttributeService goodsAttributeService, ISystemConfigService SystemConfigService)
+ IAliyunOssService _aliyunOssService;
+ public GoodsService(ISqlSugarClient db, IGoodsAttributeService goodsAttributeService, ISystemConfigService SystemConfigService, IAliyunOssService aliyunOssService)
{
_db=db;
_goodsAttributeService=goodsAttributeService;
_SystemConfigService = SystemConfigService;
+ _aliyunOssService = aliyunOssService;
}
///
/// 分页查询
@@ -1212,7 +1214,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
}
}
#endregion
- var path = await _SystemConfigService.GetCosImgesURL(file);
+ var path = inputDto.AliyunUrl;
var TechnologyExportRecode = _db.Queryable().Where(x=>x.DeviceVersionId == inputDto.Id).First();
if (TechnologyExportRecode != null)
{