POST spsapi/SalaryBusiness/LoadEmployeeListByEmpName

根据名称查询员工数据(一般用于可搜索的下拉框选择员工)

Request Information

URI Parameters

None.

Body Parameters

LoadEmployeeListByEmpNameReq
NameDescriptionTypeAdditional information
Name

员工姓名

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1"
}

application/xml, text/xml

Sample:
<LoadEmployeeListByEmpNameReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.SalaryModels">
  <Name>sample string 1</Name>
</LoadEmployeeListByEmpNameReq>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LoadEmployeeListByEmpNameReq'.

Response Information

Resource Description

SalaryBasePageResultOfEmployeeModelMin
NameDescriptionTypeAdditional information
rows

Collection of EmployeeModelMin

None.

total

integer

None.

errcode

错误编码 100:error 401:鉴权失败;200:成功;500:内部错误;

ErrCode

None.

message

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "rows": [
    {
      "emp_id": 1,
      "name": "sample string 1",
      "emp_code": "sample string 2",
      "d_id": 1,
      "dname": "sample string 3",
      "regular_time": "2025-04-27T02:49:38.7046174+08:00",
      "status": "sample string 4"
    },
    {
      "emp_id": 1,
      "name": "sample string 1",
      "emp_code": "sample string 2",
      "d_id": 1,
      "dname": "sample string 3",
      "regular_time": "2025-04-27T02:49:38.7046174+08:00",
      "status": "sample string 4"
    }
  ],
  "total": 1,
  "errcode": 2,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<SalaryBasePageResultOfEmployeeModelMinkfa5FTaK xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.SalaryModels">
  <errcode>Error</errcode>
  <message>sample string 2</message>
  <rows>
    <EmployeeModelMin>
      <d_id>1</d_id>
      <dname>sample string 3</dname>
      <emp_code>sample string 2</emp_code>
      <emp_id>1</emp_id>
      <name>sample string 1</name>
      <regular_time>2025-04-27T02:49:38.7046174+08:00</regular_time>
      <status>sample string 4</status>
    </EmployeeModelMin>
    <EmployeeModelMin>
      <d_id>1</d_id>
      <dname>sample string 3</dname>
      <emp_code>sample string 2</emp_code>
      <emp_id>1</emp_id>
      <name>sample string 1</name>
      <regular_time>2025-04-27T02:49:38.7046174+08:00</regular_time>
      <status>sample string 4</status>
    </EmployeeModelMin>
  </rows>
  <total>1</total>
</SalaryBasePageResultOfEmployeeModelMinkfa5FTaK>