|
|
@ -369,12 +369,19 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
//有结算无发运
|
|
|
|
var haveSaNotHaveSes = saSeCompareDiffs.FindAll(t => t.Category == EnumPubSaSeCompareCategory.HaveSaNotHaveSe); |
|
|
|
var keyCodes = haveSaNotHaveSes.Select(t => t.PN + t.CustomerPartCode).ToList(); |
|
|
|
var edis = _settleAccountDbContext.Set<BBAC_SE_EDI>().Where(t => keyCodes.Contains(t.KeyCode)); |
|
|
|
saSeCompareDiffs.FindAll(t => t.Category == EnumPubSaSeCompareCategory.HaveSaNotHaveSe).ForEach(saSeCompareDiff => |
|
|
|
var ediKeyCodes = _settleAccountDbContext.Set<BBAC_SE_EDI>() |
|
|
|
.Where(t => keyCodes.Contains(t.PN + t.CustomerPartCodeNoSpace)) |
|
|
|
.Select(t => t.PN + t.CustomerPartCodeNoSpace) |
|
|
|
.Distinct().ToList(); |
|
|
|
|
|
|
|
if (ediKeyCodes.Any()) |
|
|
|
{ |
|
|
|
saSeCompareDiff.Remark = "有Edi"; |
|
|
|
}); |
|
|
|
return null; |
|
|
|
saSeCompareDiffs.FindAll(t => t.Category == EnumPubSaSeCompareCategory.HaveSaNotHaveSe && ediKeyCodes.Contains(t.PN + t.CustomerPartCode)).ForEach(saSeCompareDiff => |
|
|
|
{ |
|
|
|
saSeCompareDiff.Remark = "有Edi"; |
|
|
|
}); |
|
|
|
} |
|
|
|
return saSeCompareDiffs; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|