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 | 102 ++++++++++++++++++++++++++++----------------------
1 files changed, 57 insertions(+), 45 deletions(-)
diff --git a/java110-generator/src/main/resources/web/template_1.json b/java110-generator/src/main/resources/web/template_1.json
index 465930f..1f2020c 100755
--- a/java110-generator/src/main/resources/web/template_1.json
+++ b/java110-generator/src/main/resources/web/template_1.json
@@ -1,54 +1,66 @@
{
- "templateKeyName": "鎶ヨ〃ID",
- "templateName": "鎶ヨ〃",
+ "templateKeyName": "缁勪欢ID",
+ "templateName": "鎶ヨ〃缁勪欢",
"columns": [
{
"hasDefaultValue": false,
- "limitParam": "30",
- "code": "customId",
- "limitErrInfo": "鎶ヨ〃缂栧彿涓嶈兘瓒呰繃30",
- "cnCode": "鎶ヨ〃缂栧彿",
- "limit": "maxLength",
- "show": true,
- "inputType": "input",
- "required": true,
- "desc": "蹇呭~锛屾姤琛ㄧ紪鍙�"
- },
- {
- "hasDefaultValue": false,
- "limitParam": "30",
- "code": "groupId",
- "limitErrInfo": "缁勭紪鍙蜂笉鑳借秴杩�30",
- "cnCode": "缁勭紪鍙�",
- "limit": "maxLength",
- "show": true,
- "inputType": "input",
- "required": true,
- "desc": "蹇呭~锛岀粍缂栧彿"
- },
- {
- "hasDefaultValue": false,
"limitParam": "64",
- "code": "title",
- "limitErrInfo": "閫夐」鏍囬涓嶈兘瓒呰繃64",
- "cnCode": "閫夐」鏍囬",
+ "code": "name",
+ "limitErrInfo": "缁勪欢鍚嶇О涓嶈兘瓒呰繃64",
+ "cnCode": "缁勪欢鍚嶇О",
"limit": "maxLength",
"show": true,
"inputType": "input",
"required": true,
- "desc": "蹇呭~锛岄�夐」鏍囬"
+ "desc": "蹇呭~锛岀粍浠跺悕绉�"
},
{
"hasDefaultValue": false,
- "limitParam": "11",
- "code": "seq",
- "limitErrInfo": "鎺掑簭涓嶈兘瓒呰繃11",
- "cnCode": "鎺掑簭",
+ "limitParam": "12",
+ "code": "componentType",
+ "limitErrInfo": "缁勪欢绫诲瀷涓嶈兘瓒呰繃12",
+ "cnCode": "缁勪欢绫诲瀷",
"limit": "maxLength",
"show": true,
"inputType": "input",
"required": true,
- "desc": "蹇呭~锛屾帓搴�"
+ "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,
+ "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,
@@ -63,29 +75,29 @@
"desc": "鎻忚堪"
}
],
- "searchName": "鎶ヨ〃ID",
+ "searchName": "缁勪欢ID",
"directories": "dev",
- "searchCode": "customId",
- "templateCode": "reportCustom",
+ "searchCode": "componentId",
+ "templateCode": "reportCustomComponent",
"conditions": [
{
"whereCondition": "equal",
- "code": "customId",
- "name": "鎶ヨ〃缂栧彿",
+ "code": "componentId",
+ "name": "缁勪欢ID",
"inputType": "input"
},
{
"whereCondition": "equal",
- "code": "groupId",
- "name": "缁勭紪鍙�",
+ "code": "name",
+ "name": "缁勪欢鍚嶇О",
"inputType": "input"
},
{
"whereCondition": "equal",
- "code": "title",
- "name": "閫夐」鏍囬",
+ "code": "componentType",
+ "name": "缁勪欢绫诲瀷",
"inputType": "input"
}
],
- "templateKey": "customId"
+ "templateKey": "componentId"
}
\ No newline at end of file
--
Gitblit v1.8.0