|
@ -43,9 +43,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
{ |
|
|
{ |
|
|
using var serviceScope = _serviceProvider.CreateScope(); |
|
|
using var serviceScope = _serviceProvider.CreateScope(); |
|
|
var db = serviceScope.ServiceProvider.GetRequiredService<SettleAccountDbContext>(); |
|
|
var db = serviceScope.ServiceProvider.GetRequiredService<SettleAccountDbContext>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await HandDelEdiDataAsync().ConfigureAwait(false); |
|
|
await HandDelEdiDataAsync().ConfigureAwait(false); |
|
|
|
|
|
|
|
|
var seDetailGroup = db.Set<BBAC_SE_DETAIL>() |
|
|
var seDetailGroup = db.Set<BBAC_SE_DETAIL>() |
|
@ -57,7 +54,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
.Where(t => t.IsDeleted == false && t.IsHaveSeData == false) |
|
|
.Where(t => t.IsDeleted == false && t.IsHaveSeData == false) |
|
|
.GroupBy(t => new { t.PN, t.CustomerPartCodeNoSpace }) |
|
|
.GroupBy(t => new { t.PN, t.CustomerPartCodeNoSpace }) |
|
|
.Select(t => t.Key); |
|
|
.Select(t => t.Key); |
|
|
|
|
|
|
|
|
var keyCodes = (from se in seDetailGroup |
|
|
var keyCodes = (from se in seDetailGroup |
|
|
from edi in ediDetailGroup |
|
|
from edi in ediDetailGroup |
|
|
where se.PN == edi.PN && se.CustomerPartCodeNoSpace == edi.CustomerPartCodeNoSpace |
|
|
where se.PN == edi.PN && se.CustomerPartCodeNoSpace == edi.CustomerPartCodeNoSpace |
|
|