1、接口请求格式

2、configfile方式,数据源 MapperDim/{ownerId}/mapper_dim_{allSql}.json

{
  "success": true,
  "data": [
    {
      "name": "医生",
      "value": "doctor",
      "type": "find-resource-type"
    },
    {
      "name": "其它",
      "value": "else",
      "type": "find-resource-type"
    }
  ]
}

3、columns里面配置 Mapper/{ownerId}/mapper_{mkey}sql_columns.json

{
  "columns": {
    "resType": {
      "editPropertie": {
        "showMethodOut": "kv",
        "showMethod": "text"
      },
      "pagePropertie": {
        "showMethodOut": "kv",
        "showMethod": "text",
        "defaultValue": "doctor"
      },
      "dimJoin": {
        "fromDimField": "findResourceType"
      }
    }
  }
}

4、dimdata配置字典源 Mapper/{ownerId}/mapper_{mkey}sql_dimdata.json

{
  "dimDatas": {
    "findResourceType": {
      //医疗资源类别
      "dataFromType": "ConfigFile",
      "allSql": "find-resource-type",
      "name": "医疗资源类别",
      "fromExtend": false
    }
  }
}

文档更新时间: 2021-07-28 08:00   作者:admin