From 2926d12eb0cc5f4490325fded6d35a91d8d76e77 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 12 十一月 2021 11:15:34 +0800
Subject: [PATCH] 优化代码

---
 java110-generator/src/main/resources/web/template_1.json |  280 +++++++++++++++++---------------------------------------
 1 files changed, 85 insertions(+), 195 deletions(-)

diff --git a/java110-generator/src/main/resources/web/template_1.json b/java110-generator/src/main/resources/web/template_1.json
old mode 100644
new mode 100755
index f247163..1f2020c
--- a/java110-generator/src/main/resources/web/template_1.json
+++ b/java110-generator/src/main/resources/web/template_1.json
@@ -1,213 +1,103 @@
 {
-  "templateName":"鍚堝悓淇℃伅",
-  "directories": "admin",
-  "templateCode":"contract",
-  "templateKey":"contractId",
-  "templateKeyName":"鍚堝悓ID",
-  "searchCode": "contractId",
-  "searchName": "鍚堝悓ID",
-  "conditions": [
+  "templateKeyName": "缁勪欢ID",
+  "templateName": "鎶ヨ〃缁勪欢",
+  "columns": [
     {
-      "name": "鍚堝悓鍚嶇О",
+      "hasDefaultValue": false,
+      "limitParam": "64",
+      "code": "name",
+      "limitErrInfo": "缁勪欢鍚嶇О涓嶈兘瓒呰繃64",
+      "cnCode": "缁勪欢鍚嶇О",
+      "limit": "maxLength",
+      "show": true,
       "inputType": "input",
-      "code": "contractName",
-      "whereCondition": "equal"
+      "required": true,
+      "desc": "蹇呭~锛岀粍浠跺悕绉�"
     },
     {
-      "name": "鍚堝悓缂栧彿",
+      "hasDefaultValue": false,
+      "limitParam": "12",
+      "code": "componentType",
+      "limitErrInfo": "缁勪欢绫诲瀷涓嶈兘瓒呰繃12",
+      "cnCode": "缁勪欢绫诲瀷",
+      "limit": "maxLength",
+      "show": true,
       "inputType": "input",
-      "code": "contractCode",
-      "whereCondition": "equal"
+      "required": true,
+      "desc": "蹇呭~锛岀粍浠剁被鍨�"
     },
     {
-      "name": "鍚堝悓绫诲瀷",
+      "hasDefaultValue": false,
+      "limitParam": "1",
+      "code": "queryModel",
+      "limitErrInfo": "鏌ヨ鏂瑰紡涓嶈兘瓒呰繃1",
+      "cnCode": "鏌ヨ鏂瑰紡",
+      "limit": "maxLength",
+      "show": true,
       "inputType": "input",
-      "code": "contractType",
-      "whereCondition": "equal"
+      "required": true,
+      "desc": "蹇呭~锛屾煡璇㈡柟寮�"
+    },
+    {
+      "hasDefaultValue": false,
+      "limitParam": "1024",
+      "code": "sql",
+      "limitErrInfo": "鎵цsql涓嶈兘瓒呰繃1024",
+      "cnCode": "鎵цsql",
+      "limit": "maxLength",
+      "show": true,
+      "inputType": "input",
+      "required": false,
+      "desc": "鎵цsql"
+    },
+    {
+      "hasDefaultValue": false,
+      "limitParam": "1024",
+      "code": "javaScript",
+      "limitErrInfo": "鎵цjava鑴氭湰浠g爜涓嶈兘瓒呰繃1024",
+      "cnCode": "鎵цjava鑴氭湰浠g爜",
+      "limit": "maxLength",
+      "show": true,
+      "inputType": "input",
+      "required": false,
+      "desc": "鎵цjava鑴氭湰浠g爜"
+    },
+    {
+      "hasDefaultValue": false,
+      "limitParam": "512",
+      "code": "remark",
+      "limitErrInfo": "鎻忚堪涓嶈兘瓒呰繃512",
+      "cnCode": "鎻忚堪",
+      "limit": "maxLength",
+      "show": true,
+      "inputType": "input",
+      "required": false,
+      "desc": "鎻忚堪"
     }
   ],
-  "columns":[
+  "searchName": "缁勪欢ID",
+  "directories": "dev",
+  "searchCode": "componentId",
+  "templateCode": "reportCustomComponent",
+  "conditions": [
     {
-      "code": "contractName",
-      "cnCode":"鍚堝悓鍚嶇О",
-      "desc":"蹇呭~锛岃濉啓鍚堝悓鍚嶇О",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"maxLength",
-      "limitParam":"200",
-      "limitErrInfo":"鍚堝悓鍚嶇О涓嶈兘瓒呰繃64浣�",
-      "show": true
+      "whereCondition": "equal",
+      "code": "componentId",
+      "name": "缁勪欢ID",
+      "inputType": "input"
     },
     {
-      "code": "contractCode",
-      "cnCode":"鍚堝悓缂栧彿",
-      "desc":"閫夊~锛岃濉啓鍚堝悓缂栧彿",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"maxLength",
-      "limitParam":"30",
-      "limitErrInfo":"鍚堝悓缂栧彿閿欒",
-      "show": true
+      "whereCondition": "equal",
+      "code": "name",
+      "name": "缁勪欢鍚嶇О",
+      "inputType": "input"
     },
     {
-      "code": "contractType",
-      "cnCode":"鍚堝悓绫诲瀷",
-      "desc":"蹇呭~锛岃閫夋嫨鍚堝悓绫诲瀷",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "select",
-      "selectValue":"10001,10002",
-      "selectValueName":"灏忓尯鏂囧寲,鍏朵粬",
-      "limit":"num",
-      "limitParam":"",
-      "limitErrInfo":"鍚堝悓绫诲瀷鏍煎紡閿欒",
-      "show": true
-    },
-    {
-      "code": "partyA",
-      "cnCode":"鐢叉柟",
-      "desc":"蹇呭~锛岃濉啓鐢叉柟",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"maxLength",
-      "limitParam":"200",
-      "limitErrInfo":"鐢叉柟鍚嶇О澶暱",
-      "show": true
-    },
-    {
-      "code": "partyB",
-      "cnCode":"涔欐柟",
-      "desc":"蹇呭~锛岃濉啓涔欐柟",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"maxLength",
-      "limitParam":"200",
-      "limitErrInfo":"涔欐柟鍚嶇О澶暱",
-      "show": true
-    },
-    {
-      "code": "aContacts",
-      "cnCode":"鐢叉柟鑱旂郴浜�",
-      "desc":"蹇呭~锛岃濉啓鐢叉柟鑱旂郴浜�",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"maxLength",
-      "limitParam":"64",
-      "limitErrInfo":"鐢叉柟鑱旂郴浜洪暱搴﹁秴杩�64浣�",
-      "show": false
-    },
-    {
-      "code": "bContacts",
-      "cnCode":"涔欐柟鑱旂郴浜�",
-      "desc":"蹇呭~锛岃濉啓鐢叉柟鑱旂郴浜�",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"maxLength",
-      "limitParam":"64",
-      "limitErrInfo":"鐢叉柟鑱旂郴浜洪暱搴﹁秴杩�64浣�",
-      "show": false
-    },
-    {
-      "code": "aLink",
-      "cnCode":"鐢叉柟鑱旂郴鐢佃瘽",
-      "desc":"蹇呭~锛岃濉啓鐢叉柟鑱旂郴鐢佃瘽",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"phone",
-      "limitParam":"",
-      "limitErrInfo":"鐢叉柟鑱旂郴鐢佃瘽閿欒",
-      "show": false
-    },
-    {
-      "code": "bLink",
-      "cnCode":"涔欐柟鑱旂郴鐢佃瘽",
-      "desc":"蹇呭~锛岃濉啓涔欐柟鑱旂郴鐢佃瘽",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"phone",
-      "limitParam":"",
-      "limitErrInfo":"涔欐柟鑱旂郴鐢佃瘽閿欒",
-      "show": false
-    },
-    {
-      "code": "operator",
-      "cnCode":"缁忓姙浜�",
-      "desc":"蹇呭~锛岃濉啓缁忓姙浜�",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"maxLength",
-      "limitParam":"64",
-      "limitErrInfo":"缁忓姙浜鸿秴杩�64浣�",
-      "show": true
-    },
-    {
-      "code": "operatorLink",
-      "cnCode":"鑱旂郴鐢佃瘽",
-      "desc":"蹇呭~锛岃濉啓缁忓姙浜鸿仈绯荤數璇�",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"phone",
-      "limitParam":"",
-      "limitErrInfo":"缁忓姙浜鸿仈绯荤數璇濇牸寮忛敊璇�",
-      "show": false
-    },
-    {
-      "code": "amount",
-      "cnCode":"鍚堝悓閲戦",
-      "desc":"蹇呭~锛岃濉啓鍚堝悓閲戦",
-      "required":false,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"money",
-      "limitParam":"",
-      "limitErrInfo":"鍚堝悓閲戦鏍煎紡閿欒锛屽1.50",
-      "show": true
-    },
-    {
-      "code": "startTime",
-      "cnCode":"寮�濮嬫椂闂�",
-      "desc":"蹇呭~锛岃濉啓鍚堝悓寮�濮嬫椂闂�",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"dateTime",
-      "limitParam":"",
-      "limitErrInfo":"鍚堝悓寮�濮嬫椂闂存牸寮忛敊璇�",
-      "show": true
-    },
-    {
-      "code": "endTime",
-      "cnCode":"缁撴潫鏃堕棿",
-      "desc":"蹇呭~锛岃濉啓鍚堝悓缁撴潫鏃堕棿",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"dateTime",
-      "limitParam":"",
-      "limitErrInfo":"鍚堝悓缁撴潫鏃堕棿鏍煎紡閿欒",
-      "show": true
-    },
-    {
-      "code": "signingTime",
-      "cnCode":"绛捐鏃堕棿",
-      "desc":"閫夊~锛岃濉啓鍚堝悓绛捐鏃堕棿",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"dateTime",
-      "limitParam":"",
-      "limitErrInfo":"鍚堝悓绛捐鏃堕棿鏍煎紡閿欒",
-      "show": false
+      "whereCondition": "equal",
+      "code": "componentType",
+      "name": "缁勪欢绫诲瀷",
+      "inputType": "input"
     }
-  ]
+  ],
+  "templateKey": "componentId"
 }
\ No newline at end of file

--
Gitblit v1.8.0