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); ObjectResultDto ret = new ObjectResultDto(true, null);
if (isupdate) if (isupdate)
{ {
await _billNumberRepository.UpdateManyAsync(_billNumberRecordCaches); //await _billNumberRepository.UpdateManyAsync(_billNumberRecordCaches);
foreach (var item in _billNumberRecordCaches) foreach (var item in _billNumberRecordCaches)
{ {
var re = await _billNumberRepository.GetListAsync(r=>r.Id==item.Id); var re = await _billNumberRepository.GetListAsync(r=>r.Id==item.Id);
if (re.Count == 0) if (re.Count == 0)
{ {
await _billNumberRepository.InsertAsync(item); await _billNumberRepository.InsertAsync(item);
} }
else else
{ {
await _billNumberRepository.UpdateAsync(item); await _billNumberRepository.UpdateAsync(item);
} }
} }
} }
else else

Loading…
Cancel
Save