POST api/offline/Order/SaleCountListNew

线下销售统计新(统计所有数据,包括线上的)

Request Information

URI Parameters

None.

Body Parameters

SaleCountRequest
NameDescriptionTypeAdditional information
StartTime

开始时间

date

None.

EndTime

结束时间

date

None.

CustomerId

客户ID

integer

None.

CustomerType

客户类型

CustomerType

None.

ProductId

商品ID

integer

None.

VenderId

基地ID

integer

None.

DataType

按月查询(查历史数据)/按天查询(实时查询)

DataTypeEnum

None.

CountDateYear

统计日期(年)

integer

None.

CountDateMonth

统计日期(月)

integer

None.

PageIndex

页面起始项的索引,如{PageIndex=0,PageSize=10}:取0~9项(前十项);{PageIndex=10,PageSize=10}:取10~19项

integer

None.

PageSize

获取数量

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "StartTime": "2025-12-26T20:14:39.9460591+08:00",
  "EndTime": "2025-12-26T20:14:39.9460591+08:00",
  "CustomerId": 1,
  "CustomerType": 0,
  "ProductId": 1,
  "VenderId": 1,
  "DataType": 0,
  "CountDateYear": 1,
  "CountDateMonth": 1,
  "PageIndex": 1,
  "PageSize": 2
}

application/xml, text/xml

Sample:
<SaleCountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Request.api">
  <PageIndex xmlns="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Request">1</PageIndex>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Request">2</PageSize>
  <CountDateMonth>1</CountDateMonth>
  <CountDateYear>1</CountDateYear>
  <CustomerId>1</CustomerId>
  <CustomerType>Online</CustomerType>
  <DataType>Realtime</DataType>
  <EndTime>2025-12-26T20:14:39.9460591+08:00</EndTime>
  <ProductId>1</ProductId>
  <StartTime>2025-12-26T20:14:39.9460591+08:00</StartTime>
  <VenderId>1</VenderId>
</SaleCountRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseSaleCountListOfListOfSaleCountResponse
NameDescriptionTypeAdditional information
SaleMoney

decimal number

None.

SaleCount

integer

None.

ReturnBackCount

integer

None.

SaleOrderCount

integer

None.

isLastPage

boolean

None.

totalItem

integer

None.

data

Collection of SaleCountResponse

None.

errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "SaleMoney": 1.0,
  "SaleCount": 2,
  "ReturnBackCount": 3,
  "SaleOrderCount": 4,
  "isLastPage": true,
  "totalItem": 6,
  "data": [
    {
      "ProductTitle": "sample string 1",
      "VenderName": "sample string 2",
      "SaleCount": 3,
      "ReturnBackCount": 4,
      "SaleMoney": 5.0,
      "ProductId": 6,
      "VenderId": 7,
      "MainPic": "sample string 8"
    },
    {
      "ProductTitle": "sample string 1",
      "VenderName": "sample string 2",
      "SaleCount": 3,
      "ReturnBackCount": 4,
      "SaleMoney": 5.0,
      "ProductId": 6,
      "VenderId": 7,
      "MainPic": "sample string 8"
    }
  ],
  "errcode": "sample string 7",
  "errmsg": "sample string 8"
}

application/xml, text/xml

Sample:
<ResponseSaleCountListOfArrayOfSaleCountResponseP67rDlvc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi">
  <errcode>sample string 7</errcode>
  <errmsg>sample string 8</errmsg>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Response.api">
    <d2p1:SaleCountResponse>
      <d2p1:MainPic>sample string 8</d2p1:MainPic>
      <d2p1:ProductId>6</d2p1:ProductId>
      <d2p1:ProductTitle>sample string 1</d2p1:ProductTitle>
      <d2p1:ReturnBackCount>4</d2p1:ReturnBackCount>
      <d2p1:SaleCount>3</d2p1:SaleCount>
      <d2p1:SaleMoney>5</d2p1:SaleMoney>
      <d2p1:VenderId>7</d2p1:VenderId>
      <d2p1:VenderName>sample string 2</d2p1:VenderName>
    </d2p1:SaleCountResponse>
    <d2p1:SaleCountResponse>
      <d2p1:MainPic>sample string 8</d2p1:MainPic>
      <d2p1:ProductId>6</d2p1:ProductId>
      <d2p1:ProductTitle>sample string 1</d2p1:ProductTitle>
      <d2p1:ReturnBackCount>4</d2p1:ReturnBackCount>
      <d2p1:SaleCount>3</d2p1:SaleCount>
      <d2p1:SaleMoney>5</d2p1:SaleMoney>
      <d2p1:VenderId>7</d2p1:VenderId>
      <d2p1:VenderName>sample string 2</d2p1:VenderName>
    </d2p1:SaleCountResponse>
  </data>
  <isLastPage>true</isLastPage>
  <totalItem>6</totalItem>
  <ReturnBackCount>3</ReturnBackCount>
  <SaleCount>2</SaleCount>
  <SaleMoney>1</SaleMoney>
  <SaleOrderCount>4</SaleOrderCount>
</ResponseSaleCountListOfArrayOfSaleCountResponseP67rDlvc>