mrzcc
2020-02-10 c526cb5d9ca7cd4dc39e48da366904bd3fe16a0d
java110-code-generator/src/main/resources/web/template_1.json
@@ -1,111 +1,135 @@
{
  "templateName":"活动",
  "templateCode":"activities",
  "templateKey":"activitiesId",
  "templateKeyName":"活动ID",
  "searchCode": "title",
  "searchName": "活动标题",
  "templateName":"费用项",
  "templateCode":"feeConfig",
  "templateKey":"configId",
  "templateKeyName":"费用项ID",
  "searchCode": "feeName",
  "searchName": "费用项目",
  "conditions": [
    {
      "name": "活动标题",
      "inputType": "input",
      "code": "title",
      "whereCondition": "equal"
    },
    {
      "name": "活动类型",
      "name": "费用标识",
      "inputType": "select",
      "selectValue":"10001,10002",
      "selectValueName":"小区文化,其他",
      "code": "typeCd",
      "selectValue":"1003006,2006012",
      "selectValueName":"周期性费用,一次性费用",
      "code": "feeFlag",
      "whereCondition": "equal"
    },
    {
      "name": "员工名称",
      "name": "费用项目",
      "inputType": "input",
      "code": "userName",
      "code": "feeName",
      "whereCondition": "equal"
    },
    {
      "name": "活动ID",
      "inputType": "input",
      "code": "activitiesId",
      "name": "费用类型",
      "inputType": "select",
      "selectValue":"888800010001,888800010002,888800010003,888800010004,888800010005,888800010007",
      "selectValueName":"物业费,地上出售车位费,地下出售车位费,地上出租车位费,地下出租车位费,临时车费用",
      "code": "feeTypeCd",
      "whereCondition": "equal"
    }
  ],
  "columns":[
    {
      "code":"title",
      "cnCode":"活动标题",
      "desc":"必填,请填写业活动标题",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxin",
      "limitParam":"1,200",
      "limitErrInfo":"活动标题不能超过200位",
      "show": true
    },
    {
      "code": "typeCd",
      "cnCode":"活动类型",
      "desc":"必填,请选择活动类型",
      "code":"feeTypeCd",
      "cnCode":"费用类型",
      "desc":"必填,请选择费用类型",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "select",
      "selectValue":"10001,10002",
      "selectValueName":"小区文化,其他",
      "selectValue":"888800010001,888800010002,888800010003,888800010004,888800010005,888800010007",
      "selectValueName":"物业费,地上出售车位费,地下出售车位费,地上出租车位费,地下出租车位费,临时车费用",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"活动类型格式错误",
      "limitErrInfo":"费用类型格式错误",
      "show": true
    },
    {
      "code": "headerImg",
      "cnCode":"头部照片",
      "desc":"必填,请选择头部照片",
      "code": "feeName",
      "cnCode":"收费项目",
      "desc":"必填,请填写收费项目",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"maxin",
      "limitParam":"1,200",
      "limitErrInfo":"头部照片格式错误",
      "limitParam":"1,100",
      "limitErrInfo":"收费项目不能超过100位",
      "show": true
    },
    {
      "code": "context",
      "cnCode":"活动内容",
      "desc":"必填,请填写活动内容",
      "code":"feeFlag",
      "cnCode":"费用标识",
      "desc":"必填,请选择费用标识",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"maxin",
      "limitParam":"1,4000",
      "limitErrInfo":"活动内容太长",
      "inputType": "select",
      "selectValue":"1003006,2006012",
      "selectValueName":"周期性费用,一次性费用",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"费用类型格式错误",
      "show": true
    },
    {
      "code": "startTime",
      "cnCode":"开始时间",
      "desc":"必填,请选择开始时间",
      "cnCode":"计费起始时间",
      "desc":"必填,请选择计费起始时间",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"date",
      "limit":"dateTime",
      "limitParam":"",
      "limitErrInfo":"开始时间格式错误",
      "limitErrInfo":"计费起始时间不是有效的时间格式",
      "show": true
    },
    {
      "code": "endTime",
      "cnCode":"结束时间",
      "desc":"必填,请选择结束时间",
      "cnCode":"计费终止时间",
      "desc":"必填,请选择计费终止时间",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"date",
      "limit":"dateTime",
      "limitParam":"",
      "limitErrInfo":"结束时间格式错误",
      "limitErrInfo":"计费终止时间不是有效的时间格式",
      "show": true
    },
    {
      "code":"computingFormula",
      "cnCode":"计算公式",
      "desc":"必填,请填写附加费用",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "select",
      "selectValue":"1001,2002",
      "selectValueName":"面积*单价+附加费,固定费用",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"计算公式格式错误",
      "show": false
    },
    {
      "code":"squarePrice",
      "cnCode":"计费单价",
      "desc":"必填,请填写计费单价",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"money",
      "limitParam":"",
      "limitErrInfo":"计费单价格式错误",
      "show": true
    },
    {
      "code":"additionalAmount",
      "cnCode":"附加费用",
      "desc":"必填,请填写附加费用",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"money",
      "limitParam":"",
      "limitErrInfo":"附加费用格式错误",
      "show": true
    }
  ]