diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs index 778209e76..2964baaf7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs @@ -577,6 +577,7 @@ namespace Learun.Application.Form TableTree.Add(treeone); } TableTree = TableTree.ToTree(); + bool hasupload = false; // 确定表与组件之间的关系 Dictionary> tableComponts = new Dictionary>(); @@ -592,6 +593,7 @@ namespace Learun.Application.Form } if (compont.type == "upload") { + hasupload = true; tableComponts[compont.table].Add(compont); } if (compont.type == "guid") @@ -602,8 +604,13 @@ namespace Learun.Application.Form } } } + Dictionary uploadfieldkeyvalue = new Dictionary(); + + if (!hasupload) + { + return uploadfieldkeyvalue; + } GetInstanceTableData(TableTree, tableComponts, formSchemeModel.dbId, keyValue, processIdName, null, res); - Dictionary < string,string> uploadfieldkeyvalue=new Dictionary(); foreach (var itemCompont in tableComponts) { foreach (FormCompontModel formitem in itemCompont.Value)