Browse Source

HBPO_SA比对完成后更新状态

master
zhouhongjun 1 year 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(); result.ShouldNotBeNull();
_fileContainer.SaveAsync(filename, result.Result, true); _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(); Notify();
return id.ToString(); return id.ToString();
} }

Loading…
Cancel
Save