From 088cad4fda2eaaf76a12625624702639e8a3a4b7 Mon Sep 17 00:00:00 2001
From: mrzcc <121184950@qq.com>
Date: 星期一, 10 二月 2020 14:53:47 +0800
Subject: [PATCH] 巡检点代码生成器template
---
java110-code-generator/src/main/resources/web/template_1.json | 233 +++++++++++++++++++++++-----------------------------------
1 files changed, 93 insertions(+), 140 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 b7187c5..b948c91 100644
--- a/java110-code-generator/src/main/resources/web/template_1.json
+++ b/java110-code-generator/src/main/resources/web/template_1.json
@@ -1,183 +1,136 @@
{
- "templateName":"鏈嶅姟",
- "templateCode":"service",
- "templateKey":"serviceId",
- "templateKeyName":"鏈嶅姟ID",
- "searchCode": "name",
- "searchName": "鏈嶅姟鍚嶇О",
+ "templateName":"璐圭敤椤�",
+ "templateCode":"feeConfig",
+ "templateKey":"configId",
+ "templateKeyName":"璐圭敤椤笽D",
+ "searchCode": "feeName",
+ "searchName": "璐圭敤椤圭洰",
"conditions": [
{
- "name": "搴旂敤鍚嶇О",
- "inputType": "choose",
- "componentName": "chooseApp",
- "code": "appName",
+ "name": "璐圭敤鏍囪瘑",
+ "inputType": "select",
+ "selectValue":"1003006,2006012",
+ "selectValueName":"鍛ㄦ湡鎬ц垂鐢�,涓�娆℃�ц垂鐢�",
+ "code": "feeFlag",
"whereCondition": "equal"
},
{
- "name": "鏈嶅姟鍚嶇О",
+ "name": "璐圭敤椤圭洰",
"inputType": "input",
- "code": "serviceName",
- "whereCondition": "like"
+ "code": "feeName",
+ "whereCondition": "equal"
},
{
- "name": "鏈嶅姟缂栫爜",
- "inputType": "input",
- "code": "serviceCode",
- "whereCondition": "like"
- },
- {
- "name": "璋冪敤鍦板潃",
- "inputType": "input",
- "code": "serviceUrl",
- "whereCondition": "like"
+ "name": "璐圭敤绫诲瀷",
+ "inputType": "select",
+ "selectValue":"888800010001,888800010002,888800010003,888800010004,888800010005,888800010007",
+ "selectValueName":"鐗╀笟璐�,鍦颁笂鍑哄敭杞︿綅璐�,鍦颁笅鍑哄敭杞︿綅璐�,鍦颁笂鍑虹杞︿綅璐�,鍦颁笅鍑虹杞︿綅璐�,涓存椂杞﹁垂鐢�",
+ "code": "feeTypeCd",
+ "whereCondition": "equal"
}
],
"columns":[
{
- "code":"name",
- "cnCode":"鏈嶅姟鍚嶇О",
- "desc":"蹇呭~锛岃濉啓鏈嶅姟鍚嶇О",
+ "code":"feeTypeCd",
+ "cnCode":"璐圭敤绫诲瀷",
+ "desc":"蹇呭~锛岃閫夋嫨璐圭敤绫诲瀷",
"required":true,
"hasDefaultValue":false,
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"鏈嶅姟鍚嶇О涓嶈兘瓒呰繃50",
+ "inputType": "select",
+ "selectValue":"888800010001,888800010002,888800010003,888800010004,888800010005,888800010007",
+ "selectValueName":"鐗╀笟璐�,鍦颁笂鍑哄敭杞︿綅璐�,鍦颁笅鍑哄敭杞︿綅璐�,鍦颁笂鍑虹杞︿綅璐�,鍦颁笅鍑虹杞︿綅璐�,涓存椂杞﹁垂鐢�",
+ "limit":"num",
+ "limitParam":"",
+ "limitErrInfo":"璐圭敤绫诲瀷鏍煎紡閿欒",
"show": true
},
{
- "code":"serviceCode",
- "cnCode":"鏈嶅姟缂栫爜",
- "desc":"蹇呭~锛岃濉啓鏈嶅姟缂栫爜濡� service.saveService",
+ "code": "feeName",
+ "cnCode":"鏀惰垂椤圭洰",
+ "desc":"蹇呭~锛岃濉啓鏀惰垂椤圭洰",
"required":true,
"hasDefaultValue":false,
- "inputType":"input",
+ "inputType": "input",
"limit":"maxin",
- "limitParam":"2,50",
- "limitErrInfo":"鏈嶅姟缂栫爜蹇呴』鍦�2鑷�50瀛楃涔嬮棿",
+ "limitParam":"1,100",
+ "limitErrInfo":"鏀惰垂椤圭洰涓嶈兘瓒呰繃100浣�",
"show": true
},
{
- "code":"businessTypeCd",
- "cnCode":"绉橀挜",
- "desc":"鍙~锛岃濉啓绉橀挜锛屽鏋滃~鍐欎簡闇�瑕佸姞瀵嗕紶杈�",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"API",
- "inputType":"none",
- "limit":"maxin",
- "limitParam":"2,4",
- "limitErrInfo":"涓氬姟绫诲瀷蹇呴』涓篈PI",
- "show": false
- },
-
- {
- "code":"seq",
- "cnCode":"搴忓垪",
- "desc":"蹇呭~锛岃濉啓搴忓垪",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"1",
- "inputType":"none",
- "limit":"maxLength",
- "limitParam":"1",
- "limitErrInfo":"搴忓垪鏍煎紡閿欒",
- "show": false
- },
- {
- "code":"messageQueueName",
- "cnCode":"娑堟伅闃熷垪",
- "desc":"鍙~锛岃濉啓娑堟伅闃熷垪锛岃鍗曞湪寮傛璋冪敤鏃朵娇鐢�",
- "required":false,
- "hasDefaultValue":false,
- "defaultValue":"",
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"娑堟伅闃熷垪涓嶈兘瓒呰繃50",
- "show": true
- },
- {
- "code":"isInstance",
- "cnCode":"鏄惁瀹炰緥",
- "desc":"鍙~锛岃濉啓瀹炰緥 Y 鎴朜",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"Y",
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"瀹炰緥涓嶈兘瓒呰繃50",
- "show": false
- }
- ,
-
- {
- "code":"url",
- "cnCode":"璋冪敤鍦板潃",
- "desc":"鍙~锛岃濉啓璋冪敤鍦板潃",
- "required":false,
- "hasDefaultValue":true,
- "defaultValue":"http://order-service/orderApi/service",
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"200",
- "limitErrInfo":"璋冪敤鍦板潃涓嶈兘瓒呰繃200",
- "show": true
- },
- {
- "code":"method",
- "cnCode":"璋冪敤鏂瑰紡",
- "desc":"蹇呭~锛岃濉啓璋冪敤鏂瑰紡",
+ "code":"feeFlag",
+ "cnCode":"璐圭敤鏍囪瘑",
+ "desc":"蹇呭~锛岃閫夋嫨璐圭敤鏍囪瘑",
"required":true,
"hasDefaultValue":false,
- "inputType":"select",
- "selectValue":"GET,POST",
- "selectValueName":"http get,http post",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"璋冪敤鏂瑰紡涓嶈兘瓒呰繃50",
+ "inputType": "select",
+ "selectValue":"1003006,2006012",
+ "selectValueName":"鍛ㄦ湡鎬ц垂鐢�,涓�娆℃�ц垂鐢�",
+ "limit":"num",
+ "limitParam":"",
+ "limitErrInfo":"璐圭敤绫诲瀷鏍煎紡閿欒",
"show": true
},
{
- "code":"timeout",
- "cnCode":"瓒呮椂鏃堕棿",
- "desc":"蹇呭~锛岃濉啓瓒呮椂鏃堕棿",
+ "code": "startTime",
+ "cnCode":"璁¤垂璧峰鏃堕棿",
+ "desc":"蹇呭~锛岃閫夋嫨璁¤垂璧峰鏃堕棿",
"required":true,
- "hasDefaultValue":true,
- "defaultValue":"60",
- "inputType":"input",
+ "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":"computingFormula",
+ "cnCode":"璁$畻鍏紡",
+ "desc":"蹇呭~锛岃濉啓闄勫姞璐圭敤",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType": "select",
+ "selectValue":"1001,2002",
+ "selectValueName":"闈㈢Н*鍗曚环+闄勫姞璐�,鍥哄畾璐圭敤",
"limit":"num",
"limitParam":"",
- "limitErrInfo":"瓒呮椂鏃堕棿蹇呴』涓烘暟瀛�",
+ "limitErrInfo":"璁$畻鍏紡鏍煎紡閿欒",
"show": false
},
{
- "code":"retryCount",
- "cnCode":"閲嶈瘯娆℃暟",
- "desc":"蹇呭~锛岃濉啓閲嶈瘯娆℃暟",
+ "code":"squarePrice",
+ "cnCode":"璁¤垂鍗曚环",
+ "desc":"蹇呭~锛岃濉啓璁¤垂鍗曚环",
"required":true,
- "hasDefaultValue":true,
- "defaultValue":"3",
- "inputType":"input",
- "limit":"num",
+ "hasDefaultValue":false,
+ "inputType": "input",
+ "limit":"money",
"limitParam":"",
- "limitErrInfo":"閲嶈瘯娆℃暟蹇呴』涓烘暟瀛�",
- "show": false
+ "limitErrInfo":"璁¤垂鍗曚环鏍煎紡閿欒",
+ "show": true
},
{
- "code":"provideAppId",
- "cnCode":"鎻愪緵鏈嶅姟",
- "desc":"蹇呭~锛岃濉啓鎻愪緵鏈嶅姟",
+ "code":"additionalAmount",
+ "cnCode":"闄勫姞璐圭敤",
+ "desc":"蹇呭~锛岃濉啓闄勫姞璐圭敤",
"required":true,
- "hasDefaultValue":true,
- "defaultValue":"8000418002",
- "inputType":"none",
- "limit":"num",
+ "hasDefaultValue":false,
+ "inputType": "input",
+ "limit":"money",
"limitParam":"",
- "limitErrInfo":"閲嶈瘯娆℃暟蹇呴』涓烘暟瀛�",
- "show": false
+ "limitErrInfo":"闄勫姞璐圭敤鏍煎紡閿欒",
+ "show": true
}
- ],
- "sql": ""
+ ]
}
\ No newline at end of file
--
Gitblit v1.8.0