POST api/SaleShareRecord/CreateAndSearch
客户销售单列表点击 如果没有创建分享的马上创建分享,已经创建过分享的则使用生成过的分享吗查询
Request Information
URI Parameters
None.
Body Parameters
SaleDayRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId |
客户id |
integer |
None. |
| SaleDate |
销售日期 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"SaleDate": "2025-12-26T20:15:47.1423584+08:00"
}
application/xml, text/xml
Sample:
<SaleDayRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Response"> <CustomerId>1</CustomerId> <SaleDate>2025-12-26T20:15:47.1423584+08:00</SaleDate> </SaleDayRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfSaleShareRecordDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| data | SaleShareRecordDetail |
None. |
|
| errcode |
错误码,默认为成功:SUCCESS |
string |
None. |
| errmsg |
错误信息,默认为:成功 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"CustomerId": 1,
"CustomerName": "sample string 2",
"PhoneNumber": "sample string 3",
"List": [
{
"OrderId": 1,
"ProductName": "sample string 2",
"ProductId": 3,
"VenderName": "sample string 4",
"VenderId": 5,
"Count": 1,
"RealPrice": 6.0,
"CreateTime": "2025-12-26T20:15:47.1423584+08:00",
"IsLocked": true,
"IsShowCountAndPrice": true,
"ReturnCount": 10,
"OrderItemCount": 11
},
{
"OrderId": 1,
"ProductName": "sample string 2",
"ProductId": 3,
"VenderName": "sample string 4",
"VenderId": 5,
"Count": 1,
"RealPrice": 6.0,
"CreateTime": "2025-12-26T20:15:47.1423584+08:00",
"IsLocked": true,
"IsShowCountAndPrice": true,
"ReturnCount": 10,
"OrderItemCount": 11
}
],
"TotalPrice": 4.0,
"TotoalCount": 5,
"CompanyName": "sample string 6",
"CompanyTel": "sample string 7",
"CompanyAddress": "sample string 8",
"SaleDateStr": "sample string 9"
},
"errcode": "sample string 1",
"errmsg": "sample string 2"
}
application/xml, text/xml
Sample:
<ResponseOfSaleShareRecordDetailUJ8Augit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi">
<errcode>sample string 1</errcode>
<errmsg>sample string 2</errmsg>
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Response">
<d2p1:CompanyAddress>sample string 8</d2p1:CompanyAddress>
<d2p1:CompanyName>sample string 6</d2p1:CompanyName>
<d2p1:CompanyTel>sample string 7</d2p1:CompanyTel>
<d2p1:CustomerId>1</d2p1:CustomerId>
<d2p1:CustomerName>sample string 2</d2p1:CustomerName>
<d2p1:List xmlns:d3p1="http://schemas.datacontract.org/2004/07/DataModel.Exchange">
<d3p1:SaleDayDataList>
<d3p1:CreateTime>2025-12-26T20:15:47.1423584+08:00</d3p1:CreateTime>
<d3p1:IsLocked>true</d3p1:IsLocked>
<d3p1:IsShowCountAndPrice>true</d3p1:IsShowCountAndPrice>
<d3p1:OrderId>1</d3p1:OrderId>
<d3p1:OrderItemCount>11</d3p1:OrderItemCount>
<d3p1:ProductId>3</d3p1:ProductId>
<d3p1:ProductName>sample string 2</d3p1:ProductName>
<d3p1:RealPrice>6</d3p1:RealPrice>
<d3p1:ReturnCount>10</d3p1:ReturnCount>
<d3p1:VenderId>5</d3p1:VenderId>
<d3p1:VenderName>sample string 4</d3p1:VenderName>
</d3p1:SaleDayDataList>
<d3p1:SaleDayDataList>
<d3p1:CreateTime>2025-12-26T20:15:47.1423584+08:00</d3p1:CreateTime>
<d3p1:IsLocked>true</d3p1:IsLocked>
<d3p1:IsShowCountAndPrice>true</d3p1:IsShowCountAndPrice>
<d3p1:OrderId>1</d3p1:OrderId>
<d3p1:OrderItemCount>11</d3p1:OrderItemCount>
<d3p1:ProductId>3</d3p1:ProductId>
<d3p1:ProductName>sample string 2</d3p1:ProductName>
<d3p1:RealPrice>6</d3p1:RealPrice>
<d3p1:ReturnCount>10</d3p1:ReturnCount>
<d3p1:VenderId>5</d3p1:VenderId>
<d3p1:VenderName>sample string 4</d3p1:VenderName>
</d3p1:SaleDayDataList>
</d2p1:List>
<d2p1:PhoneNumber>sample string 3</d2p1:PhoneNumber>
<d2p1:SaleDateStr>sample string 9</d2p1:SaleDateStr>
<d2p1:TotalPrice>4</d2p1:TotalPrice>
<d2p1:TotoalCount>5</d2p1:TotoalCount>
</data>
</ResponseOfSaleShareRecordDetailUJ8Augit>