POST api/{version}/v1/Statistics/GetStatisticsData

查询统计数据

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

StatisticsParaModel
NameDescriptionTypeAdditional information
Ids

选择数据的主键【各主键之间用逗号格开】

string

None.

Range

查询类型[1,电站,2地区,3组织]

integer

None.

Type

报表种类[1LifeCycle,2Day,3Month,4Year]

integer

None.

Start

开始时间【yyyy-MM-dd】

string

None.

End

结束时间【yyyy-MM-dd】

string

None.

ImageInfo

图片信息【导出时需要】

ImageInfo

None.

qry_type

查询类型 1:所有电站 3:自有电站(如用户为组织,则自有为:拥有和归属本节点)

integer

None.

fieldIds

string

None.

PageIndex

当前页

integer

None.

PageSize

当容量

integer

None.

Sidx

排序列

string

None.

Sord

排序类型

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ids": "sample string 1",
  "range": 2,
  "type": 3,
  "start": "sample string 4",
  "end": "sample string 5",
  "imageInfo": {
    "base64": "sample string 1",
    "width": 2,
    "height": 3
  },
  "qry_type": 6,
  "fieldIds": "sample string 7",
  "pageIndex": 8,
  "pageSize": 9,
  "sidx": "sample string 10",
  "sord": "sample string 11"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiDataListModel2
NameDescriptionTypeAdditional information
TotalYield

decimal number

None.

TotalGeneration

decimal number

None.

Title

string

None.

Page

ApiPager

None.

Cols

Collection of ApiColModel

None.

Rows

Collection of AbsStatisticsModel

None.

Response Formats

application/json, text/json

Sample:
{
  "totalYield": 1.1,
  "totalGeneration": 2.1,
  "title": "sample string 3",
  "page": {
    "pageIndex": 1,
    "pageSize": 2,
    "records": 3,
    "sidx": "sample string 4",
    "sord": "sample string 5",
    "totalPage": 2
  },
  "cols": [
    {
      "index": 1,
      "label": "sample string 2",
      "rowName": "sample string 3",
      "width": 4,
      "formatter": "sample string 5",
      "seletele": [
        {
          "key": "sample string 1",
          "value": 2,
          "index": 3,
          "attribute": "sample string 4"
        },
        {
          "key": "sample string 1",
          "value": 2,
          "index": 3,
          "attribute": "sample string 4"
        }
      ]
    },
    {
      "index": 1,
      "label": "sample string 2",
      "rowName": "sample string 3",
      "width": 4,
      "formatter": "sample string 5",
      "seletele": [
        {
          "key": "sample string 1",
          "value": 2,
          "index": 3,
          "attribute": "sample string 4"
        },
        {
          "key": "sample string 1",
          "value": 2,
          "index": 3,
          "attribute": "sample string 4"
        }
      ]
    }
  ],
  "rows": [
    {
      "date": "sample string 1",
      "capacity": 2.1,
      "generation": 3.1,
      "yield": 4.1,
      "sell": 5.1,
      "buy": 6.1,
      "etotalLoad": 7.1,
      "selfUseRatio": 0.0,
      "selfUseOfPv": 0.0,
      "load": 0.0,
      "hasLt4": true,
      "sum": 10.1
    },
    {
      "date": "sample string 1",
      "capacity": 2.1,
      "generation": 3.1,
      "yield": 4.1,
      "sell": 5.1,
      "buy": 6.1,
      "etotalLoad": 7.1,
      "selfUseRatio": 0.0,
      "selfUseOfPv": 0.0,
      "load": 0.0,
      "hasLt4": true,
      "sum": 10.1
    }
  ]
}