diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeEdiCompareAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeEdiCompareAppService.cs index d903dcef..ede1116f 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeEdiCompareAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeEdiCompareAppService.cs @@ -18,10 +18,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs; public class JisBBACSeEdiCompareAppService : ApplicationService, IInvocable { private readonly IServiceProvider _serviceProvider; + private readonly EnumBusinessType _businessType; public JisBBACSeEdiCompareAppService(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; + _businessType = EnumBusinessType.JisBBAC; } /// @@ -35,6 +37,7 @@ public class JisBBACSeEdiCompareAppService : ApplicationService, IInvocable await HandDelEdiDataAsync().ConfigureAwait(false); var seDetailGroup = db.Set() + .Where(t => t.BusinessType == _businessType) .Where(t => t.IsHaveEdiData == false) .GroupBy(t => new { t.PN, t.CustomerPartCodeNoSpace }) .Select(t => t.Key); @@ -53,6 +56,7 @@ public class JisBBACSeEdiCompareAppService : ApplicationService, IInvocable var pns = keyCodes.Select(t => t.PN).Distinct().ToList(); var seDetails = db.Set() + .Where(t => t.BusinessType == _businessType) .Where(t => t.IsHaveEdiData == false) .Where(t => pns.Contains(t.PN)) .AsEnumerable() diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisHBPOSeEdiCompareAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisHBPOSeEdiCompareAppService.cs index 5e0a8191..993ba794 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisHBPOSeEdiCompareAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisHBPOSeEdiCompareAppService.cs @@ -19,10 +19,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs; public class JisHBPOSeEdiCompareAppService : ApplicationService, IInvocable { private readonly IServiceProvider _serviceProvider; + private readonly EnumBusinessType _businessType; public JisHBPOSeEdiCompareAppService(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; + _businessType = EnumBusinessType.JisHBPO; } /// @@ -36,6 +38,7 @@ public class JisHBPOSeEdiCompareAppService : ApplicationService, IInvocable await HandDelEdiDataAsync().ConfigureAwait(false); var seDetailGroup = db.Set() + .Where(t => t.BusinessType == _businessType) .Where(t => t.IsHaveEdiData == false) .GroupBy(t => new { t.PN, t.CustomerPartCodeNoSpace }) .Select(t => t.Key); @@ -54,6 +57,7 @@ public class JisHBPOSeEdiCompareAppService : ApplicationService, IInvocable var pns = keyCodes.Select(t => t.PN).Distinct().ToList(); var seDetails = db.Set() + .Where(t => t.BusinessType == _businessType) .Where(t => t.IsHaveEdiData == false) .Where(t => pns.Contains(t.PN)) .AsEnumerable()