diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_DETAIL_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_DETAIL_SERVICE.cs index aacc4594..d13a83b2 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_DETAIL_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_DETAIL_SERVICE.cs @@ -32,11 +32,6 @@ public class BBAC_SA_DETAIL_SERVICE : SettleAccountApplicationBase private readonly INormalEfCoreRepository _bbacSaDetailRepository; - /// - /// BBAC结算仓储 - /// - private readonly INormalEfCoreRepository _bbacSaRepository; - /// /// 任务服务 /// @@ -46,7 +41,6 @@ public class BBAC_SA_DETAIL_SERVICE : SettleAccountApplicationBase public BBAC_SA_DETAIL_SERVICE(INormalEfCoreRepository bbacSaDetailRepository, - INormalEfCoreRepository bbacSaRepository, TaskJobService taskJobService, IDistributedCache cache, IExcelImportAppService excelImportService, @@ -55,7 +49,6 @@ public class BBAC_SA_DETAIL_SERVICE : SettleAccountApplicationBase ExportAsync(BBAC_SA_DETAIL_EXPORT_REQUEST_DTO input) { - var pubSaEntity = await _bbacSaRepository.FirstOrDefaultAsync(t => t.BillNum == input.BillNum).ConfigureAwait(false); - if (pubSaEntity == null) - { - throw new UserFriendlyException($"导出失败,结算单号不存在!", "400"); - } string fileName = $"JisBBAC的结算数据_{Guid.NewGuid()}.xlsx"; List filters = new List(); filters.Add(new FilterCondition("BillNum", input.BillNum, EnumFilterAction.Equal, EnumFilterLogic.And)); diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_DETAIL_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_DETAIL_SERVICE.cs index 5f5a472d..faf92c40 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_DETAIL_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_DETAIL_SERVICE.cs @@ -32,11 +32,6 @@ public class HBPO_SA_DETAIL_SERVICE : SettleAccountApplicationBase private readonly INormalEfCoreRepository _hbpoSaDetailRepository; - /// - /// HBPO结算仓储 - /// - private readonly INormalEfCoreRepository _hbpoSaRepository; - /// /// 任务服务 /// @@ -46,7 +41,6 @@ public class HBPO_SA_DETAIL_SERVICE : SettleAccountApplicationBase public HBPO_SA_DETAIL_SERVICE(INormalEfCoreRepository hbpoSaDetailRepository, - INormalEfCoreRepository hbpoSaRepository, TaskJobService taskJobService, IDistributedCache cache, IExcelImportAppService excelImportService, @@ -55,7 +49,6 @@ public class HBPO_SA_DETAIL_SERVICE : SettleAccountApplicationBase ExportAsync(HBPO_SA_DETAIL_EXPORT_REQUEST_DTO input) { - var pubSaEntity = await _hbpoSaRepository.FirstOrDefaultAsync(t => t.BillNum == input.BillNum).ConfigureAwait(false); - if (pubSaEntity == null) - { - throw new UserFriendlyException($"导出失败,结算单号不存在!", "400"); - } string fileName = $"JisHBPO的结算数据_{Guid.NewGuid()}.xlsx"; List filters = new List(); filters.Add(new FilterCondition("BillNum", input.BillNum, EnumFilterAction.Equal, EnumFilterLogic.And));