MapperDim/basis/mapper_dim_sys-state.json

mapper_{mkey}sql_dimdata.json


{
  "dimDatas": {
    "sysState": {
      "dataFromType": "ConfigFile",
      "allSql": "sys-state",
      "name": "系统状态"
    }
  }
}

mapper_{mkey}sql_columns.json


{
  "columns": {
    "isEnabled": {
      "extendAlias": "",
      "filter": {
        "method": "eq"
      },
      "editPropertie": {
        "showMethodOut": "kv",
        "showMethod": "text",
        "type": null,
        "format": null,
        "defaultValue": 0
      },
      "pagePropertie": {
        "showMethodOut": "kv",
        "showMethod": "text",
        "type": null,
        "format": null,
        "defaultValue": null
      },
      "dimJoin": {
        "fromDimField": "sysState",
        "allFilter": " type=='merge'"
      }
    }
  }
}

显示结果 isEnabled 节点


{
    "data": [
        {
            "userId": "bt-deve-b0200-1a08f46d-a736-4155",
            "nikeName": "g",
            "realName": "陈x",
            "headIcon": "http://localhost:58582/filelibary/bt/image/20200925/bt-deve-bt-20200-1611fd81-6ad8-4be9_show.jpg",
            "mergeUserId": "bt-deve-bt-20200-4dec924b-0e98-4a8b",
            "diffTableNo": 0,
            "isEnabled": {
                "name": "通过",
                "value": 1
            },
            "pushName": "陈x",
        }
    ],
    "code": "0",
    "retCode": "0",
    "success": true
}
文档更新时间: 2021-12-06 21:26   作者:admin