POST api/Agent/WateringRelationShip/Farmer/Modify
修改当前运营商某个灌溉关系下的某个农户的土地记录。 注意,组ID,流量计ID是不能修改的。
Request Information
URI Parameters
None.
Body Parameters
修改后的数据的信息。
AgentWateringRelationShipFarmerTableItemUpdParmName | Description | Type | Additional information |
---|---|---|---|
Old_FarmerId |
修改前的农户ID Bigint |
integer |
Required |
LandArea |
土地面积 numeric(6,2) NN 土地面积,单位亩。 |
decimal number |
Required |
LandName |
土地名称 Varchar(40) 土地名称 |
string |
Max length: 20 |
WaterWeight |
耗水权重 TinyInt NN 单位%,100表示100%,90表示90%。此值用于核算当前户应该支付的水费的权重。 |
byte |
Required |
LandType |
土地类型 Varchar(10) 如“普通旱地”。 |
string |
Max length: 10 |
SerialId |
流量计ID Bigint PK |
integer |
Required |
LandGroupId |
土地组ID Bigint |
integer |
Required |
FarmerId |
农户ID Bigint |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "Old_FarmerId": 1, "LandArea": 2.0, "LandName": "sample string 3", "WaterWeight": 64, "LandType": "sample string 5", "SerialId": 6, "LandGroupId": 7, "FarmerId": 8 }
application/xml, text/xml
Sample:
<AgentWateringRelationShipFarmerTableItemUpdParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter"> <FarmerId>8</FarmerId> <LandGroupId>7</LandGroupId> <SerialId>6</SerialId> <LandArea>2</LandArea> <LandName>sample string 3</LandName> <LandType>sample string 5</LandType> <WaterWeight>64</WaterWeight> <Old_FarmerId>1</Old_FarmerId> </AgentWateringRelationShipFarmerTableItemUpdParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
修改当前运营商某个灌溉关系下的某个农户的土地记录。 注意,组ID,流量计ID是不能修改的。
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<CommonOperationResult 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>sample string 3</tag> </CommonOperationResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.