From f670a58d95100043399fb9fd53f710344240e326 Mon Sep 17 00:00:00 2001 From: liangkun Date: Mon, 26 Sep 2022 17:17:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=89=8B=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=A4=9A=E8=A1=A8=E8=A1=A8=E5=8D=95=E5=87=BA?= =?UTF-8?q?=E7=8E=B0from=E9=99=84=E8=BF=91=E8=AF=AD=E6=B3=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.Form/Scheme/FormSchemeBLL.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)