wuxw
2019-11-02 efa63bc50db3fa487ce255fd4020c49960388c6b
java110-code-generator/src/main/resources/relationship/template_1.json
@@ -1,25 +1,25 @@
{
  "templateName":"添加业主",
  "templateCode":"addOwner",
  "templateKey":"ownerId",
  "templateKeyName":"业主ID",
  "package": "ownerPackage",
  "successUrl": "/flow/ownerFlow",
  "templateName":"登记投诉建议",
  "templateCode":"addComplaintStep",
  "templateKey":"complaintId",
  "templateKeyName":"投诉ID",
  "package": "complaintPackage",
  "successUrl": "/flow/complaintFlow",
  "needAffirm": false,
  "flows":[
    {
      "index": 0,
      "code":"floor",
      "code":"viewFloorInfo",
      "flowKey": "floorId",
      "cnCode":"选择楼栋",
      "vcName":"viewFloorInfo",
      "businessName": "businessFloor",
      "businessType": "BUSINESS_TYPE_SAVE_FLOOR_INFO",
      "businessType": "BUSINESS_TYPE_SAVE_FlOOR_INFO",
      "existsComponent": true
    },
    {
      "index": 1,
      "code":"room",
      "code":"sellRoomSelectRoom",
      "flowKey": "roomId",
      "cnCode":"选择房屋",
      "vcName":"sellRoomSelectRoom",
@@ -29,87 +29,72 @@
    },
    {
      "index": 2,
      "code":"owner",
      "flowKey": "ownerId",
      "cnCode":"填写业主信息",
      "vcName":"addOwnerView",
      "businessName": "businessOwner",
      "businessType": "BUSINESS_TYPE_SAVE_OWNER_INFO",
      "code":"addComplain",
      "flowKey": "complainId",
      "cnCode":"投诉建议",
      "vcName":"addComplain",
      "businessName": "businessComplain",
      "businessType": "BUSINESS_TYPE_SAVE_COMPLAIN_INFO",
      "existsComponent": false
    }
  ],
  "components": {
      "addOwnerView": {
        "templateName":"添加业主",
        "templateCode":"addOwnerView",
        "package": "ownerPackage",
        "columns":[
          {
            "code":"name",
            "cnCode":"名称",
            "desc":"必填,名称不能为空",
            "required":true,
            "hasDefaultValue":false,
            "inputType":"input",
            "limit":"maxin",
            "limitParam":"2,10",
            "limitErrInfo":"名称长度必须在2位至10位",
            "show": true
          },
          {
            "code":"sex",
            "cnCode":"性别",
            "desc":"必填,请选择性别",
            "required":true,
            "hasDefaultValue":false,
            "inputType":"select",
            "selectValue":"1,0",
            "selectValueName":"男,女",
            "limit":"num",
            "limitParam":"",
            "limitErrInfo":"性别不能为空",
            "show": true
          },
          {
            "code":"age",
            "cnCode":"年龄",
            "desc":"必填,请填写年龄",
            "required":true,
            "hasDefaultValue":false,
            "defaultValue":"",
            "inputType":"input",
            "limit":"num",
            "limitParam":"",
            "limitErrInfo":"年龄不是有效的数字",
            "show": false
          },
          {
            "code":"link",
            "cnCode":"手机",
            "desc":"必填,请填写联系方式",
            "required":false,
            "hasDefaultValue":false,
            "defaultValue":"",
            "inputType":"textarea",
            "limit":"maxLength",
            "limitParam":"2000",
            "limitErrInfo":"输出模板不能超过2000",
            "show": false
          },
          {
            "code":"remark",
            "cnCode":"备注",
            "desc":"可填,请填写备注",
            "required":false,
            "hasDefaultValue":false,
            "defaultValue":"",
            "inputType":"textarea",
            "limit":"maxLength",
            "limitParam":"200",
            "limitErrInfo":"备注长度不能超过200位",
            "show": false
          }
        ]
      }
    "addComplain": {
      "templateName": "投诉建议",
      "templateCode": "addComplain",
      "package": "complaintPackage",
      "columns": [
        {
          "code": "typeCd",
          "cnCode":"投诉类型",
          "desc":"必填,请选择投诉类型",
          "required":true,
          "hasDefaultValue":false,
          "inputType": "select",
          "selectValue":"809001,809002",
          "selectValueName":"投诉,建议",
          "limit":"num",
          "limitParam":"",
          "limitErrInfo":"投诉类型格式错误",
          "show": true
        },
        {
          "code":"complaintName",
          "cnCode":"投诉人",
          "desc":"必填,请填写投诉人",
          "required":true,
          "hasDefaultValue":false,
          "inputType":"input",
          "limit":"maxLength",
          "limitParam":"200",
          "limitErrInfo":"投诉人不能大于200位",
          "show": false
        },
        {
          "code":"tel",
          "cnCode":"投诉电话",
          "desc":"必填,请填写投诉电话",
          "required":true,
          "hasDefaultValue":false,
          "inputType":"input",
          "limit":"phone",
          "limitParam":"",
          "limitErrInfo":"投诉电话格式错误",
          "show": true
        },
        {
          "code":"context",
          "cnCode":"投诉内容",
          "desc":"必填,请填写投诉内容",
          "required":true,
          "hasDefaultValue":false,
          "inputType":"textarea",
          "limit":"maxLength",
          "limitParam":"4000",
          "limitErrInfo":"投诉状态超过4000位",
          "show": false
        }
      ]
    }
  }
}