Merge branch 'dev' of https://git.tuotong-tech.com/tnb/tnb.server into dev
This commit is contained in:
@@ -40,7 +40,7 @@ public class VengineAppService : BaseAppService, IVengineAppService
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private async Task<Vmodel> GetVmodelAsync(string id)
|
private async Task<Vmodel> GetVmodelAsync(string id)
|
||||||
{
|
{
|
||||||
if (_models.ContainsKey(id))
|
if (!_models.ContainsKey(id))
|
||||||
{
|
{
|
||||||
_models[id] = await _dataAccess.GetVmodelAsync(id, false);
|
_models[id] = await _dataAccess.GetVmodelAsync(id, false);
|
||||||
}
|
}
|
||||||
@@ -122,7 +122,7 @@ public class VengineAppService : BaseAppService, IVengineAppService
|
|||||||
private async Task<Vmodel> GetVmodelAsync(string areaCode, string vmCode)
|
private async Task<Vmodel> GetVmodelAsync(string areaCode, string vmCode)
|
||||||
{
|
{
|
||||||
var key = areaCode + "/" + vmCode;
|
var key = areaCode + "/" + vmCode;
|
||||||
if (_models.ContainsKey(key))
|
if (!_models.ContainsKey(key))
|
||||||
{
|
{
|
||||||
_models[key] = await _dataAccess.GetVmodelAsync(areaCode, vmCode, false);
|
_models[key] = await _dataAccess.GetVmodelAsync(areaCode, vmCode, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class VengineAppService<TEntity, TGetInput, TGetOutput, TQueryInput, TGet
|
|||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(id))
|
if (!string.IsNullOrEmpty(id))
|
||||||
{
|
{
|
||||||
if (_models.ContainsKey(id))
|
if (!_models.ContainsKey(id))
|
||||||
{
|
{
|
||||||
_models[id] = await _dataAccess.GetVmodelAsync(id, false);
|
_models[id] = await _dataAccess.GetVmodelAsync(id, false);
|
||||||
//_models[_models[id].fullCode] = _models[id];
|
//_models[_models[id].fullCode] = _models[id];
|
||||||
@@ -76,7 +76,7 @@ public class VengineAppService<TEntity, TGetInput, TGetOutput, TQueryInput, TGet
|
|||||||
code = tp.Name.ToKebab();
|
code = tp.Name.ToKebab();
|
||||||
}
|
}
|
||||||
var key = area + "/" + code;
|
var key = area + "/" + code;
|
||||||
if (_models.ContainsKey(key))
|
if (!_models.ContainsKey(key))
|
||||||
{
|
{
|
||||||
_models[key] = await _dataAccess.GetVmodelAsync(area, code, false);
|
_models[key] = await _dataAccess.GetVmodelAsync(area, code, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user