Ver código fonte

优化代码

java110 5 anos atrás
pai
commit
3e1edc3a2c

+ 64 - 66
java110-generator/src/main/resources/web/template_1.json

@@ -1,134 +1,132 @@
 {
-  "templateName":"租聘设置",
+  "templateName":"房源",
   "directories": "admin",
-  "templateCode":"rentingConfig",
-  "templateKey":"rentingConfigId",
-  "templateKeyName":"配置ID",
-  "searchCode": "rentingConfigId",
-  "searchName": "配置ID",
+  "templateCode":"rentingPool",
+  "templateKey":"rentingId",
+  "templateKeyName":"租房ID",
+  "searchCode": "rentingId",
+  "searchName": "租房ID",
   "conditions": [
     {
-      "name": "配置ID",
+      "name": "租房名称",
       "inputType": "input",
-      "code": "rentingConfigId",
+      "code": "rentingTitle",
       "whereCondition": "equal"
     },
     {
-      "name": "租聘类型",
+      "name": "预付类型",
       "inputType": "select",
-      "selectValue":"3344,4455",
-      "selectValueName":"整租,合租",
-      "code": "rentingType",
+      "selectValue":"1001,2002,3003",
+      "selectValueName":"押一付一,押一付三,押一付六",
+      "code": "paymentType",
       "whereCondition": "equal"
     },
     {
-      "name": "收费公式",
-      "inputType": "select",
-      "selectValue":"1001,2002",
-      "selectValueName":"固定值,每月租金比例",
-      "code": "rentingFormula",
+      "name": "业主名称",
+      "inputType": "input",
+      "code": "ownerName",
       "whereCondition": "equal"
     }
   ],
   "columns":[
     {
-      "code":"rentingType",
-      "cnCode":"租聘类型",
-      "desc":"必填,请填写",
+      "code": "rentingTitle",
+      "cnCode":"出租标题",
+      "desc":"必填,请填写出租标题",
       "required":true,
       "hasDefaultValue":false,
-      "inputType": "select",
-      "selectValue":"3344,4455",
-      "selectValueName":"整租,合租",
+      "inputType": "input",
       "limit":"maxLength",
-      "limitParam":"200",
-      "limitErrInfo":"值超过200位",
+      "limitParam":"100",
+      "limitErrInfo":"标题太长 超过100位",
       "show": true
     },
     {
-      "code":"rentingFormula",
-      "cnCode":"收费公式",
-      "desc":"必填,请选择算费公式",
+      "code": "price",
+      "cnCode":"租金",
+      "desc":"必填,请填写出租金",
       "required":true,
       "hasDefaultValue":false,
-      "inputType": "select",
-      "selectValue":"1001,2002",
-      "selectValueName":"固定值,每月租金比例",
-      "limit":"num",
+      "inputType": "input",
+      "limit":"money",
       "limitParam":"",
-      "limitErrInfo":"显示格式错误",
+      "limitErrInfo":"格式错误",
       "show": true
     },
     {
-      "code": "servicePrice",
-      "cnCode":"服务费",
-      "desc":"必填,请填写服务费",
+      "inputType": "select",
+      "selectValue":"1001,2002,3003",
+      "selectValueName":"押一付一,押一付三,押一付六",
+      "code": "paymentType",
+      "cnCode":"预付类型",
+      "desc":"必填,请填写值",
       "required":true,
       "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"money",
+      "limit":"num",
       "limitParam":"",
       "limitErrInfo":"格式错误",
       "show": true
     },
     {
-      "code": "serviceOwnerRate",
-      "cnCode":"业主收费比率",
-      "desc":"必填,请填写业主收费比率",
+      "code": "checkInDate",
+      "cnCode":"入住时间",
+      "desc":"必填,请填写入住时间",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"money",
+      "limit":"date",
       "limitParam":"",
       "limitErrInfo":"格式错误",
       "show": true
     },
     {
-      "code": "serviceTenantRate",
-      "cnCode":"租客收费比率",
-      "desc":"必填,请填写租客收费比率",
+      "code":"rentingConfigId",
+      "cnCode":"出租配置",
+      "desc":"必填,请选择出租配置",
       "required":true,
       "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"money",
+      "inputType": "select",
+      "selectValue":"1001,2002",
+      "selectValueName":"出租配置,每月租金比例",
+      "limit":"num",
       "limitParam":"",
-      "limitErrInfo":"格式错误",
+      "limitErrInfo":"显示格式错误",
       "show": true
     },
     {
-      "code": "adminSeparateRate",
-      "cnCode":"运营分账比率",
-      "desc":"必填,请填写运营分账比率",
-      "required":true,
+      "code": "rentingDesc",
+      "cnCode":"备注",
+      "desc":"选填,请填写租客收费比率",
+      "required":false,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"money",
-      "limitParam":"",
-      "limitErrInfo":"格式错误",
+      "limit":"maxLength",
+      "limitParam":"500",
+      "limitErrInfo":"备注格式错误",
       "show": true
     },
     {
-      "code": "proxySeparateRate",
-      "cnCode":"代理商分账比率",
-      "desc":"必填,请填写代理商分账比率",
+      "code": "ownerName",
+      "cnCode":"业主名称",
+      "desc":"必填,请填写业主名称",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"money",
-      "limitParam":"",
-      "limitErrInfo":"格式错误",
+      "limit":"maxLength",
+      "limitParam":"100",
+      "limitErrInfo":"业主名称太长",
       "show": true
     },
     {
-      "code": "propertySeparateRate",
-      "cnCode":"物业分账比率",
-      "desc":"必填,请填写物业分账比率",
+      "code": "ownerTel",
+      "cnCode":"业主电话",
+      "desc":"必填,请填写业主电话",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"money",
+      "limit":"phone",
       "limitParam":"",
-      "limitErrInfo":"格式错误",
+      "limitErrInfo":"业主电话格式错误",
       "show": true
     }
   ]

+ 135 - 0
java110-generator/src/main/resources/web/template_rentingConfig.json

@@ -0,0 +1,135 @@
+{
+  "templateName":"租聘设置",
+  "directories": "admin",
+  "templateCode":"rentingConfig",
+  "templateKey":"rentingConfigId",
+  "templateKeyName":"配置ID",
+  "searchCode": "rentingConfigId",
+  "searchName": "配置ID",
+  "conditions": [
+    {
+      "name": "配置ID",
+      "inputType": "input",
+      "code": "rentingConfigId",
+      "whereCondition": "equal"
+    },
+    {
+      "name": "租聘类型",
+      "inputType": "select",
+      "selectValue":"3344,4455",
+      "selectValueName":"整租,合租",
+      "code": "rentingType",
+      "whereCondition": "equal"
+    },
+    {
+      "name": "收费公式",
+      "inputType": "select",
+      "selectValue":"1001,2002",
+      "selectValueName":"固定值,每月租金比例",
+      "code": "rentingFormula",
+      "whereCondition": "equal"
+    }
+  ],
+  "columns":[
+    {
+      "code":"rentingType",
+      "cnCode":"租聘类型",
+      "desc":"必填,请填写值",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "select",
+      "selectValue":"3344,4455",
+      "selectValueName":"整租,合租",
+      "limit":"maxLength",
+      "limitParam":"200",
+      "limitErrInfo":"值超过200位",
+      "show": true
+    },
+    {
+      "code":"rentingFormula",
+      "cnCode":"收费公式",
+      "desc":"必填,请选择算费公式",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "select",
+      "selectValue":"1001,2002",
+      "selectValueName":"固定值,每月租金比例",
+      "limit":"num",
+      "limitParam":"",
+      "limitErrInfo":"显示格式错误",
+      "show": true
+    },
+    {
+      "code": "servicePrice",
+      "cnCode":"服务费",
+      "desc":"必填,请填写服务费",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"money",
+      "limitParam":"",
+      "limitErrInfo":"格式错误",
+      "show": true
+    },
+    {
+      "code": "serviceOwnerRate",
+      "cnCode":"业主收费比率",
+      "desc":"必填,请填写业主收费比率",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"money",
+      "limitParam":"",
+      "limitErrInfo":"格式错误",
+      "show": true
+    },
+    {
+      "code": "serviceTenantRate",
+      "cnCode":"租客收费比率",
+      "desc":"必填,请填写租客收费比率",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"money",
+      "limitParam":"",
+      "limitErrInfo":"格式错误",
+      "show": true
+    },
+    {
+      "code": "adminSeparateRate",
+      "cnCode":"运营分账比率",
+      "desc":"必填,请填写运营分账比率",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"money",
+      "limitParam":"",
+      "limitErrInfo":"格式错误",
+      "show": true
+    },
+    {
+      "code": "proxySeparateRate",
+      "cnCode":"代理商分账比率",
+      "desc":"必填,请填写代理商分账比率",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"money",
+      "limitParam":"",
+      "limitErrInfo":"格式错误",
+      "show": true
+    },
+    {
+      "code": "propertySeparateRate",
+      "cnCode":"物业分账比率",
+      "desc":"必填,请填写物业分账比率",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"money",
+      "limitParam":"",
+      "limitErrInfo":"格式错误",
+      "show": true
+    }
+  ]
+}