소스 검색

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

ingredientmanage
gwbvipvip 7 달 전
부모
커밋
feace0f667
2개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  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 파일 보기

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

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

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

+ 4
- 2
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;
}
/// <summary>
/// 分页查询
@@ -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<BPA_TechnologyExportRecode>().Where(x=>x.DeviceVersionId == inputDto.Id).First();
if (TechnologyExportRecode != null)
{


불러오는 중...
취소
저장