POST jxc_api/ErpEmployee/BatchUpdateInsurance

Request Information

URI Parameters

None.

Body Parameters

BatchUpdateInsuranceModel
NameDescriptionTypeAdditional information
EmpList

Collection of ErpEmployeeIdModel

None.

HaveInsurance

integer

None.

Items

Collection of ErpInsuranceEditModel

None.

Request Formats

application/json, text/json

Sample:
{
  "EmpList": [
    {
      "EmpId": 1,
      "EmpCode": "sample string 2",
      "EmpName": "sample string 3"
    },
    {
      "EmpId": 1,
      "EmpCode": "sample string 2",
      "EmpName": "sample string 3"
    }
  ],
  "HaveInsurance": 1,
  "Items": [
    {
      "EmployeeId": 1,
      "InsurType": 1001,
      "InsurName": "sample string 2",
      "PayBase": 3.0,
      "CompanyPercent": 4.0,
      "CompanyAmount": 5.0,
      "PersonPercent": 6.0,
      "PersonAmount": 7.0,
      "PayMode": 8
    },
    {
      "EmployeeId": 1,
      "InsurType": 1001,
      "InsurName": "sample string 2",
      "PayBase": 3.0,
      "CompanyPercent": 4.0,
      "CompanyAmount": 5.0,
      "PersonPercent": 6.0,
      "PersonAmount": 7.0,
      "PayMode": 8
    }
  ]
}

application/xml, text/xml

Sample:
<BatchUpdateInsuranceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.BaseData.Models.Employee">
  <EmpList>
    <ErpEmployeeIdModel>
      <EmpCode>sample string 2</EmpCode>
      <EmpId>1</EmpId>
      <EmpName>sample string 3</EmpName>
    </ErpEmployeeIdModel>
    <ErpEmployeeIdModel>
      <EmpCode>sample string 2</EmpCode>
      <EmpId>1</EmpId>
      <EmpName>sample string 3</EmpName>
    </ErpEmployeeIdModel>
  </EmpList>
  <HaveInsurance>1</HaveInsurance>
  <Items>
    <ErpInsuranceEditModel>
      <CompanyAmount>5</CompanyAmount>
      <CompanyPercent>4</CompanyPercent>
      <EmployeeId>1</EmployeeId>
      <InsurName>sample string 2</InsurName>
      <InsurType>养老保险</InsurType>
      <PayBase>3</PayBase>
      <PayMode>8</PayMode>
      <PersonAmount>7</PersonAmount>
      <PersonPercent>6</PersonPercent>
    </ErpInsuranceEditModel>
    <ErpInsuranceEditModel>
      <CompanyAmount>5</CompanyAmount>
      <CompanyPercent>4</CompanyPercent>
      <EmployeeId>1</EmployeeId>
      <InsurName>sample string 2</InsurName>
      <InsurType>养老保险</InsurType>
      <PayBase>3</PayBase>
      <PayMode>8</PayMode>
      <PersonAmount>7</PersonAmount>
      <PersonPercent>6</PersonPercent>
    </ErpInsuranceEditModel>
  </Items>
</BatchUpdateInsuranceModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.