{
  "data": {
    "debug": {
      "durationMs": 2,
      "extra": {
        "aggSql": "select null \"invoiceMonth\",\n       null \"amount\",\n       null \"bills\",\n       count(*) \"total\"\nfrom (select\tt1.InvoiceMonth \"invoiceMonth\",\tSUM(t1.Total) \"amount\",\tCOUNT(t1.InvoiceId) \"bills\"\tfrom TeachingInvoice t1\t where  1=1  and \tt1.InvoiceDate >=?  and \tt1.InvoiceDate <?  and \tt1.InvoiceDayOfMonth <=? \tgroup by t1.InvoiceMonth) tx",
        "params": [
          "2012-10-01 00:00:00",
          "2012-11-16 00:00:00",
          15
        ],
        "sql": "select\tt1.InvoiceMonth \"invoiceMonth\",\tSUM(t1.Total) \"amount\",\tCOUNT(t1.InvoiceId) \"bills\"\tfrom TeachingInvoice t1\t where  1=1  and \tt1.InvoiceDate >=?  and \tt1.InvoiceDate <?  and \tt1.InvoiceDayOfMonth <=? \tgroup by t1.InvoiceMonth order by t1.InvoiceMonth asc"
      },
      "normalized": {
        "groupBy": [
          {
            "field": "invoiceMonth"
          },
          {
            "agg": "SUM",
            "field": "amount"
          },
          {
            "agg": "COUNT",
            "field": "bills"
          }
        ],
        "orderBy": [
          {
            "dir": "asc",
            "field": "invoiceMonth",
            "nullFirst": false,
            "nullLast": false
          }
        ],
        "slice": [
          {
            "field": "invoiceDate",
            "op": "[)",
            "value": [
              "2012-10-01",
              "2012-11-16"
            ]
          },
          {
            "field": "invoiceDayOfMonth",
            "op": "<=",
            "value": 15
          }
        ]
      }
    },
    "hasNext": false,
    "items": [
      {
        "amount": 28.759999999999998,
        "bills": 3,
        "invoiceMonth": "2012-10"
      },
      {
        "amount": 23.759999999999998,
        "bills": 3,
        "invoiceMonth": "2012-11"
      }
    ],
    "pagination": {
      "hasMore": false,
      "limit": 5,
      "rangeDescription": "显示第 1-2 条",
      "returned": 2,
      "start": 0
    },
    "schema": {
      "columns": [
        {
          "dataType": "STRING",
          "name": "invoiceMonth",
          "title": "账单年月"
        },
        {
          "name": "amount"
        },
        {
          "name": "bills"
        }
      ],
      "summary": "按 账单年月 分组，统计 amount、bills，返回 2 条数据"
    },
    "total": 0
  },
  "diagnostics": {
    "attributes": {},
    "warnings": []
  },
  "engine": "java",
  "runtimeApiVersion": "foggy-runtime-api/v1",
  "success": true
}
