POST dz_api/Contract/Search

查询合同列表

Request Information

URI Parameters

None.

Body Parameters

ContractSearchConditions
NameDescriptionTypeAdditional information
Keyword

关键字(针对App)

string

None.

ServiceType

服务类别ID

integer

None.

ServiceTypes

服务类别ID组(针对App)

Collection of integer

None.

SignedDateStart

签订日期开始

date

None.

SignedDateEnd

签订日期结束

date

None.

ContractNo

合同编号

string

None.

CustId

客户ID

integer

None.

Sales

业务员

integer

None.

AmountMax

最大金额

decimal number

None.

AmountMin

最小金额

decimal number

None.

ApprovedStatus

审核状态(默认-1代表全部)

integer

None.

ContractStatus

合同状态(0代表全部)

ContractStatusEnums

None.

ExpireStatus

到期状态(0:全部。1010:未到期。1020:已到期。1030:本月到期。1040:下月到期)

integer

None.

SelectContractIds

合同ID(前端勾选)

Collection of integer

None.

PageIndex

页码(从0开始)

integer

None.

PageSize

分页大小

integer

None.

OrderBy

排序字段(选项:contractNo,空)

string

None.

OrderAs

升序/降序(asc:升序,desc:降序)

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Keyword": "sample string 1",
  "ServiceType": 2,
  "ServiceTypes": [
    1,
    2
  ],
  "SignedDateStart": "2024-11-25T01:34:59.8916528+08:00",
  "SignedDateEnd": "2024-11-25T01:34:59.8916528+08:00",
  "ContractNo": "sample string 5",
  "CustId": 6,
  "CustIds": [
    1,
    2
  ],
  "Sales": 7,
  "AmountMax": 8.0,
  "AmountMin": 9.0,
  "ApprovedStatus": 10,
  "ContractStatus": 1010,
  "ExpireStatus": 11,
  "ContractIds": [
    1,
    2
  ],
  "SelectContractIds": [
    1,
    2
  ],
  "PageIndex": 12,
  "PageSize": 13,
  "OrderBy": "sample string 14",
  "OrderAs": "sample string 15",
  "IsSupperAdmin": true
}

application/xml, text/xml

Sample:
<ContractSearchConditions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model.Customer">
  <AmountMax>8</AmountMax>
  <AmountMin>9</AmountMin>
  <ApprovedStatus>10</ApprovedStatus>
  <ContractIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ContractIds>
  <ContractNo>sample string 5</ContractNo>
  <ContractStatus>Inprogress</ContractStatus>
  <CustId>6</CustId>
  <CustIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CustIds>
  <ExpireStatus>11</ExpireStatus>
  <IsSupperAdmin>true</IsSupperAdmin>
  <Keyword>sample string 1</Keyword>
  <OrderAs>sample string 15</OrderAs>
  <OrderBy>sample string 14</OrderBy>
  <PageIndex>12</PageIndex>
  <PageSize>13</PageSize>
  <Sales>7</Sales>
  <SelectContractIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SelectContractIds>
  <ServiceType>2</ServiceType>
  <ServiceTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ServiceTypes>
  <SignedDateEnd>2024-11-25T01:34:59.8916528+08:00</SignedDateEnd>
  <SignedDateStart>2024-11-25T01:34:59.8916528+08:00</SignedDateStart>
</ContractSearchConditions>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

查询合同列表

SearchedListOfContractListModel
NameDescriptionTypeAdditional information
Total

integer

None.

Items

Collection of ContractListModel

None.

SumModel

ContractListModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Total": 1,
  "Items": [
    {
      "ContractId": 1,
      "ContractNo": "sample string 2",
      "CustId": 3,
      "CustNo": "sample string 4",
      "CustName": "sample string 5",
      "ServiceId": 6,
      "ServiceType": 7,
      "ServiceTypeName": "sample string 8",
      "ServiceItemName": "sample string 9",
      "ServiceStatus": 1010,
      "SignedDate": "sample string 10",
      "Period": "sample string 11",
      "Amount": 12.0,
      "SalesName": "sample string 13",
      "ContractStatus": "sample string 14",
      "Note": "sample string 15",
      "CanViewService": true,
      "Approved": true,
      "RenewalContractId": 18,
      "HaveExpire": true
    },
    {
      "ContractId": 1,
      "ContractNo": "sample string 2",
      "CustId": 3,
      "CustNo": "sample string 4",
      "CustName": "sample string 5",
      "ServiceId": 6,
      "ServiceType": 7,
      "ServiceTypeName": "sample string 8",
      "ServiceItemName": "sample string 9",
      "ServiceStatus": 1010,
      "SignedDate": "sample string 10",
      "Period": "sample string 11",
      "Amount": 12.0,
      "SalesName": "sample string 13",
      "ContractStatus": "sample string 14",
      "Note": "sample string 15",
      "CanViewService": true,
      "Approved": true,
      "RenewalContractId": 18,
      "HaveExpire": true
    }
  ],
  "SumModel": {
    "ContractId": 1,
    "ContractNo": "sample string 2",
    "CustId": 3,
    "CustNo": "sample string 4",
    "CustName": "sample string 5",
    "ServiceId": 6,
    "ServiceType": 7,
    "ServiceTypeName": "sample string 8",
    "ServiceItemName": "sample string 9",
    "ServiceStatus": 1010,
    "SignedDate": "sample string 10",
    "Period": "sample string 11",
    "Amount": 12.0,
    "SalesName": "sample string 13",
    "ContractStatus": "sample string 14",
    "Note": "sample string 15",
    "CanViewService": true,
    "Approved": true,
    "RenewalContractId": 18,
    "HaveExpire": true
  }
}

