java110
2020-04-25 2646433c86f6ca21839d12b6e43e3b6380438d3d
java110-code-generator/src/main/resources/web/template_1.json
@@ -1,79 +1,128 @@
{
  "templateName":"小区",
  "templateCode":"community",
  "templateKey":"communityId",
  "templateKeyName":"小区ID",
  "templateName":"旧货",
  "templateCode":"junkRequirement",
  "templateKey":"junkRequirementId",
  "templateKeyName":"旧货编码",
  "searchCode": "junkRequirementId",
  "searchName": "旧货编码",
  "conditions": [
    {
      "name": "类别",
      "inputType": "select",
      "selectValue":"10001,10002",
      "selectValueName":"家具,电器",
      "code": "classification",
      "whereCondition": "equal"
    },
    {
      "name": "发布人",
      "inputType": "input",
      "code": "publishUserName",
      "whereCondition": "equal"
    },
    {
      "name": "状态",
      "inputType": "select",
      "selectValue":"12001,13001,14001,15001",
      "selectValueName":"未审核,审核通过,审核失败,处理完成",
      "code": "publishUserLink",
      "whereCondition": "equal"
    },
    {
      "name": "发布电话",
      "inputType": "input",
      "code": "publishUserLink",
      "whereCondition": "equal"
    }
  ],
  "columns":[
    {
      "code":"name",
      "cnCode":"小区名称",
      "desc":"必填,请填写小区名称",
      "code":"classification",
      "cnCode":"类别",
      "desc":"必填,请选择类别",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxin",
      "limitParam":"10,20",
      "limitErrInfo":"小区名称必须在10至20字符之间"
      "inputType": "select",
      "selectValue":"10001,10002",
      "selectValueName":"家具,电器",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"任务编码格式错误",
      "show": true
    },
    {
      "code":"address",
      "cnCode":"小区地址",
      "desc":"必填,请填写小区地址",
      "code": "inspectionPlanId",
      "cnCode":"巡检计划",
      "desc":"必填,请填写收费项目",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "inputType": "input",
      "limit":"maxin",
      "limitParam":"1,100",
      "limitErrInfo":"收费项目不能超过100位",
      "show": true
    },
    {
      "code":"context",
      "cnCode":"内容",
      "desc":"必填,请选择内容",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"maxLength",
      "limitParam":"200",
      "limitErrInfo":"小区地址不能大于200个字符"
      "limitErrInfo":"内容不能超过200个字符",
      "show": false
    },
    {
      "code":"nearbyLandmarks",
      "cnCode":"附近地标",
      "desc":"必填,请填写小区附近地标",
      "code": "referencePrice",
      "cnCode":"参考价格",
      "desc":"必填,请填写参考价格",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxin",
      "inputType": "input",
      "limit":"money",
      "limitParam":"",
      "limitErrInfo":"参考价格格式错误",
      "show": true
    },
    {
      "code": "publishUserName",
      "cnCode":"发布人",
      "desc":"必填,发布人不能为空",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"maxLength",
      "limitParam":"50",
      "limitErrInfo":"小区附近地标不能大于50个字符"
      "limitErrInfo":"发布人不能超过50",
      "show": true
    },
    {
      "code":"cityCode",
      "cnCode":"城市编码",
      "desc":"",
      "required":false,
      "hasDefaultValue":true,
      "defaultValue":"0971",
      "inputType":"none",
      "limit":"maxin",
      "limitParam":"12",
      "limitErrInfo":"小区城市编码不能大于4个字符"
      "code":"publishUserLink",
      "cnCode":"联系方式",
      "desc":"必填,请填写联系方式",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"phone",
      "limitParam":"",
      "limitErrInfo":"联系方式不是有效的电话格式",
      "show": true
    },
    {
      "code":"mapX",
      "cnCode":"小区维度",
      "desc":"",
      "required":false,
      "hasDefaultValue":true,
      "defaultValue":"101.33",
      "inputType":"none",
      "limit":"maxin",
      "limitParam":"20",
      "limitErrInfo":"小区城市编码不能大于4个字符"
    },
    {
      "code":"mapY",
      "cnCode":"小区经度",
      "desc":"",
      "required":false,
      "hasDefaultValue":true,
      "defaultValue":"101.33",
      "inputType":"none",
      "limit":"maxin",
      "limitParam":"20",
      "limitErrInfo":"小区城市编码不能大于4个字符"
      "code":"state",
      "cnCode":"状态",
      "desc":"必填,请填写状态",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "select",
      "selectValue":"12001,13001,14001,15001",
      "selectValueName":"未审核,审核通过,审核失败,处理完成",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"状态格式错误",
      "show": true
    }
  ]
}