java110
2020-04-25 d23016be1b3c02896fdfb7a57ed2b8aee70fae30
java110-code-generator/src/main/resources/web/template_1.json
@@ -1,154 +1,128 @@
{
  "templateName":"业主报修",
  "templateCode":"serviceProvide",
  "templateKey":"id",
  "templateKeyName":"提供ID",
  "searchCode": "name",
  "searchName": "服务名称",
  "templateName":"旧货",
  "templateCode":"junkRequirement",
  "templateKey":"junkRequirementId",
  "templateKeyName":"旧货编码",
  "searchCode": "junkRequirementId",
  "searchName": "旧货编码",
  "conditions": [
    {
      "name": "提供ID",
      "inputType": "input",
      "code": "id",
      "whereCondition": "equal"
    },
    {
      "name": "服务编码",
      "inputType": "input",
      "code": "serviceCode",
      "whereCondition": "equal"
    },
    {
      "name": "服务名称",
      "inputType": "input",
      "code": "name",
      "whereCondition": "equal"
    },
    {
      "name": "实现方式",
      "name": "类别",
      "inputType": "select",
      "code": "queryModel",
      "selectValue":"1,3,2",
      "selectValueName":"sql方式,java方式,存储过程方式",
      "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",
      "inputType": "select",
      "selectValue":"10001,10002",
      "selectValueName":"家具,电器",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"任务编码格式错误",
      "show": true
    },
    {
      "code": "inspectionPlanId",
      "cnCode":"巡检计划",
      "desc":"必填,请填写收费项目",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"maxin",
      "limitParam":"2,50",
      "limitErrInfo":"服务名称必须在2至50字符之间",
      "limitParam":"1,100",
      "limitErrInfo":"收费项目不能超过100位",
      "show": true
    },
    {
      "code":"serviceCode",
      "cnCode":"服务编码",
      "desc":"必填,请填写服务编码",
      "code":"context",
      "cnCode":"内容",
      "desc":"必填,请选择内容",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxin",
      "limitParam":"2,50",
      "limitErrInfo":"服务编码必须在2至50字符之间",
      "show": true
    },
    {
      "code":"params",
      "cnCode":"参数",
      "desc":"必填,请填写参数",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxLength",
      "limitParam":"500",
      "limitErrInfo":"参数内容不能超过200",
      "show": true
    },
    {
      "code":"queryModel",
      "cnCode":"实现方式",
      "desc":"必填,请选择是否显示菜单",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"select",
      "selectValue":"1,3,2",
      "selectValueName":"sql方式,java方式,存储过程方式",
      "limit":"maxin",
      "limitParam":"1,12",
      "limitErrInfo":"实现方式错误",
      "show": true
    },
    {
      "code":"sql",
      "cnCode":"sql",
      "desc":"可填,请填写sql",
      "required":false,
      "hasDefaultValue":false,
      "defaultValue":"",
      "inputType":"textarea",
      "limit":"maxLength",
      "limitParam":"2000",
      "limitErrInfo":"sql不能超过2000",
      "show": false
    },
    {
      "code":"template",
      "cnCode":"输出模板",
      "desc":"可填,请填写输出模板",
      "required":false,
      "hasDefaultValue":false,
      "defaultValue":"",
      "inputType":"textarea",
      "limit":"maxLength",
      "limitParam":"2000",
      "limitErrInfo":"输出模板不能超过2000",
      "show": false
    },
    {
      "code":"proc",
      "cnCode":"存储过程",
      "desc":"可填,请填写存储过程",
      "required":false,
      "hasDefaultValue":false,
      "defaultValue":"",
      "inputType":"textarea",
      "inputType": "input",
      "limit":"maxLength",
      "limitParam":"200",
      "limitErrInfo":"存储过程不能超过200",
      "limitErrInfo":"内容不能超过200个字符",
      "show": false
    },
    {
      "code":"javaScript",
      "cnCode":"java",
      "desc":"可填,请填写java语句",
      "required":false,
      "code": "referencePrice",
      "cnCode":"参考价格",
      "desc":"必填,请填写参考价格",
      "required":true,
      "hasDefaultValue":false,
      "defaultValue":"",
      "inputType":"textarea",
      "limit":"maxLength",
      "limitParam":"2000",
      "limitErrInfo":"java不能超过2000",
      "show": false
      "inputType": "input",
      "limit":"money",
      "limitParam":"",
      "limitErrInfo":"参考价格格式错误",
      "show": true
    },
    {
      "code":"remark",
      "cnCode":"描述",
      "desc":"可填,请填写描述",
      "required":false,
      "code": "publishUserName",
      "cnCode":"发布人",
      "desc":"必填,发布人不能为空",
      "required":true,
      "hasDefaultValue":false,
      "defaultValue":"",
      "inputType":"textarea",
      "inputType": "input",
      "limit":"maxLength",
      "limitParam":"200",
      "limitErrInfo":"备注内容不能超过200",
      "show": false
      "limitParam":"50",
      "limitErrInfo":"发布人不能超过50",
      "show": true
    },
    {
      "code":"publishUserLink",
      "cnCode":"联系方式",
      "desc":"必填,请填写联系方式",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "input",
      "limit":"phone",
      "limitParam":"",
      "limitErrInfo":"联系方式不是有效的电话格式",
      "show": true
    },
    {
      "code":"state",
      "cnCode":"状态",
      "desc":"必填,请填写状态",
      "required":true,
      "hasDefaultValue":false,
      "inputType": "select",
      "selectValue":"12001,13001,14001,15001",
      "selectValueName":"未审核,审核通过,审核失败,处理完成",
      "limit":"num",
      "limitParam":"",
      "limitErrInfo":"状态格式错误",
      "show": true
    }
  ]
}