由于userid为NULL点击对象属性报错修改。
This commit is contained in:
parent
842777110e
commit
7d17fab113
@ -630,12 +630,19 @@ namespace Learun.Application.Web.AppApi
|
||||
|
||||
//每个位号的属性信息
|
||||
foreach (var tag in objectType.tags)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(tag.CreateUserID))
|
||||
{
|
||||
if (userDict.TryGetValue(tag.CreateUserID, out string createUserName))
|
||||
{
|
||||
tag.CreateUserName = createUserName;// allUser.FirstOrDefault(x => x.F_UserId == item.CreateUserID)?.F_RealName;
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
tag.CreateUserName = string.Empty;
|
||||
}
|
||||
|
||||
tag.EngineDataProperty = tagPropDictByTag[tag.EngineDataID];// tagPropAll.Where(x => x.EngineDataID == tag.EngineDataID).ToList();
|
||||
tag.ObjectTypeName = objectType.ObjectTypeName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user