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 |  150 ++++++++++++++++++++++++++++---------------------
 1 files changed, 85 insertions(+), 65 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 fbcba99..1f2020c
--- a/java110-generator/src/main/resources/web/template_1.json
+++ b/java110-generator/src/main/resources/web/template_1.json
@@ -1,83 +1,103 @@
 {
-  "templateName": "淇℃伅澶х被",
-  "directories": "property",
-  "templateCode": "activitiesType",
-  "templateKey": "typeCd",
-  "templateKeyName": "澶х被缂栫爜",
-  "searchCode": "typeCd",
-  "searchName": "澶х被缂栫爜",
-  "conditions": [
-    {
-      "name": "澶х被缂栫爜",
-      "inputType": "input",
-      "code": "typeCd",
-      "whereCondition": "equal"
-    },
-    {
-      "name": "澶х被鍚嶇О",
-      "inputType": "input",
-      "code": "typeName",
-      "whereCondition": "equal"
-    },
-    {
-      "name": "鏄惁鏄剧ず",
-      "inputType": "select",
-      "selectValue":"Y,N",
-      "selectValueName":"鏄�,鍚�",
-      "code": "defalutShow",
-      "whereCondition": "equal"
-    }
-  ],
+  "templateKeyName": "缁勪欢ID",
+  "templateName": "鎶ヨ〃缁勪欢",
   "columns": [
     {
-      "code": "typeName",
-      "cnCode": "澶х被鍚嶇О",
-      "desc": "蹇呭~锛岃濉啓澶х被鍚嶇О",
-      "required": true,
       "hasDefaultValue": false,
-      "inputType": "input",
+      "limitParam": "64",
+      "code": "name",
+      "limitErrInfo": "缁勪欢鍚嶇О涓嶈兘瓒呰繃64",
+      "cnCode": "缁勪欢鍚嶇О",
       "limit": "maxLength",
-      "limitParam": "100",
-      "limitErrInfo": "澶х被鍚嶇О瓒呰繃100浣�",
-      "show": true
+      "show": true,
+      "inputType": "input",
+      "required": true,
+      "desc": "蹇呭~锛岀粍浠跺悕绉�"
     },
     {
-      "code": "typeDesc",
-      "cnCode": "澶х被鎻忚堪",
-      "desc": "鍙~锛岃濉啓绫诲瀷鎻忚堪",
+      "hasDefaultValue": false,
+      "limitParam": "12",
+      "code": "componentType",
+      "limitErrInfo": "缁勪欢绫诲瀷涓嶈兘瓒呰繃12",
+      "cnCode": "缁勪欢绫诲瀷",
+      "limit": "maxLength",
+      "show": true,
+      "inputType": "input",
+      "required": true,
+      "desc": "蹇呭~锛岀粍浠剁被鍨�"
+    },
+    {
+      "hasDefaultValue": false,
+      "limitParam": "1",
+      "code": "queryModel",
+      "limitErrInfo": "鏌ヨ鏂瑰紡涓嶈兘瓒呰繃1",
+      "cnCode": "鏌ヨ鏂瑰紡",
+      "limit": "maxLength",
+      "show": true,
+      "inputType": "input",
+      "required": true,
+      "desc": "蹇呭~锛屾煡璇㈡柟寮�"
+    },
+    {
+      "hasDefaultValue": false,
+      "limitParam": "1024",
+      "code": "sql",
+      "limitErrInfo": "鎵цsql涓嶈兘瓒呰繃1024",
+      "cnCode": "鎵цsql",
+      "limit": "maxLength",
+      "show": true,
+      "inputType": "input",
       "required": false,
-      "hasDefaultValue": false,
-      "inputType": "input",
-      "limit": "maxLength",
-      "limitParam": "500",
-      "limitErrInfo": "鎻忚堪瓒呰繃500浣�",
-      "show": true
+      "desc": "鎵цsql"
     },
     {
-      "code": "seq",
-      "cnCode": "鏄剧ず搴忓彿",
-      "desc": "蹇呭~锛岃濉啓鏄剧ず搴忓彿",
-      "required": true,
       "hasDefaultValue": false,
+      "limitParam": "1024",
+      "code": "javaScript",
+      "limitErrInfo": "鎵цjava鑴氭湰浠g爜涓嶈兘瓒呰繃1024",
+      "cnCode": "鎵цjava鑴氭湰浠g爜",
+      "limit": "maxLength",
+      "show": true,
       "inputType": "input",
-      "limit": "num",
-      "limitParam": "",
-      "limitErrInfo": "鏄剧ず搴忓彿涓嶆槸鏈夋晥鏁板瓧",
-      "show": true
+      "required": false,
+      "desc": "鎵цjava鑴氭湰浠g爜"
     },
     {
-      "code": "defalutShow",
-      "cnCode": "鏄惁鏄剧ず",
-      "desc": "蹇呭~锛岃濉啓鏄惁鏄剧ず",
-      "required": true,
       "hasDefaultValue": false,
-      "inputType": "select",
-      "selectValue": "Y,N",
-      "selectValueName": "鏄�,鍚�",
+      "limitParam": "512",
+      "code": "remark",
+      "limitErrInfo": "鎻忚堪涓嶈兘瓒呰繃512",
+      "cnCode": "鎻忚堪",
       "limit": "maxLength",
-      "limitParam": "2",
-      "limitErrInfo": "鏄惁鏄剧ず鏍煎紡閿欒",
-      "show": true
+      "show": true,
+      "inputType": "input",
+      "required": false,
+      "desc": "鎻忚堪"
     }
-  ]
+  ],
+  "searchName": "缁勪欢ID",
+  "directories": "dev",
+  "searchCode": "componentId",
+  "templateCode": "reportCustomComponent",
+  "conditions": [
+    {
+      "whereCondition": "equal",
+      "code": "componentId",
+      "name": "缁勪欢ID",
+      "inputType": "input"
+    },
+    {
+      "whereCondition": "equal",
+      "code": "name",
+      "name": "缁勪欢鍚嶇О",
+      "inputType": "input"
+    },
+    {
+      "whereCondition": "equal",
+      "code": "componentType",
+      "name": "缁勪欢绫诲瀷",
+      "inputType": "input"
+    }
+  ],
+  "templateKey": "componentId"
 }
\ No newline at end of file

--
Gitblit v1.8.0