GET api/AgrTech/Plant/View/QueryWithPage?pageindex={pageindex}&pagesize={pagesize}&plantid={plantid}&plantname={plantname}
以分页的方式,获取农业科技中作物视图的信息。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| pageindex |
页序号,为空表示首页。 |
integer |
Default value is 0 |
| pagesize |
页大小,默认为20。 |
integer |
Default value is 20 |
| plantid |
作物ID,左匹配,缺少或空表示不限。 |
string |
Default value is |
| plantname |
作物名称,匹配,缺少或空表示不限。 |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
以分页的方式,获取农业科技中作物视图的信息。
CommonOperationResultWithTagOfSimplePageDataResultOfAgrTec_PlantViewItem| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | SimplePageDataResultOfAgrTec_PlantViewItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": {
"totalreccount": 1,
"pageIndex": 2,
"pageSize": 3,
"pageCount": 4,
"records": [
{
"VarietyDesc": "sample string 1",
"PlantId": "sample string 2",
"PlantName": "sample string 3"
},
{
"VarietyDesc": "sample string 1",
"PlantId": "sample string 2",
"PlantName": "sample string 3"
}
]
}
}
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfSimplePageDataResultOfAgrTec_PlantViewItemnMA5lUgerCdCJ3eC xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
<errcode>1</errcode>
<errmsg>sample string 2</errmsg>
<tag>
<pageCount>4</pageCount>
<pageIndex>2</pageIndex>
<pageSize>3</pageSize>
<records xmlns:d3p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.CleverFarmer">
<d3p1:AgrTec_PlantViewItem>
<d3p1:PlantId>sample string 2</d3p1:PlantId>
<d3p1:PlantName>sample string 3</d3p1:PlantName>
<d3p1:VarietyDesc>sample string 1</d3p1:VarietyDesc>
</d3p1:AgrTec_PlantViewItem>
<d3p1:AgrTec_PlantViewItem>
<d3p1:PlantId>sample string 2</d3p1:PlantId>
<d3p1:PlantName>sample string 3</d3p1:PlantName>
<d3p1:VarietyDesc>sample string 1</d3p1:VarietyDesc>
</d3p1:AgrTec_PlantViewItem>
</records>
<totalreccount>1</totalreccount>
</tag>
</CommonOperationResultWithTagOfSimplePageDataResultOfAgrTec_PlantViewItemnMA5lUgerCdCJ3eC>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.