application/xml, text/xml

Sample:
<SearchedListOfContractListModelwS_SKP55p xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonAa.WebApi.Areas.Customer.Models">
    <d2p1:ContractListModel>
      <d2p1:Amount>12</d2p1:Amount>
      <d2p1:Approved>true</d2p1:Approved>
      <d2p1:CanViewService>true</d2p1:CanViewService>
      <d2p1:ContractId>1</d2p1:ContractId>
      <d2p1:ContractNo>sample string 2</d2p1:ContractNo>
      <d2p1:ContractStatus>sample string 14</d2p1:ContractStatus>
      <d2p1:CustId>3</d2p1:CustId>
      <d2p1:CustName>sample string 5</d2p1:CustName>
      <d2p1:CustNo>sample string 4</d2p1:CustNo>
      <d2p1:HaveExpire>true</d2p1:HaveExpire>
      <d2p1:Note>sample string 15</d2p1:Note>
      <d2p1:Period>sample string 11</d2p1:Period>
      <d2p1:RenewalContractId>18</d2p1:RenewalContractId>
      <d2p1:SalesName>sample string 13</d2p1:SalesName>
      <d2p1:ServiceId>6</d2p1:ServiceId>
      <d2p1:ServiceItemName>sample string 9</d2p1:ServiceItemName>
      <d2p1:ServiceStatus>Inprogress</d2p1:ServiceStatus>
      <d2p1:ServiceType>7</d2p1:ServiceType>
      <d2p1:ServiceTypeName>sample string 8</d2p1:ServiceTypeName>
      <d2p1:SignedDate>sample string 10</d2p1:SignedDate>
    </d2p1:ContractListModel>
    <d2p1:ContractListModel>
      <d2p1:Amount>12</d2p1:Amount>
      <d2p1:Approved>true</d2p1:Approved>
      <d2p1:CanViewService>true</d2p1:CanViewService>
      <d2p1:ContractId>1</d2p1:ContractId>
      <d2p1:ContractNo>sample string 2</d2p1:ContractNo>
      <d2p1:ContractStatus>sample string 14</d2p1:ContractStatus>
      <d2p1:CustId>3</d2p1:CustId>
      <d2p1:CustName>sample string 5</d2p1:CustName>
      <d2p1:CustNo>sample string 4</d2p1:CustNo>
      <d2p1:HaveExpire>true</d2p1:HaveExpire>
      <d2p1:Note>sample string 15</d2p1:Note>
      <d2p1:Period>sample string 11</d2p1:Period>
      <d2p1:RenewalContractId>18</d2p1:RenewalContractId>
      <d2p1:SalesName>sample string 13</d2p1:SalesName>
      <d2p1:ServiceId>6</d2p1:ServiceId>
      <d2p1:ServiceItemName>sample string 9</d2p1:ServiceItemName>
      <d2p1:ServiceStatus>Inprogress</d2p1:ServiceStatus>
      <d2p1:ServiceType>7</d2p1:ServiceType>
      <d2p1:ServiceTypeName>sample string 8</d2p1:ServiceTypeName>
      <d2p1:SignedDate>sample string 10</d2p1:SignedDate>
    </d2p1:ContractListModel>
  </Items>
  <SumModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonAa.WebApi.Areas.Customer.Models">
    <d2p1:Amount>12</d2p1:Amount>
    <d2p1:Approved>true</d2p1:Approved>
    <d2p1:CanViewService>true</d2p1:CanViewService>
    <d2p1:ContractId>1</d2p1:ContractId>
    <d2p1:ContractNo>sample string 2</d2p1:ContractNo>
    <d2p1:ContractStatus>sample string 14</d2p1:ContractStatus>
    <d2p1:CustId>3</d2p1:CustId>
    <d2p1:CustName>sample string 5</d2p1:CustName>
    <d2p1:CustNo>sample string 4</d2p1:CustNo>
    <d2p1:HaveExpire>true</d2p1:HaveExpire>
    <d2p1:Note>sample string 15</d2p1:Note>
    <d2p1:Period>sample string 11</d2p1:Period>
    <d2p1:RenewalContractId>18</d2p1:RenewalContractId>
    <d2p1:SalesName>sample string 13</d2p1:SalesName>
    <d2p1:ServiceId>6</d2p1:ServiceId>
    <d2p1:ServiceItemName>sample string 9</d2p1:ServiceItemName>
    <d2p1:ServiceStatus>Inprogress</d2p1:ServiceStatus>
    <d2p1:ServiceType>7</d2p1:ServiceType>
    <d2p1:ServiceTypeName>sample string 8</d2p1:ServiceTypeName>
    <d2p1:SignedDate>sample string 10</d2p1:SignedDate>
  </SumModel>
  <Total>1</Total>
</SearchedListOfContractListModelwS_SKP55p>