From 69e2baf5518079bfc16cfadc2fb29842fb3de85d Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 14 一月 2020 21:02:48 +0800
Subject: [PATCH] 加入userName
---
java110-code-generator/src/main/resources/web/template_1.json | 133 +++++++++++++++++++++++++------------------
1 files changed, 77 insertions(+), 56 deletions(-)
diff --git a/java110-code-generator/src/main/resources/web/template_1.json b/java110-code-generator/src/main/resources/web/template_1.json
index 359273f..49d5e45 100644
--- a/java110-code-generator/src/main/resources/web/template_1.json
+++ b/java110-code-generator/src/main/resources/web/template_1.json
@@ -1,91 +1,112 @@
{
- "templateName":"瀹℃牳浜哄憳",
- "templateCode":"resourceStore",
- "templateKey":"resId",
- "templateKeyName":"鐗╁搧ID",
- "searchCode": "resName",
- "searchName": "鐗╁搧鍚嶇О",
+ "templateName":"娲诲姩",
+ "templateCode":"activities",
+ "templateKey":"activitiesId",
+ "templateKeyName":"娲诲姩ID",
+ "searchCode": "title",
+ "searchName": "娲诲姩鏍囬",
"conditions": [
-
{
- "name": "鐗╁搧ID",
+ "name": "娲诲姩鏍囬",
"inputType": "input",
- "code": "resId",
+ "code": "title",
"whereCondition": "equal"
},
{
- "name": "鐗╁搧鍚嶇О",
- "inputType": "input",
- "code": "resName",
+ "name": "娲诲姩绫诲瀷",
+ "inputType": "select",
+ "selectValue":"10001,10002",
+ "selectValueName":"灏忓尯鏂囧寲,鍏朵粬",
+ "code": "typeCd",
"whereCondition": "equal"
},
{
- "name": "鐗╁搧缂栫爜",
+ "name": "鍛樺伐鍚嶇О",
"inputType": "input",
- "code": "resCode",
+ "code": "userName",
+ "whereCondition": "equal"
+ },
+ {
+ "name": "娲诲姩ID",
+ "inputType": "input",
+ "code": "activitiesId",
"whereCondition": "equal"
}
],
"columns":[
{
- "code":"resName",
- "cnCode":"鐗╁搧鍚嶇О",
- "desc":"蹇呭~锛岃濉啓鐗╁搧鍚嶇О",
+ "code":"title",
+ "cnCode":"娲诲姩鏍囬",
+ "desc":"蹇呭~锛岃濉啓涓氭椿鍔ㄦ爣棰�",
"required":true,
"hasDefaultValue":false,
"inputType":"input",
"limit":"maxin",
- "limitParam":"2,100",
- "limitErrInfo":"鐗╁搧鍚嶇О闀垮害涓�2鑷�100",
+ "limitParam":"1,200",
+ "limitErrInfo":"娲诲姩鏍囬涓嶈兘瓒呰繃200浣�",
"show": true
},
{
- "code":"resCode",
- "cnCode":"鐗╁搧缂栫爜",
- "desc":"蹇呭~锛岃濉啓鐗╁搧缂栫爜",
+ "code": "typeCd",
+ "cnCode":"娲诲姩绫诲瀷",
+ "desc":"蹇呭~锛岃閫夋嫨娲诲姩绫诲瀷",
"required":true,
"hasDefaultValue":false,
- "inputType":"input",
- "limit":"maxin",
- "limitParam":"2,50",
- "limitErrInfo":"鐗╁搧缂栫爜蹇呴』鍦�2鑷�50瀛楃涔嬮棿",
- "show": true
- },
- {
- "code":"price",
- "cnCode":"鐗╁搧浠锋牸",
- "desc":"蹇呭~锛岃濉啓鐗╁搧浠锋牸",
- "required":true,
- "hasDefaultValue":false,
- "inputType":"input",
- "limit":"money",
- "limitParam":"",
- "limitErrInfo":"鐗╁搧浠锋牸鏍煎紡閿欒",
- "show": true
- },
- {
- "code":"stock",
- "cnCode":"鐗╁搧搴撳瓨",
- "desc":"蹇呭~锛岃濉啓鐗╁搧搴撳瓨",
- "required":true,
- "hasDefaultValue":false,
- "inputType":"input",
+ "inputType": "select",
+ "selectValue":"10001,10002",
+ "selectValueName":"灏忓尯鏂囧寲,鍏朵粬",
"limit":"num",
"limitParam":"",
- "limitErrInfo":"鐗╁搧搴撳瓨涓嶆槸鏈夋晥鏁板瓧",
+ "limitErrInfo":"娲诲姩绫诲瀷鏍煎紡閿欒",
"show": true
},
{
- "code":"description",
- "cnCode":"鎻忚堪",
- "desc":"蹇呭~锛岃濉啓鎻忚堪",
+ "code": "headerImg",
+ "cnCode":"澶撮儴鐓х墖",
+ "desc":"蹇呭~锛岃閫夋嫨澶撮儴鐓х墖",
"required":true,
"hasDefaultValue":false,
- "inputType":"textarea",
- "limit":"maxLength",
- "limitParam":"200",
- "limitErrInfo":"鎻忚堪涓嶈兘涓虹┖",
- "show": false
+ "inputType": "input",
+ "limit":"maxin",
+ "limitParam":"1,200",
+ "limitErrInfo":"澶撮儴鐓х墖鏍煎紡閿欒",
+ "show": true
+ },
+ {
+ "code": "context",
+ "cnCode":"娲诲姩鍐呭",
+ "desc":"蹇呭~锛岃濉啓娲诲姩鍐呭",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType": "input",
+ "limit":"maxin",
+ "limitParam":"1,4000",
+ "limitErrInfo":"娲诲姩鍐呭澶暱",
+ "show": true
+ },
+ {
+ "code": "startTime",
+ "cnCode":"寮�濮嬫椂闂�",
+ "desc":"蹇呭~锛岃閫夋嫨寮�濮嬫椂闂�",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType": "input",
+ "limit":"date",
+ "limitParam":"",
+ "limitErrInfo":"寮�濮嬫椂闂存牸寮忛敊璇�",
+ "show": true
+ },
+ {
+ "code": "endTime",
+ "cnCode":"缁撴潫鏃堕棿",
+ "desc":"蹇呭~锛岃閫夋嫨缁撴潫鏃堕棿",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType": "input",
+ "limit":"date",
+ "limitParam":"",
+ "limitErrInfo":"缁撴潫鏃堕棿鏍煎紡閿欒",
+ "show": true
}
]
}
\ No newline at end of file
--
Gitblit v1.8.0