Browse Source

改生成HostSN2的bug

master
liuyunfeng 1 year ago
parent
commit
cb6715b82a
  1. 18
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs

18
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs

@ -41,18 +41,18 @@ namespace WY.NewJit.MsgCheck
ObjectResultDto ret = new ObjectResultDto(true, null);
if (isupdate)
{
await _billNumberRepository.UpdateManyAsync(_billNumberRecordCaches);
//await _billNumberRepository.UpdateManyAsync(_billNumberRecordCaches);
foreach (var item in _billNumberRecordCaches)
{
var re = await _billNumberRepository.GetListAsync(r=>r.Id==item.Id);
if (re.Count == 0)
{
await _billNumberRepository.InsertAsync(item);
}
else
{
await _billNumberRepository.UpdateAsync(item);
}
if (re.Count == 0)
{
await _billNumberRepository.InsertAsync(item);
}
else
{
await _billNumberRepository.UpdateAsync(item);
}
}
}
else

Loading…
Cancel
Save