APIJSON icon indicating copy to clipboard operation
APIJSON copied to clipboard

join关联查询时如何将主表和附表的字段,集合到一个对象里返回

Open JackBlack666 opened this issue 3 years ago • 1 comments

环境信息

  • 系统:
  • JDK:
  • 数据库:
  • APIJSON:

问题描述

错误信息

JackBlack666 avatar Mar 16 '22 01:03 JackBlack666

@from + join https://github.com/Tencent/APIJSON/blob/master/Document.md#3.2

image

{
    "[]": {
        "Comment": {
            "@from@": {
                "from": "Comment",
                "join": "</User/id@",
                "Comment": {
                    "@column": "id:cid,userId,content"
                },
                "User": {
                    "id@": "/Comment/userId"
                }
            }
        }
    }
}

TommyLemon avatar Mar 20 '22 16:03 TommyLemon