wuxw
2020-01-14 69e2baf5518079bfc16cfadc2fb29842fb3de85d
java110-code-generator/src/main/resources/web/template_1.json
@@ -1,56 +1,112 @@
{
  "templateName":"公告",
  "templateCode":"notice",
  "templateKey":"noticeId",
  "templateKeyName":"公告ID",
  "templateName":"活动",
  "templateCode":"activities",
  "templateKey":"activitiesId",
  "templateKeyName":"活动ID",
  "searchCode": "title",
  "searchName": "活动标题",
  "conditions": [
    {
      "name": "活动标题",
      "inputType": "input",
      "code": "title",
      "whereCondition": "equal"
    },
    {
      "name": "活动类型",
      "inputType": "select",
      "selectValue":"10001,10002",
      "selectValueName":"小区文化,其他",
      "code": "typeCd",
      "whereCondition": "equal"
    },
    {
      "name": "员工名称",
      "inputType": "input",
      "code": "userName",
      "whereCondition": "equal"
    },
    {
      "name": "活动ID",
      "inputType": "input",
      "code": "activitiesId",
      "whereCondition": "equal"
    }
  ],
  "columns":[
    {
      "code":"title",
      "cnCode":"标题",
      "desc":"必填,请填写标题",
      "cnCode":"活动标题",
      "desc":"必填,请填写业活动标题",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxin",
      "limitParam":"4,100",
      "limitErrInfo":"小区名称必须在4至100字符之间"
      "limitParam":"1,200",
      "limitErrInfo":"活动标题不能超过200位",
      "show": true
    },
    {
      "code":"noticeTypeCd",
      "cnCode":"公告类型",
      "desc":"必填,请选择公告类型",
      "code": "typeCd",
      "cnCode":"活动类型",
      "desc":"必填,请选择活动类型",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"select",
      "selectValue":"1000,1001,1002",
      "selectValueName":"业主通知,员工通知,小区通知",
      "limit":"maxLength",
      "limitParam":"200",
      "limitErrInfo":"公告类型错误"
      "inputType": "select",
      "selectValue":"10001,10002",
      "selectValueName":"小区文化,其他",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"活动类型格式错误",
      "show": true
    },
    {
      "code":"context",
      "cnCode":"公告内容",
      "desc":"必填,请填写公告内容",
      "code": "headerImg",
      "cnCode":"头部照片",
      "desc":"必填,请选择头部照片",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxLength",
      "limitParam":"500",
      "limitErrInfo":"公告内容不能超过500个字"
      "inputType": "input",
      "limit":"maxin",
      "limitParam":"1,200",
      "limitErrInfo":"头部照片格式错误",
      "show": true
    },
    {
      "code":"startTime",
      "code": "context",
      "cnCode":"活动内容",
      "desc":"必填,请填写活动内容",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"maxin",
      "limitParam":"1,4000",
      "limitErrInfo":"活动内容太长",
      "show": true
    },
    {
      "code": "startTime",
      "cnCode":"开始时间",
      "desc":"必选,请填写开始时间 2019-01-02",
      "desc":"必填,请选择开始时间",
      "required":true,
      "hasDefaultValue":false,
      "defaultValue":"",
      "inputType":"input",
      "inputType": "input",
      "limit":"date",
      "limitParam":"",
      "limitErrInfo":"开始时间不是有效的日志"
      "limitErrInfo":"开始时间格式错误",
      "show": true
    },
    {
      "code": "endTime",
      "cnCode":"结束时间",
      "desc":"必填,请选择结束时间",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"date",
      "limitParam":"",
      "limitErrInfo":"结束时间格式错误",
      "show": true
    }
  ]
}