修复通用接口错误
This commit is contained in:
@@ -57,7 +57,7 @@ public class VengineAppService<TEntity, TGetInput, TGetOutput, TQueryInput, TGet
|
||||
}
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
if (_models.ContainsKey(id))
|
||||
if (!_models.ContainsKey(id))
|
||||
{
|
||||
_models[id] = await _dataAccess.GetVmodelAsync(id, false);
|
||||
//_models[_models[id].fullCode] = _models[id];
|
||||
@@ -76,7 +76,7 @@ public class VengineAppService<TEntity, TGetInput, TGetOutput, TQueryInput, TGet
|
||||
code = tp.Name.ToKebab();
|
||||
}
|
||||
var key = area + "/" + code;
|
||||
if (_models.ContainsKey(key))
|
||||
if (!_models.ContainsKey(key))
|
||||
{
|
||||
_models[key] = await _dataAccess.GetVmodelAsync(area, code, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user