POST api/TwoMenDianLiRun/mendianlirunDuibi

分析对比两个年份的销售额及净利润

Request Information

URI Parameters

None.

Body Parameters

mendianlirunDuibiPost
NameDescriptionTypeAdditional information
groupid

数组: integer

None.

year1

integer

None.

year2

integer

None.

day1

integer

None.

day2

integer

None.

tel

登录账号

string

None.

token

token

string

None.

uid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "groupid": [
    1,
    2
  ],
  "year1": 1,
  "year2": 2,
  "day1": 3,
  "day2": 4,
  "tel": "sample string 5",
  "token": "sample string 6",
  "uid": 1
}

application/xml, text/xml

Sample:
<mendianlirunDuibiPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 5</tel>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 6</token>
  <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
  <day1>3</day1>
  <day2>4</day2>
  <groupid xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </groupid>
  <year1>1</year1>
  <year2>2</year2>
</mendianlirunDuibiPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

mendianlirunDuibiResult
NameDescriptionTypeAdditional information
list

数组: mendianlirunDuibiItem

None.

totalSellcount1

decimal number

None.

totalSellcount2

decimal number

None.

totalSellcount3

decimal number

None.

totalLirun1

decimal number

None.

totalLirun2

decimal number

None.

totalLirun3

decimal number

None.

code

状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在...

integer

None.

msg

成功或者错误的说明,例如:登录成功,token过期...

string

None.

Response Formats

application/json, text/json

Sample:
{
  "list": [
    {
      "id1": 1,
      "id2": 1,
      "month": 1,
      "sellcount1": 2.0,
      "sellcount2": 3.0,
      "selltotal1": 4.0,
      "lirun1": 5.0,
      "lirun2": 6.0,
      "selltotal2": 7.0
    },
    {
      "id1": 1,
      "id2": 1,
      "month": 1,
      "sellcount1": 2.0,
      "sellcount2": 3.0,
      "selltotal1": 4.0,
      "lirun1": 5.0,
      "lirun2": 6.0,
      "selltotal2": 7.0
    }
  ],
  "totalSellcount1": 1.0,
  "totalSellcount2": 2.0,
  "totalSellcount3": 3.0,
  "totalLirun1": 4.0,
  "totalLirun2": 5.0,
  "totalLirun3": 6.0,
  "code": 7,
  "msg": "sample string 8"
}

application/xml, text/xml

Sample:
<mendianlirunDuibiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <code xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">7</code>
  <msg xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 8</msg>
  <list>
    <mendianlirunDuibiItem>
      <id1>1</id1>
      <id2>1</id2>
      <lirun1>5</lirun1>
      <lirun2>6</lirun2>
      <month>1</month>
      <sellcount1>2</sellcount1>
      <sellcount2>3</sellcount2>
      <selltotal1>4</selltotal1>
      <selltotal2>7</selltotal2>
    </mendianlirunDuibiItem>
    <mendianlirunDuibiItem>
      <id1>1</id1>
      <id2>1</id2>
      <lirun1>5</lirun1>
      <lirun2>6</lirun2>
      <month>1</month>
      <sellcount1>2</sellcount1>
      <sellcount2>3</sellcount2>
      <selltotal1>4</selltotal1>
      <selltotal2>7</selltotal2>
    </mendianlirunDuibiItem>
  </list>
  <totalLirun1>4</totalLirun1>
  <totalLirun2>5</totalLirun2>
  <totalLirun3>6</totalLirun3>
  <totalSellcount1>1</totalSellcount1>
  <totalSellcount2>2</totalSellcount2>
  <totalSellcount3>3</totalSellcount3>
</mendianlirunDuibiResult>