zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
package cn.autoform.test;
 
import cn.autoform.fw.utility.ConstMap;
import cn.autoform.util.tool.JSONTool;
import com.alibaba.fastjson.TypeReference;
import net.sf.json.JSONObject;
import org.junit.Test;
import org.springframework.ui.ModelMap;
 
import java.util.*;
import java.util.function.Function;
import java.util.stream.Stream;
 
public class UpdateFormTest {
 
    private String fieldJson = "{\"itemId_1\":{\"tag_Id\":\"itemId_1\",\"tag_Name\":\"生成编号1\",\"tag_Type\":\"auto\",\"fieldOrderNum\":0,\"columnOrderNum\":1,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"报销单编号\",\"alias\":\"number_business\",\"description\":\"\",\"prefix\":\"prefixs\",\"prefixs\":[{\"ischecked\":false,\"itemtext_1\":\"R\",\"itemtext_2\":\"6\"}],\"masterData\":\"\",\"layoutsetting\":\"2/8\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"exNumber\",\"itemtext_2\":\"\"},{\"ischecked\":false,\"itemtext_1\":\"repaymentCode\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_2\":{\"tag_Id\":\"itemId_2\",\"tag_Name\":\"树型2\",\"tag_Type\":\"tree\",\"fieldOrderNum\":1,\"columnOrderNum\":2,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"报销业务类型\",\"alias\":\"C_Type\",\"description\":\"\",\"dropdowntype\":\"single\",\"datasourcetype\":\"masterdata\",\"datasource\":\"\",\"masterData\":\"{\\\"eleCode\\\":\\\"Ele003000803\\\",\\\"defindCode\\\":\\\"F000001\\\",\\\"defindName\\\":\\\"业务类型\\\",\\\"eleName\\\":\\\"Ele008000274\\\",\\\"parentCode\\\":\\\"Ele004000804\\\",\\\"allDefinedMaster\\\":[{\\\"code\\\":\\\"Ele003000803\\\",\\\"value\\\":\\\"费用类型代码\\\"},{\\\"code\\\":\\\"Ele008000274\\\",\\\"value\\\":\\\"费用类型名称\\\"},{\\\"code\\\":\\\"Ele004000804\\\",\\\"value\\\":\\\"上级费用类型名称\\\"},{\\\"code\\\":\\\"Ele003000803\\\",\\\"value\\\":\\\"费用类型代码\\\"},{\\\"code\\\":\\\"Ele008000274\\\",\\\"value\\\":\\\"费用类型名称\\\"},{\\\"code\\\":\\\"Ele004000804\\\",\\\"value\\\":\\\"上级费用类型名称\\\"}]}\",\"textcolumn\":\"\",\"valuecolumn\":\"\",\"namecolumn\":\"\",\"apiUrl\":\"\",\"apiIdKey\":\"\",\"apiPIdKey\":\"\",\"apiName\":\"\",\"visible\":true,\"editable\":false,\"solidiFication\":true,\"mustcheck\":false,\"approvalmustenter\":false,\"layoutsetting\":\"2/8\",\"defaultvalue\":\"\",\"disableParentNode\":false,\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"orderTypeCode\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_3\":{\"tag_Id\":\"itemId_3\",\"tag_Name\":\"下拉框3\",\"tag_Type\":\"dropdownlist\",\"fieldOrderNum\":2,\"columnOrderNum\":3,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"业务币种\",\"alias\":\"currency\",\"description\":\"\",\"dropdowntype\":\"single\",\"datasourcetype\":\"masterdata\",\"datasource\":\"\",\"masterData\":\"{\\\"eleCode\\\":\\\"Ele003000025\\\",\\\"defindCode\\\":\\\"F000060\\\",\\\"defindName\\\":\\\"币种\\\",\\\"eleName\\\":\\\"Ele003000132\\\",\\\"allDefinedMaster\\\":[{\\\"code\\\":\\\"Ele003000132\\\",\\\"value\\\":\\\"币种名称\\\"},{\\\"code\\\":\\\"Ele003000025\\\",\\\"value\\\":\\\"币种编码\\\"},{\\\"code\\\":\\\"Ele012000828\\\",\\\"value\\\":\\\"货币符号\\\"},{\\\"code\\\":\\\"Ele004000335\\\",\\\"value\\\":\\\"国家中文简称\\\"},{\\\"code\\\":\\\"Ele003000132\\\",\\\"value\\\":\\\"币种名称\\\"},{\\\"code\\\":\\\"Ele003000025\\\",\\\"value\\\":\\\"币种编码\\\"},{\\\"code\\\":\\\"Ele012000828\\\",\\\"value\\\":\\\"货币符号\\\"},{\\\"code\\\":\\\"Ele004000335\\\",\\\"value\\\":\\\"国家中文简称\\\"}]}\",\"custom\":[],\"textcolumn\":\"\",\"valuecolumn\":\"\",\"apiUrl\":\"\",\"apiIdKey\":\"\",\"apiPIdKey\":\"\",\"visible\":true,\"editable\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"lazyLoad\":false,\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\",\"solidiFication\":true},\"side\":\"thi\"},\"itemId_4\":{\"tag_Id\":\"itemId_4\",\"tag_Name\":\"日历4\",\"tag_Type\":\"calendar\",\"fieldOrderNum\":3,\"columnOrderNum\":4,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"报销日期\",\"alias\":\"budgetStartDate\",\"description\":\"\",\"datatype\":\"Y-m-d\",\"masterData\":\"\",\"visible\":true,\"editable\":true,\"solidiFication\":false,\"mustcheck\":true,\"approvalmustenter\":false,\"layoutsetting\":\"2/8\",\"defaultvalue\":\"\",\"currentDate\":true,\"sysfomula\":\"\"},\"side\":\"thi\"},\"itemId_5\":{\"tag_Id\":\"itemId_5\",\"tag_Name\":\"下拉框5\",\"tag_Type\":\"dropdownlist\",\"fieldOrderNum\":4,\"columnOrderNum\":5,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"报销人\",\"alias\":\"reimburseMan\",\"description\":\"\",\"dropdowntype\":\"single\",\"datasourcetype\":\"masterdata\",\"datasource\":\"\",\"masterData\":\"{\\\"eleCode\\\":\\\"Ele003000707\\\",\\\"defindCode\\\":\\\"F000048\\\",\\\"defindName\\\":\\\"职工信息\\\",\\\"eleName\\\":\\\"Ele009000711\\\",\\\"allDefinedMaster\\\":[{\\\"code\\\":\\\"Ele004000145\\\",\\\"value\\\":\\\"部门名称\\\"},{\\\"code\\\":\\\"Ele008000732\\\",\\\"value\\\":\\\"职位等级\\\"},{\\\"code\\\":\\\"Ele003000787\\\",\\\"value\\\":\\\"职位等级代码\\\"},{\\\"code\\\":\\\"Ele007000788\\\",\\\"value\\\":\\\"家庭所在地\\\"},{\\\"code\\\":\\\"Ele003000789\\\",\\\"value\\\":\\\"部门编码\\\"},{\\\"code\\\":\\\"Ele003000707\\\",\\\"value\\\":\\\"员工编号\\\"},{\\\"code\\\":\\\"Ele009000711\\\",\\\"value\\\":\\\"员工姓名\\\"},{\\\"code\\\":\\\"Ele009000654\\\",\\\"value\\\":\\\"性别\\\"},{\\\"code\\\":\\\"Ele009000713\\\",\\\"value\\\":\\\"员工姓名缩写\\\"},{\\\"code\\\":\\\"Ele002000710\\\",\\\"value\\\":\\\"员工联系电话\\\"},{\\\"code\\\":\\\"Ele002000332\\\",\\\"value\\\":\\\"固定电话\\\"},{\\\"code\\\":\\\"Ele007000709\\\",\\\"value\\\":\\\"员工联系地址\\\"},{\\\"code\\\":\\\"Ele003000023\\\",\\\"value\\\":\\\"邮政编码\\\"},{\\\"code\\\":\\\"Ele004000058\\\",\\\"value\\\":\\\"职务名称\\\"},{\\\"code\\\":\\\"Ele007000240\\\",\\\"value\\\":\\\"电子邮箱\\\"},{\\\"code\\\":\\\"Ele004000034\\\",\\\"value\\\":\\\"开户行名称\\\"},{\\\"code\\\":\\\"Ele003000682\\\",\\\"value\\\":\\\"开户行银行行号\\\"},{\\\"code\\\":\\\"Ele003000035\\\",\\\"value\\\":\\\"开户行账号\\\"},{\\\"code\\\":\\\"Ele004000029\\\",\\\"value\\\":\\\"企业名称\\\"},{\\\"code\\\":\\\"Ele003000714\\\",\\\"value\\\":\\\"员工证件号码\\\"},{\\\"code\\\":\\\"Ele005000198\\\",\\\"value\\\":\\\"出生日期\\\"},{\\\"code\\\":\\\"Ele004000145\\\",\\\"value\\\":\\\"部门名称\\\"},{\\\"code\\\":\\\"Ele008000732\\\",\\\"value\\\":\\\"职位等级\\\"},{\\\"code\\\":\\\"Ele003000787\\\",\\\"value\\\":\\\"职位等级代码\\\"},{\\\"code\\\":\\\"Ele007000788\\\",\\\"value\\\":\\\"家庭所在地\\\"},{\\\"code\\\":\\\"Ele003000789\\\",\\\"value\\\":\\\"部门编码\\\"},{\\\"code\\\":\\\"Ele003000707\\\",\\\"value\\\":\\\"员工编号\\\"},{\\\"code\\\":\\\"Ele009000711\\\",\\\"value\\\":\\\"员工姓名\\\"},{\\\"code\\\":\\\"Ele009000654\\\",\\\"value\\\":\\\"性别\\\"},{\\\"code\\\":\\\"Ele009000713\\\",\\\"value\\\":\\\"员工姓名缩写\\\"},{\\\"code\\\":\\\"Ele002000710\\\",\\\"value\\\":\\\"员工联系电话\\\"},{\\\"code\\\":\\\"Ele002000332\\\",\\\"value\\\":\\\"固定电话\\\"},{\\\"code\\\":\\\"Ele007000709\\\",\\\"value\\\":\\\"员工联系地址\\\"},{\\\"code\\\":\\\"Ele003000023\\\",\\\"value\\\":\\\"邮政编码\\\"},{\\\"code\\\":\\\"Ele004000058\\\",\\\"value\\\":\\\"职务名称\\\"},{\\\"code\\\":\\\"Ele007000240\\\",\\\"value\\\":\\\"电子邮箱\\\"},{\\\"code\\\":\\\"Ele004000034\\\",\\\"value\\\":\\\"开户行名称\\\"},{\\\"code\\\":\\\"Ele003000682\\\",\\\"value\\\":\\\"开户行银行行号\\\"},{\\\"code\\\":\\\"Ele003000035\\\",\\\"value\\\":\\\"开户行账号\\\"},{\\\"code\\\":\\\"Ele004000029\\\",\\\"value\\\":\\\"企业名称\\\"},{\\\"code\\\":\\\"Ele003000714\\\",\\\"value\\\":\\\"员工证件号码\\\"},{\\\"code\\\":\\\"Ele005000198\\\",\\\"value\\\":\\\"出生日期\\\"}]}\",\"custom\":[],\"textcolumn\":\"\",\"valuecolumn\":\"\",\"apiUrl\":\"\",\"apiIdKey\":\"\",\"apiPIdKey\":\"\",\"visible\":true,\"editable\":true,\"mustcheck\":true,\"approvalmustenter\":false,\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"lazyLoad\":false,\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"agent\",\"itemtext_2\":\"\"},{\"ischecked\":false,\"itemtext_1\":\"repayer\",\"itemtext_2\":\"\"},{\"ischecked\":false,\"itemtext_1\":\"borrower\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\",\"solidiFication\":true},\"side\":\"thi\"},\"itemId_6\":{\"tag_Id\":\"itemId_6\",\"tag_Name\":\"树型6\",\"tag_Type\":\"tree\",\"fieldOrderNum\":5,\"columnOrderNum\":6,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"报销部门\",\"alias\":\"expend_department\",\"description\":\"\",\"dropdowntype\":\"single\",\"datasourcetype\":\"masterdata\",\"datasource\":\"\",\"masterData\":\"{\\\"eleCode\\\":\\\"014958\\\",\\\"defindCode\\\":\\\"F319\\\",\\\"defindName\\\":\\\"组织机构-差旅\\\",\\\"eleName\\\":\\\"018801\\\",\\\"parentCode\\\":\\\"014959\\\",\\\"allDefinedMaster\\\":[{\\\"code\\\":\\\"018801\\\",\\\"value\\\":\\\"name\\\"},{\\\"code\\\":\\\"014959\\\",\\\"value\\\":\\\"上级组织代码\\\"},{\\\"code\\\":\\\"014960\\\",\\\"value\\\":\\\"上级组织名称\\\"},{\\\"code\\\":\\\"012001\\\",\\\"value\\\":\\\"公司代码\\\"},{\\\"code\\\":\\\"012000\\\",\\\"value\\\":\\\"公司名称\\\"},{\\\"code\\\":\\\"014958\\\",\\\"value\\\":\\\"code_组织机构\\\"},{\\\"code\\\":\\\"018801\\\",\\\"value\\\":\\\"name\\\"},{\\\"code\\\":\\\"014959\\\",\\\"value\\\":\\\"上级组织代码\\\"},{\\\"code\\\":\\\"014960\\\",\\\"value\\\":\\\"上级组织名称\\\"},{\\\"code\\\":\\\"012001\\\",\\\"value\\\":\\\"公司代码\\\"},{\\\"code\\\":\\\"012000\\\",\\\"value\\\":\\\"公司名称\\\"},{\\\"code\\\":\\\"014958\\\",\\\"value\\\":\\\"code_组织机构\\\"}]}\",\"textcolumn\":\"\",\"valuecolumn\":\"\",\"namecolumn\":\"\",\"apiUrl\":\"\",\"apiIdKey\":\"\",\"apiPIdKey\":\"\",\"apiName\":\"\",\"visible\":true,\"editable\":false,\"solidiFication\":true,\"mustcheck\":false,\"approvalmustenter\":false,\"layoutsetting\":\"2/8\",\"defaultvalue\":\"\",\"disableParentNode\":false,\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"expenDept\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_7\":{\"tag_Id\":\"itemId_7\",\"tag_Name\":\"单行文本7\",\"tag_Type\":\"text\",\"fieldOrderNum\":8,\"columnOrderNum\":7,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"报销说明\",\"alias\":\"expendText\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":true,\"editable\":true,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":true,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"expenDesc\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_9\":{\"tag_Id\":\"itemId_9\",\"tag_Name\":\"关联数据9\",\"tag_Type\":\"mytext\",\"fieldOrderNum\":9,\"columnOrderNum\":9,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"选择申请单\",\"alias\":\"toWriteBudget\",\"description\":\"\",\"chooseForm\":\"{\\\"huixianObj\\\":{\\\"chooseData\\\":[{\\\"fieldKey\\\":\\\"number_apply\\\",\\\"title\\\":\\\"申请单号\\\"},{\\\"fieldKey\\\":\\\"C_Type\\\",\\\"title\\\":\\\"费用类型\\\"},{\\\"fieldKey\\\":\\\"currency\\\",\\\"title\\\":\\\"业务币种\\\"},{\\\"fieldKey\\\":\\\"budgetStartDate\\\",\\\"title\\\":\\\"申请日期\\\"},{\\\"fieldKey\\\":\\\"reimburseMan\\\",\\\"title\\\":\\\"申请人\\\"},{\\\"fieldKey\\\":\\\"apply_department\\\",\\\"title\\\":\\\"使用部门\\\"},{\\\"fieldKey\\\":\\\"Remarks\\\",\\\"title\\\":\\\"备注说明\\\"},{\\\"fieldKey\\\":\\\"applyUseMoney\\\",\\\"title\\\":\\\"申请金额\\\"},{\\\"fieldKey\\\":\\\"loanAmount\\\",\\\"title\\\":\\\"借款金额\\\"},{\\\"fieldKey\\\":\\\"loanDescription\\\",\\\"title\\\":\\\"借款说明\\\"}]},\\\"ScreenCondition\\\":{\\\"child\\\":[{\\\"fieldKey\\\":\\\"reimburseMan\\\",\\\"side\\\":\\\"ref\\\",\\\"pIndex\\\":0},{\\\"fieldKey\\\":\\\"reimburseMan\\\",\\\"side\\\":\\\"thi\\\",\\\"pIndex\\\":1},{\\\"fieldKey\\\":\\\"accountFlag\\\",\\\"side\\\":\\\"ref\\\",\\\"pIndex\\\":2}],\\\"count\\\":\\\" left join formdata_100000444_LNEC3mFp \\\\n\\\\ton formdata_100000444_f412933e70714f5297bfee0594b629d6.datarownum = formdata_100000444_LNEC3mFp.toWriteBudget \\\\n\\\\tand formdata_100000444_LNEC3mFp.deleteflg = 0\\\\n\\\\tand formdata_100000444_LNEC3mFp.reimburseMan = formdata_100000444_f412933e70714f5297bfee0594b629d6.reimburseMan \\\\nwhere \\\\nformdata_100000444_f412933e70714f5297bfee0594b629d6.{0} = {1} \\\\nand (formdata_100000444_f412933e70714f5297bfee0594b629d6.processstate = 30 or {2} = 'A000001' and formdata_100000444_f412933e70714f5297bfee0594b629d6.orderStatus = 45)\\\\nand formdata_100000444_LNEC3mFp.DATAROWNUM is null\\\",\\\"view\\\":\\\" left join formdata_100000444_LNEC3mFp \\\\n\\\\ton formdata_100000444_f412933e70714f5297bfee0594b629d6.datarownum = formdata_100000444_LNEC3mFp.toWriteBudget \\\\n\\\\tand formdata_100000444_LNEC3mFp.deleteflg = 0\\\\n\\\\tand formdata_100000444_LNEC3mFp.reimburseMan = formdata_100000444_f412933e70714f5297bfee0594b629d6.reimburseMan \\\\nwhere \\\\nformdata_100000444_f412933e70714f5297bfee0594b629d6.[reimburseMan.ref] = [reimburseMan.thi] \\\\nand (formdata_100000444_f412933e70714f5297bfee0594b629d6.processstate = 30 or [accountFlag.ref] = 'A000001' and formdata_100000444_f412933e70714f5297bfee0594b629d6.orderStatus = 45)\\\\nand formdata_100000444_LNEC3mFp.DATAROWNUM is null\\\"},\\\"formID\\\":{\\\"formSetID\\\":\\\"48f227abbe6b4e03ae3c1289846f2b5f\\\",\\\"formID\\\":\\\"f412933e70714f5297bfee0594b629d6\\\",\\\"tenantID\\\":\\\"100000444\\\",\\\"formName\\\":\\\"通用申请单\\\",\\\"bussinessSystem\\\":\\\"services\\\",\\\"enablesetting\\\":\\\"1\\\"}}\",\"fundata\":\"{\\\"val\\\":\\\"部门预算\\\",\\\"key\\\":\\\"DepartmentBudgt\\\"}\",\"relevancesourcetype\":\"chooseForm\",\"chooseSubform\":\"itemId\",\"mytextSel\":\"single\",\"singleSetValue\":\"itemId\",\"layoutsetting\":\"8/8\",\"svalue\":\"{\\\"formID\\\":\\\"mbU56leTeoxxOq3IeazhjbN67M6gCkKJeK9ETcwr/hF+QigidzZmwA==\\\",\\\"tenantID\\\":\\\"+/6NsJ1LJ9p5dKZG1Eau3g==\\\",\\\"userName\\\":\\\"o/2ADmwVWNw=\\\",\\\"t\\\":\\\"g/L6PoAXpMYLYkmV0ehygng7f9/p2bnS\\\"}\",\"synchrodata\":true,\"mustcheck_chooseData\":true,\"approvalmustenter\":false,\"visible\":true}},\"itemId_10\":{\"tag_Id\":\"itemId_10\",\"tag_Name\":\"数字10\",\"tag_Type\":\"number\",\"fieldOrderNum\":17,\"columnOrderNum\":10,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"申请金额\",\"alias\":\"applyUseMoney\",\"description\":\"\",\"masterData\":\"\",\"numbertype\":\"decimal\",\"decimalplace\":\"2\",\"visible\":false,\"editable\":false,\"solidiFication\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"10\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_11\":{\"tag_Id\":\"itemId_11\",\"tag_Name\":\"子表单11\",\"tag_Type\":\"subform\",\"fieldOrderNum\":24,\"columnOrderNum\":11,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"付款信息\",\"alias\":\"payinfo\",\"description\":\"\",\"visible\":true,\"solidiFication\":false,\"allcopy\":false,\"addBtn\":true,\"importFile\":false,\"template\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"firstLoad\":true,\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"payInfos\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_12\":{\"tag_Id\":\"itemId_12\",\"tag_Name\":\"单行文本12\",\"tag_Type\":\"text\",\"fieldOrderNum\":25,\"columnOrderNum\":12,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"DATAROWNUM\",\"alias\":\"DATAROWNUM\",\"description\":\"\",\"prefix\":\"prefixs\",\"prefixs\":[],\"format\":\"text\",\"masterData\":\"\",\"visible\":false,\"editable\":true,\"solidiFication\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_14\":{\"tag_Id\":\"itemId_14\",\"tag_Name\":\"单行文本14\",\"tag_Type\":\"text\",\"fieldOrderNum\":29,\"columnOrderNum\":14,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"收款方银行账号\",\"alias\":\"zracct\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":true,\"editable\":false,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"zracct\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_15\":{\"tag_Id\":\"itemId_15\",\"tag_Name\":\"单行文本15\",\"tag_Type\":\"text\",\"fieldOrderNum\":31,\"columnOrderNum\":15,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"贷方文本\",\"alias\":\"creditItem\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":false,\"editable\":false,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"creditItem\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_16\":{\"tag_Id\":\"itemId_16\",\"tag_Name\":\"单行文本16\",\"tag_Type\":\"text\",\"fieldOrderNum\":32,\"columnOrderNum\":16,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"资金计划编号\",\"alias\":\"zzjjhh\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":true,\"editable\":true,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"zzjjhh\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_17\":{\"tag_Id\":\"itemId_17\",\"tag_Name\":\"下拉框17\",\"tag_Type\":\"dropdownlist\",\"fieldOrderNum\":33,\"columnOrderNum\":17,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"支付方式\",\"alias\":\"payWay\",\"description\":\"\",\"dropdowntype\":\"single\",\"datasourcetype\":\"masterdata\",\"datasource\":\"\",\"masterData\":\"{\\\"eleCode\\\":\\\"Ele003000100\\\",\\\"defindCode\\\":\\\"F000019\\\",\\\"defindName\\\":\\\"支付方式\\\",\\\"eleName\\\":\\\"Ele004000101\\\",\\\"allDefinedMaster\\\":[{\\\"code\\\":\\\"Ele003000100\\\",\\\"value\\\":\\\"支付方式编号\\\"},{\\\"code\\\":\\\"Ele004000101\\\",\\\"value\\\":\\\"支付方式名称\\\"},{\\\"code\\\":\\\"Ele003000100\\\",\\\"value\\\":\\\"支付方式编号\\\"},{\\\"code\\\":\\\"Ele004000101\\\",\\\"value\\\":\\\"支付方式名称\\\"}]}\",\"custom\":[],\"textcolumn\":\"\",\"valuecolumn\":\"\",\"apiUrl\":\"\",\"apiIdKey\":\"\",\"apiPIdKey\":\"\",\"visible\":true,\"editable\":true,\"mustcheck\":false,\"approvalmustenter\":true,\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"lazyLoad\":false,\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"payWay\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\",\"solidiFication\":true}},\"itemId_18\":{\"tag_Id\":\"itemId_18\",\"tag_Name\":\"数字18\",\"tag_Type\":\"number\",\"fieldOrderNum\":34,\"columnOrderNum\":18,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"实付金额\",\"alias\":\"netMoney\",\"description\":\"\",\"masterData\":\"\",\"numbertype\":\"decimal\",\"decimalplace\":\"2\",\"visible\":true,\"editable\":false,\"solidiFication\":false,\"mustcheck\":false,\"approvalmustenter\":true,\"maxlength\":\"10\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"netMoney\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_19\":{\"tag_Id\":\"itemId_19\",\"tag_Name\":\"单行文本19\",\"tag_Type\":\"text\",\"fieldOrderNum\":19,\"columnOrderNum\":19,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"借方文本\",\"alias\":\"debitItem\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":false,\"editable\":true,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"debitItem\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_22\":{\"tag_Id\":\"itemId_22\",\"tag_Name\":\"单行文本22\",\"tag_Type\":\"text\",\"fieldOrderNum\":30,\"columnOrderNum\":22,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"收款方银行代码\",\"alias\":\"bankl\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":true,\"editable\":false,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"bankl\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_23\":{\"tag_Id\":\"itemId_23\",\"tag_Name\":\"单行文本23\",\"tag_Type\":\"text\",\"fieldOrderNum\":21,\"columnOrderNum\":23,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"订单说明\",\"alias\":\"Remark\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":false,\"editable\":false,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"说明\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"Remark\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_24\":{\"tag_Id\":\"itemId_24\",\"tag_Name\":\"数字24\",\"tag_Type\":\"number\",\"fieldOrderNum\":6,\"columnOrderNum\":24,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"报销金额\",\"alias\":\"Amount\",\"description\":\"\",\"masterData\":\"\",\"numbertype\":\"decimal\",\"decimalplace\":\"2\",\"visible\":true,\"editable\":true,\"solidiFication\":false,\"mustcheck\":false,\"approvalmustenter\":true,\"maxlength\":\"10\",\"defaultvalue\":\"\",\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_26\":{\"tag_Id\":\"itemId_26\",\"tag_Name\":\"数字26\",\"tag_Type\":\"number\",\"fieldOrderNum\":16,\"columnOrderNum\":26,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"报销金额隐藏\",\"alias\":\"expendUseMoney\",\"description\":\"\",\"masterData\":\"\",\"numbertype\":\"decimal\",\"decimalplace\":\"2\",\"visible\":false,\"editable\":true,\"solidiFication\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"10\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"money\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_28\":{\"tag_Id\":\"itemId_28\",\"tag_Name\":\"下拉框28\",\"tag_Type\":\"dropdownlist\",\"fieldOrderNum\":10,\"columnOrderNum\":28,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"复核状态\",\"alias\":\"conformingstate\",\"description\":\"\",\"dropdowntype\":\"single\",\"datasourcetype\":\"custom\",\"datasource\":\"\",\"masterData\":\"\",\"custom\":[{\"ischecked\":false,\"itemtext\":\"未到账\",\"code\":\"T00001\"},{\"ischecked\":false,\"itemtext\":\"已到账,未记账\",\"code\":\"T00002\"},{\"ischecked\":false,\"itemtext\":\"已到账,已记账\",\"code\":\"T00003\"}],\"textcolumn\":\"\",\"valuecolumn\":\"\",\"apiUrl\":\"\",\"apiIdKey\":\"\",\"apiPIdKey\":\"\",\"visible\":false,\"editable\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"lazyLoad\":false,\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\",\"solidiFication\":true},\"side\":\"thi\"},\"itemId_29\":{\"tag_Id\":\"itemId_29\",\"tag_Name\":\"单行文本29\",\"tag_Type\":\"text\",\"fieldOrderNum\":11,\"columnOrderNum\":29,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"凭证号\",\"alias\":\"voucherno\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":false,\"editable\":false,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"voucherCode\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_31\":{\"tag_Id\":\"itemId_31\",\"tag_Name\":\"单行文本31\",\"tag_Type\":\"text\",\"fieldOrderNum\":15,\"columnOrderNum\":31,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"是否出纳\",\"alias\":\"whetherCashier\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":false,\"editable\":false,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_32\":{\"tag_Id\":\"itemId_32\",\"tag_Name\":\"数字32\",\"tag_Type\":\"number\",\"fieldOrderNum\":18,\"columnOrderNum\":32,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"借款金额\",\"alias\":\"loanAmount\",\"description\":\"\",\"masterData\":\"\",\"numbertype\":\"decimal\",\"decimalplace\":\"2\",\"visible\":false,\"editable\":true,\"solidiFication\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"10\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"borrowingAmount\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_34\":{\"tag_Id\":\"itemId_34\",\"tag_Name\":\"数字34\",\"tag_Type\":\"number\",\"fieldOrderNum\":13,\"columnOrderNum\":34,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"还款总金额\",\"alias\":\"AmountRepayments\",\"description\":\"\",\"masterData\":\"\",\"numbertype\":\"decimal\",\"decimalplace\":\"2\",\"visible\":false,\"editable\":false,\"solidiFication\":false,\"mustcheck\":false,\"approvalmustenter\":true,\"maxlength\":\"10\",\"defaultvalue\":\"\",\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"repaymentAmount\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_35\":{\"tag_Id\":\"itemId_35\",\"tag_Name\":\"单行文本35\",\"tag_Type\":\"text\",\"fieldOrderNum\":12,\"columnOrderNum\":35,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"交易序号\",\"alias\":\"tradeNumber\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":false,\"editable\":false,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_40\":{\"tag_Id\":\"itemId_40\",\"tag_Name\":\"单行文本40\",\"tag_Type\":\"text\",\"fieldOrderNum\":20,\"columnOrderNum\":40,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"收款方\",\"alias\":\"单行文本40\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":false,\"editable\":true,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"收款方:\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_44\":{\"tag_Id\":\"itemId_44\",\"tag_Name\":\"单行文本44\",\"tag_Type\":\"text\",\"fieldOrderNum\":14,\"columnOrderNum\":44,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"还款说明\",\"alias\":\"repaymentStatement\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":false,\"editable\":true,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":true,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_45\":{\"tag_Id\":\"itemId_45\",\"tag_Name\":\"数字45\",\"tag_Type\":\"number\",\"fieldOrderNum\":7,\"columnOrderNum\":45,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"实付金额合计\",\"alias\":\"netMoneyAll\",\"description\":\"\",\"masterData\":\"\",\"numbertype\":\"decimal\",\"decimalplace\":\"2\",\"visible\":true,\"editable\":false,\"solidiFication\":false,\"mustcheck\":true,\"approvalmustenter\":false,\"maxlength\":\"10\",\"defaultvalue\":\"0\",\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"},\"side\":\"thi\"},\"itemId_46\":{\"tag_Id\":\"itemId_46\",\"tag_Name\":\"单行文本46\",\"tag_Type\":\"text\",\"fieldOrderNum\":26,\"columnOrderNum\":46,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"收款方名称\",\"alias\":\"zrcvert\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":true,\"editable\":true,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":true,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[{\"ischecked\":false,\"itemtext_1\":\"zrcvert\",\"itemtext_2\":\"\"}],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_48\":{\"tag_Id\":\"itemId_48\",\"tag_Name\":\"数字48\",\"tag_Type\":\"number\",\"fieldOrderNum\":23,\"columnOrderNum\":48,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"还款金额\",\"alias\":\"AmountRepayment\",\"description\":\"\",\"masterData\":\"\",\"numbertype\":\"decimal\",\"decimalplace\":\"2\",\"visible\":false,\"editable\":true,\"solidiFication\":false,\"mustcheck\":true,\"approvalmustenter\":false,\"maxlength\":\"13\",\"defaultvalue\":\"0\",\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_49\":{\"tag_Id\":\"itemId_49\",\"tag_Name\":\"下拉框49\",\"tag_Type\":\"dropdownlist\",\"fieldOrderNum\":22,\"columnOrderNum\":49,\"parentsubFormNum\":0,\"tag_Attribute\":{\"title\":\"还款方式\",\"alias\":\"repaymentMethod\",\"description\":\"\",\"dropdowntype\":\"single\",\"datasourcetype\":\"masterdata\",\"datasource\":\"\",\"masterData\":\"{\\\"eleCode\\\":\\\"Ele003000938\\\",\\\"defindCode\\\":\\\"F000087\\\",\\\"defindName\\\":\\\"还款方式\\\",\\\"eleName\\\":\\\"Ele004000939\\\",\\\"allDefinedMaster\\\":[{\\\"code\\\":\\\"Ele003000938\\\",\\\"value\\\":\\\"还款方式代码\\\"},{\\\"code\\\":\\\"Ele004000939\\\",\\\"value\\\":\\\"还款方式名称\\\"}]}\",\"custom\":[],\"textcolumn\":\"\",\"valuecolumn\":\"\",\"apiUrl\":\"\",\"apiIdKey\":\"\",\"apiPIdKey\":\"\",\"visible\":false,\"editable\":true,\"mustcheck\":true,\"approvalmustenter\":false,\"layoutsetting\":\"2/8\",\"sysfomula\":\"\",\"lazyLoad\":false,\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\",\"solidiFication\":false}},\"itemId_50\":{\"tag_Id\":\"itemId_50\",\"tag_Name\":\"单行文本50\",\"tag_Type\":\"text\",\"fieldOrderNum\":28,\"columnOrderNum\":50,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"收款方银行名称\",\"alias\":\"BeneficiaryBankN\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":true,\"editable\":false,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}},\"itemId_51\":{\"tag_Id\":\"itemId_51\",\"tag_Name\":\"单行文本51\",\"tag_Type\":\"text\",\"fieldOrderNum\":27,\"columnOrderNum\":51,\"parentsubFormNum\":\"11\",\"tag_Attribute\":{\"title\":\"测试\",\"alias\":\"test\",\"description\":\"\",\"format\":\"text\",\"masterData\":\"\",\"visible\":true,\"editable\":true,\"solidiFication\":false,\"onlyVerification\":false,\"mustcheck\":false,\"approvalmustenter\":false,\"maxlength\":\"100\",\"defaultvalue\":\"\",\"layoutsetting\":\"8/8\",\"sysfomula\":\"\",\"customArr\":[],\"textarrcolumn\":\"\",\"valuearrcolumn\":\"\",\"namearrcolumn\":\"\",\"userDefiendArr\":\"customArr\"}}}";
 
 
    Function<Map<String, Object>, Map<String, Object>> mapper =
            v->new ModelMap("columnOrderNum", v.get("columnOrderNum")).addAttribute("parentsubFormNum", v.get("parentsubFormNum"));
 
    public void test1(){
//        System.out.println(fieldJson);
        Map<String, Map<String, Object>> fields = JSONTool.toObj(fieldJson, new TypeReference<Map<String, Map<String, Object>>>(){}.getType());
        List<Map<String, Object>> sortList = new ArrayList<>(fields.size());
        fields.values().stream()
                .filter(f->Objects.equals(f.get("parentsubFormNum"), 0))
                .filter(f->!Objects.equals(f.get("tag_Type"), "subform"))
                .map(mapper)
                .forEach(sortList::add);
 
        fields.values().stream()
                .filter(f->Objects.equals(f.get("tag_Type"), "subform"))
                .forEach(f->{
                    sortList.add(mapper.apply(f));
                    fields.values().stream()
                            .filter(cf->!Objects.equals(cf.get("parentsubFormNum"), 0))
                            .filter(cf->Objects.equals(Objects.toString(f.get("columnOrderNum")), Objects.toString(cf.get("parentsubFormNum"))))
                            .map(mapper)
                            .forEach(sortList::add);
                });
        sortList.stream()
                .map(JSONTool::toJson)
                .forEach(System.out::println);
 
    }
 
    @Test
    public void test(){
        JSONObject filedset = JSONObject.fromObject(fieldJson);
        List<String> fieldtypeList = new ArrayList<>();
        //这是不被删除得子表单集合
        Map<String, List<String>> subFormObjcloumn = new HashMap<>();
        Map<String, List<String>> subFormObjFieldtype = new HashMap<>();
        //更新后字段别名
        List<String> aliasValues = new ArrayList<>();
        //更新后字段别名及类型  例:{子表单=subForm , ...}
        Map<String,String> aliasValuesMap = new HashMap<>();
        //Map<子表单号,该子表单字段别名>
        Map<Integer,List<String>> aliasSubValues = new HashMap<>();
        //<别名,类型>
        Map<String,Map<String,String>> aliasSubValuesMap = new HashMap<>();
        //子表单号
        List<Integer> subFormNums = new ArrayList<>();
        //Map<子表单号,子表单别名>
        Map<Integer, String> subFormNames = new HashMap<>();
 
        // 处理主表
        getMainStream(filedset)
                .forEach(main->{
                    String columnOrderNum = Objects.toString(main.get(ConstMap.COLUMNORDERNUMKEY));
                    String alia = Objects.toString(Objects.toString(((Map<String, Object>)main.get(ConstMap.TAGATTRIBUTE)).get(ConstMap.ALIAS)));
                    String type = Objects.toString(main.get(ConstMap.TAGTYPEKEY));
                    fieldtypeList.add(Objects.toString(main.get(ConstMap.TAGTYPEKEY)));
                    aliasValues.add(alia);
                    aliasValuesMap.put(alia, type);
                    subFormNums.add(Integer.valueOf(columnOrderNum));
                });
        // 处理子表
        getChildStream(filedset)
                .forEach(child->{
                    String columnOrderNum = Objects.toString(child.get(ConstMap.COLUMNORDERNUMKEY));
                    String childAlia = Objects.toString(((Map<String, Object>)child.get(ConstMap.TAGATTRIBUTE)).get(ConstMap.ALIAS));
                    List<String> alias = new ArrayList<>();
                    List<String> types = new ArrayList<>();
                    Map<String, String> values = new HashMap<>();
                    getChildStream(filedset, columnOrderNum)
                            .forEach(childFields->{
                                String alia = Objects.toString(((Map<String, Object>)childFields.get(ConstMap.TAGATTRIBUTE)).get(ConstMap.ALIAS));
                                String type = Objects.toString(childFields.get(ConstMap.TAGTYPEKEY));
                                alias.add(alia);
                                types.add(type);
                                values.put(alia, type);
                            });
                    subFormObjcloumn.put(columnOrderNum, alias);
                    subFormObjFieldtype.put(columnOrderNum, types);
                    aliasSubValues.put(Integer.valueOf(columnOrderNum), alias);
                    aliasSubValuesMap.put(columnOrderNum, values);
                    subFormNames.put(Integer.valueOf(columnOrderNum), childAlia);
                });
 
 
        System.out.println(JSONTool.toJson(fieldtypeList));
        System.out.println(JSONTool.toJson(subFormObjcloumn));
        System.out.println(JSONTool.toJson(subFormObjFieldtype));
        System.out.println(JSONTool.toJson(aliasValues));
        System.out.println(JSONTool.toJson(aliasValuesMap));
        System.out.println(JSONTool.toJson(aliasSubValues));
        System.out.println(JSONTool.toJson(aliasSubValuesMap));
        System.out.println(JSONTool.toJson(subFormNums));
        System.out.println(JSONTool.toJson(subFormNames));
 
    }
 
    private Stream<Map<String, Object>> getChildStream(JSONObject fields){
        return ((Collection<Map<String, Object>>)fields.values()).stream()
                .filter(f->Objects.equals(f.get("tag_Type"), "subform"));
//                .map(f->Objects.toString(f.get("columnOrderNum")));
    }
 
    private Stream<Map<String, Object>> getChildStream(JSONObject fields, String columnOrderNum){
        return ((Collection<Map<String, Object>>)fields.values()).stream()
                .filter(cf->!Objects.equals(cf.get("parentsubFormNum"), 0))
                .filter(cf->Objects.equals(columnOrderNum, Objects.toString(cf.get("parentsubFormNum"))));
    }
 
    private Stream<Map<String, Object>> getMainStream(JSONObject fields) {
        return ((Collection<Map<String, Object>>)fields.values()).stream()
                .filter(f->Objects.equals(f.get("parentsubFormNum"), 0));
//                .filter(f->!Objects.equals(f.get("tag_Type"), "subform"));
 
    }
}