字典表更新bug 暂时解决方案
parent
da09f66a71
commit
67f41bd139
|
@ -63,7 +63,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
var entity = await _dicRepository.InsertDictionaryAsync(addOrEditBasic);
|
||||
|
||||
await _dicRepository.UpdateFromQueryAsync(t => t.ParentId == Guid.Empty,
|
||||
await _dicRepository.UpdateFromQueryAsync(t => t.ParentId == Guid.Empty,
|
||||
u => new Dictionary() { ParentId = null });
|
||||
|
||||
return ResponseOutput.Ok(entity.Id.ToString());
|
||||
|
@ -71,6 +71,9 @@ namespace IRaCIS.Application.Services
|
|||
else
|
||||
{
|
||||
var entity = await _dicRepository.InsertOrUpdateAsync(addOrEditBasic, true);
|
||||
await _dicRepository.UpdateFromQueryAsync(t => t.ParentId == Guid.Empty,
|
||||
u => new Dictionary() { ParentId = null });
|
||||
|
||||
return ResponseOutput.Ok(entity.Id.ToString());
|
||||
}
|
||||
//var entity = await _dicRepository.InsertOrUpdateAsync(addOrEditBasic, true);
|
||||
|
|
Loading…
Reference in New Issue