描述
URL{你的ERP域名}/xbase/aapi_staff/xlist
HTTP请求方式post
是否需要登录true
字段 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
appid | true | string | 应用id |
sign | true | string | 应用签名[参见签名规则] |
token | true | string | 用户登录接口获取的token |
nonce_str | true | string | 随机字符串 |
lang | true | string | 语言[zh_cn/english] |
shop_id | false | int | 所属门店的shop_id,不传默认使用当前登录用户的shop_id |
limit | false | int | 返回记录条数1-500,默认返回200条 |
page | false | int | 默认1,第2页为2 |
order_by | false | string | 需要排序的字段名,如:sort |
order_type | false | enum | 排序的方式,[desc,asc] |
search | false | string | 搜索条件的json字符串,如:[{’field':'order_code','xtype':'=','val':'N0200-3030-001'},{'field':'order_code','xtype':'=','val':'N0200-3030-001'}] |
search[0][field] | false | string | 搜索条件数组,支持的字段,staff_id,unit_name,status,sort |
search[0][xtype] | false | string | 搜索的方法,=,>=,<=,!=,like,like%,%like |
search[0][val] | false | string | 搜索条件的搜索关键词 |
字段 | 类型及范围 | 说明 |
---|---|---|
status | string | 状态 y=成功 n=失败 |
info | html | 提示信息 |
data | array | 返回的数据 |
staff_id | int | 经办人唯一id |
unit_name | string | 经办人名称 |
status | string | 状态1正常,2已删除 |
sort | int | 排序值 |
status_name | string | 状态表述文字,不能用于判断,判断请使用 status |
TIPS