Browse Source

设备工艺同步下载路径改为阿里云路径储存

ingredientmanage
gwbvipvip 7 months ago
parent
commit
feace0f667
2 changed files with 9 additions and 2 deletions
  1. +5
    -0
      BPA.SAAS.Manage.Application/DataBase/Dtos/Goods/DeviceVersionTemplateImportInputDto.cs
  2. +4
    -2
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs

+ 5
- 0
BPA.SAAS.Manage.Application/DataBase/Dtos/Goods/DeviceVersionTemplateImportInputDto.cs View File

@@ -27,5 +27,10 @@ namespace BPA.SAAS.Manage.Application.DataBase.Dtos.Goods
public IFormFile file { get; set; } public IFormFile file { get; set; }


public bool IsAddGoodsTemplate { get; set; } = false; public bool IsAddGoodsTemplate { get; set; } = false;

/// <summary>
/// 阿里云路径
/// </summary>
public string AliyunUrl { get;set; }
} }
} }

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

@@ -41,11 +41,13 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
private readonly ISqlSugarClient _db; private readonly ISqlSugarClient _db;
IGoodsAttributeService _goodsAttributeService; IGoodsAttributeService _goodsAttributeService;
ISystemConfigService _SystemConfigService; ISystemConfigService _SystemConfigService;
public GoodsService(ISqlSugarClient db, IGoodsAttributeService goodsAttributeService, ISystemConfigService SystemConfigService)
IAliyunOssService _aliyunOssService;
public GoodsService(ISqlSugarClient db, IGoodsAttributeService goodsAttributeService, ISystemConfigService SystemConfigService, IAliyunOssService aliyunOssService)
{ {
_db=db; _db=db;
_goodsAttributeService=goodsAttributeService; _goodsAttributeService=goodsAttributeService;
_SystemConfigService = SystemConfigService; _SystemConfigService = SystemConfigService;
_aliyunOssService = aliyunOssService;
} }
/// <summary> /// <summary>
/// 分页查询 /// 分页查询
@@ -1212,7 +1214,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
} }
} }
#endregion #endregion
var path = await _SystemConfigService.GetCosImgesURL(file);
var path = inputDto.AliyunUrl;
var TechnologyExportRecode = _db.Queryable<BPA_TechnologyExportRecode>().Where(x=>x.DeviceVersionId == inputDto.Id).First(); var TechnologyExportRecode = _db.Queryable<BPA_TechnologyExportRecode>().Where(x=>x.DeviceVersionId == inputDto.Id).First();
if (TechnologyExportRecode != null) if (TechnologyExportRecode != null)
{ {


Loading…
Cancel
Save