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