字典表更新bug 暂时解决方案
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user