From feace0f66736b60c11c8b4f7ff83c2da69fa9265 Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Wed, 5 Jun 2024 16:45:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=B7=A5=E8=89=BA=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E4=B8=8B=E8=BD=BD=E8=B7=AF=E5=BE=84=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E4=BA=91=E8=B7=AF=E5=BE=84=E5=82=A8=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtos/Goods/DeviceVersionTemplateImportInputDto.cs | 5 +++++ .../DataBase/Services/GoodsService.cs | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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) {