GET api/Farmer/MicroApp/Meter/WateringRelationShip?serialid={serialid}

查询某个流量计的灌溉关系。

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serialid

流量计ID,必填,等于。

integer

Required

Body Parameters

None.

Response Information

Resource Description

查询某个流量计的灌溉关系。

CommonOperationResultWithTagOfIEnumerableOfAgentWateringRelationShipViewItem
NameDescriptionTypeAdditional information
errcode

integer

None.

errmsg

string

None.

tag

Collection of AgentWateringRelationShipViewItem

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": [
    {
      "GroupName": "sample string 1",
      "Address": "sample string 2",
      "ShaftNum": "sample string 3",
      "Province": "sample string 4",
      "City": "sample string 5",
      "County": "sample string 6",
      "InstallAddr": "sample string 7",
      "FarmerCount": 8,
      "TotalLandArea": 9.0,
      "TotalWateringWeight": 10.0,
      "ExpectWateringTimeInMin": 11.0,
      "LeadInfo": "sample string 12",
      "WateringAdminInfo": "sample string 13",
      "NewestPriceTable": "sample string 14",
      "AgentId": 15,
      "AgentName": "sample string 16",
      "WateringSpeed": 17.0,
      "NormalFlowLimit": 18.0,
      "LeadId": 19,
      "SerialId": 20,
      "LandGroupId": 21
    },
    {
      "GroupName": "sample string 1",
      "Address": "sample string 2",
      "ShaftNum": "sample string 3",
      "Province": "sample string 4",
      "City": "sample string 5",
      "County": "sample string 6",
      "InstallAddr": "sample string 7",
      "FarmerCount": 8,
      "TotalLandArea": 9.0,
      "TotalWateringWeight": 10.0,
      "ExpectWateringTimeInMin": 11.0,
      "LeadInfo": "sample string 12",
      "WateringAdminInfo": "sample string 13",
      "NewestPriceTable": "sample string 14",
      "AgentId": 15,
      "AgentName": "sample string 16",
      "WateringSpeed": 17.0,
      "NormalFlowLimit": 18.0,
      "LeadId": 19,
      "SerialId": 20,
      "LandGroupId": 21
    }
  ]
}

application/xml, text/xml

Sample:
<CommonOperationResultWithTagOfArrayOfAgentWateringRelationShipViewItemwlCnhfv3 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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter">
    <d2p1:AgentWateringRelationShipViewItem>
      <d2p1:LandGroupId>21</d2p1:LandGroupId>
      <d2p1:SerialId>20</d2p1:SerialId>
      <d2p1:LeadId>19</d2p1:LeadId>
      <d2p1:NormalFlowLimit>18</d2p1:NormalFlowLimit>
      <d2p1:WateringSpeed>17</d2p1:WateringSpeed>
      <d2p1:Address>sample string 2</d2p1:Address>
      <d2p1:AgentId>15</d2p1:AgentId>
      <d2p1:AgentName>sample string 16</d2p1:AgentName>
      <d2p1:City>sample string 5</d2p1:City>
      <d2p1:County>sample string 6</d2p1:County>
      <d2p1:ExpectWateringTimeInMin>11</d2p1:ExpectWateringTimeInMin>
      <d2p1:FarmerCount>8</d2p1:FarmerCount>
      <d2p1:GroupName>sample string 1</d2p1:GroupName>
      <d2p1:InstallAddr>sample string 7</d2p1:InstallAddr>
      <d2p1:LeadInfo>sample string 12</d2p1:LeadInfo>
      <d2p1:NewestPriceTable>sample string 14</d2p1:NewestPriceTable>
      <d2p1:Province>sample string 4</d2p1:Province>
      <d2p1:ShaftNum>sample string 3</d2p1:ShaftNum>
      <d2p1:TotalLandArea>9</d2p1:TotalLandArea>
      <d2p1:TotalWateringWeight>10</d2p1:TotalWateringWeight>
      <d2p1:WateringAdminInfo>sample string 13</d2p1:WateringAdminInfo>
    </d2p1:AgentWateringRelationShipViewItem>
    <d2p1:AgentWateringRelationShipViewItem>
      <d2p1:LandGroupId>21</d2p1:LandGroupId>
      <d2p1:SerialId>20</d2p1:SerialId>
      <d2p1:LeadId>19</d2p1:LeadId>
      <d2p1:NormalFlowLimit>18</d2p1:NormalFlowLimit>
      <d2p1:WateringSpeed>17</d2p1:WateringSpeed>
      <d2p1:Address>sample string 2</d2p1:Address>
      <d2p1:AgentId>15</d2p1:AgentId>
      <d2p1:AgentName>sample string 16</d2p1:AgentName>
      <d2p1:City>sample string 5</d2p1:City>
      <d2p1:County>sample string 6</d2p1:County>
      <d2p1:ExpectWateringTimeInMin>11</d2p1:ExpectWateringTimeInMin>
      <d2p1:FarmerCount>8</d2p1:FarmerCount>
      <d2p1:GroupName>sample string 1</d2p1:GroupName>
      <d2p1:InstallAddr>sample string 7</d2p1:InstallAddr>
      <d2p1:LeadInfo>sample string 12</d2p1:LeadInfo>
      <d2p1:NewestPriceTable>sample string 14</d2p1:NewestPriceTable>
      <d2p1:Province>sample string 4</d2p1:Province>
      <d2p1:ShaftNum>sample string 3</d2p1:ShaftNum>
      <d2p1:TotalLandArea>9</d2p1:TotalLandArea>
      <d2p1:TotalWateringWeight>10</d2p1:TotalWateringWeight>
      <d2p1:WateringAdminInfo>sample string 13</d2p1:WateringAdminInfo>
    </d2p1:AgentWateringRelationShipViewItem>
  </tag>
</CommonOperationResultWithTagOfArrayOfAgentWateringRelationShipViewItemwlCnhfv3>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.