Browse Source

HBPO_SA比对完成后更新状态

master
zhouhongjun 12 months ago
parent
commit
ba7a4f6f41
  1. 9
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs

9
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs

@ -115,6 +115,15 @@ namespace SettleAccount.Job.Services.Report
result.ShouldNotBeNull();
_fileContainer.SaveAsync(filename, result.Result, true);
//比对完成后更新状态
var pubSaEntityList = _settleAccountDbContext.Set<HBPO_SA>().Where(t => t.Version == version && t.BusinessType == businessType).ToList();
foreach (var item in pubSaEntityList)
{
item.State = "2";
}
_settleAccountDbContext.SaveChanges();
Notify();
return id.ToString();
}

Loading…
Cancel
Save