|
|
@ -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 |
|
|
|