文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取部门列表
更新时间:2018-04-13 13:17:50   更新人员:叶洋   文档状态:完成 #96    测试接口
摘要
获取部门列表
  1. 接口基本信息
    接口名称:获取部门列表
    请求方法:GET
    接口地址:department
    登录验证:是
  2. 请求参数
    参数名 参数 数据类型 是否必须 示例值 说明
    otype 归属组织类型 int 组织类型 1系统 2商户 3机构 4网点
    linkid 归属组织id string 16位组织id
    name 部门名称 string 模糊匹配,若要查询此项需要同时传递dp_type和dp_id
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id 部门id int
    otype 归属组织类别 int 组织类型1系统平台2商户3机构4网点
    linkid 对应组织id string
    pid 上级部门 int
    status 部门状态 int 部门状态,1正常0禁用
    builtin 系统标准 string 系统标准,禁止删除
    create_time 创建时间 string
    create_by{} 创建人信息 object
    ├ uid ├ 创建人uid string
    ├ code ├ 创建人编码 string
    ├ username ├ 创建人用户名 string
    ├ nickname ├ 创建人昵称 string
    └ realname └ 创建人真实姓名 string
    update_time 更新时间 string
    update_by{} 更新人信息 object
    ├ uid ├ 更新人uid string
    ├ code ├ 更新人代码 string
    ├ username ├ 更新人用户名 string
    ├ nickname ├ 更新人昵称 string
    └ realname └ 更新人真实姓名 string
    name 部门名称 string
    description 描述 string
    orginfo{} 对应组织信息 object
    ├ ***_id ├ 对应组织id string 如果是系统则为sys_id,机构为com_id,网点为net_id
    ├ code ├ 组织代码 string
    ├ name ├ 对应组织名称 string
    ├ contacts ├ 对应组织联系人 string
    ├ mobile ├ 组织联系人手机 string
    ├ email ├ 组织邮箱 string
    └ otype_name └ 组织类型标记 string
  4. 请求示例
    请求例子:
     
    apirq('department', {
        data: {
            "dp_type": 3,
            "dp_id": "05d48fa8743570b0"
        }
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1523595976",
        "data": {
            "page": 1,
            "row": 15,
            "count": 3,
            "total_count": 3,
            "total_page": 1,
            "lists": [
                {
                    "id": 44,
                    "dp_type": 3,
                    "dp_id": "05d48fa8743570b0",
                    "pid": 0,
                    "status": 1,
                    "bandel": 0,
                    "create_time": "2018-03-27 13:27:06",
                    "create_by": {
                        "uid": "0000000000000101",
                        "code": "U4219695",
                        "username": "admin@cw",
                        "nickname": "系统内建财务员",
                        "realname": "系统内建财务员"
                    },
                    "update_time": "2018-03-27 13:27:06",
                    "update_by": {
                        "uid": "0000000000000101",
                        "code": "U4219695",
                        "username": "admin@cw",
                        "nickname": "系统内建财务员",
                        "realname": "系统内建财务员"
                    },
                    "name": "管理部",
                    "description": "天天向上机构管理部门",
                    "orginfo": {
                        "com_id": "05d48fa8743570b0",
                        "code": "C57732",
                        "merch_credential": "c17ec996d3ffc85f",
                        "join_type": 1,
                        "pid": "",
                        "status": 1,
                        "create_time": "2018-03-27 13:27:06",
                        "create_by": {
                            "uid": "0000000000000101",
                            "code": "U4219695",
                            "username": "admin@cw",
                            "nickname": "系统内建财务员",
                            "realname": "系统内建财务员"
                        },
                        "update_time": "2018-03-27 14:51:10",
                        "update_by": {
                            "uid": "0000000000000101",
                            "code": "U4219695",
                            "username": "admin@cw",
                            "nickname": "系统内建财务员",
                            "realname": "系统内建财务员"
                        },
                        "delete_time": null,
                        "runin_time": "-",
                        "runout_time": "-",
                        "country_id": 1,
                        "province_id": 0,
                        "city_id": 0,
                        "district_id": 0,
                        "street_id": 0,
                        "lng": "104.062087",
                        "lat": "30.665243",
                        "joining_fee": "0.00",
                        "name": "天天向上2",
                        "initials": "ttxs",
                        "english_name": "The day is up 2",
                        "address": "四川省成都市青羊区西御河街道大树拐街15号五福街56号院",
                        "contacts": "李白",
                        "mobile": "13212345678",
                        "tel": "0281324567",
                        "fax": "0281234564",
                        "email": "",
                        "cover": "",
                        "picture_list": "",
                        "img_business_license": "",
                        "img_transport_license": "",
                        "img_corporation_idcard": "",
                        "description": "中国人民伙历地有",
                        "remark": "",
                        "otype_name": "机构"
                    }
                },
                {
                    "id": 45,
                    "dp_type": 3,
                    "dp_id": "05d48fa8743570b0",
                    "pid": 0,
                    "status": 1,
                    "bandel": 0,
                    "create_time": "2018-03-27 13:27:07",
                    "create_by": {
                        "uid": "0000000000000101",
                        "code": "U4219695",
                        "username": "admin@cw",
                        "nickname": "系统内建财务员",
                        "realname": "系统内建财务员"
                    },
                    "update_time": "2018-03-27 13:27:07",
                    "update_by": {
                        "uid": "0000000000000101",
                        "code": "U4219695",
                        "username": "admin@cw",
                        "nickname": "系统内建财务员",
                        "realname": "系统内建财务员"
                    },
                    "name": "财务部",
                    "description": "天天向上机构财务部门",
                    "orginfo": {
                        "com_id": "05d48fa8743570b0",
                        "code": "C57732",
                        "merch_credential": "c17ec996d3ffc85f",
                        "join_type": 1,
                        "pid": "",
                        "status": 1,
                        "create_time": "2018-03-27 13:27:06",
                        "create_by": {
                            "uid": "0000000000000101",
                            "code": "U4219695",
                            "username": "admin@cw",
                            "nickname": "系统内建财务员",
                            "realname": "系统内建财务员"
                        },
                        "update_time": "2018-03-27 14:51:10",
                        "update_by": {
                            "uid": "0000000000000101",
                            "code": "U4219695",
                            "username": "admin@cw",
                            "nickname": "系统内建财务员",
                            "realname": "系统内建财务员"
                        },
                        "delete_time": null,
                        "runin_time": "-",
                        "runout_time": "-",
                        "country_id": 1,
                        "province_id": 0,
                        "city_id": 0,
                        "district_id": 0,
                        "street_id": 0,
                        "lng": "104.062087",
                        "lat": "30.665243",
                        "joining_fee": "0.00",
                        "name": "天天向上2",
                        "initials": "ttxs",
                        "english_name": "The day is up 2",
                        "address": "四川省成都市青羊区西御河街道大树拐街15号五福街56号院",
                        "contacts": "李白",
                        "mobile": "13212345678",
                        "tel": "0281324567",
                        "fax": "0281234564",
                        "email": "",
                        "cover": "",
                        "picture_list": "",
                        "img_business_license": "",
                        "img_transport_license": "",
                        "img_corporation_idcard": "",
                        "description": "中国人民伙历地有",
                        "remark": "",
                        "otype_name": "机构"
                    }
                },
                {
                    "id": 46,
                    "dp_type": 3,
                    "dp_id": "05d48fa8743570b0",
                    "pid": 0,
                    "status": 1,
                    "bandel": 0,
                    "create_time": "2018-03-27 13:27:07",
                    "create_by": {
                        "uid": "0000000000000101",
                        "code": "U4219695",
                        "username": "admin@cw",
                        "nickname": "系统内建财务员",
                        "realname": "系统内建财务员"
                    },
                    "update_time": "2018-03-27 13:27:07",
                    "update_by": {
                        "uid": "0000000000000101",
                        "code": "U4219695",
                        "username": "admin@cw",
                        "nickname": "系统内建财务员",
                        "realname": "系统内建财务员"
                    },
                    "name": "运营部",
                    "description": "天天向上机构运营部门",
                    "orginfo": {
                        "com_id": "05d48fa8743570b0",
                        "code": "C57732",
                        "merch_credential": "c17ec996d3ffc85f",
                        "join_type": 1,
                        "pid": "",
                        "status": 1,
                        "create_time": "2018-03-27 13:27:06",
                        "create_by": {
                            "uid": "0000000000000101",
                            "code": "U4219695",
                            "username": "admin@cw",
                            "nickname": "系统内建财务员",
                            "realname": "系统内建财务员"
                        },
                        "update_time": "2018-03-27 14:51:10",
                        "update_by": {
                            "uid": "0000000000000101",
                            "code": "U4219695",
                            "username": "admin@cw",
                            "nickname": "系统内建财务员",
                            "realname": "系统内建财务员"
                        },
                        "delete_time": null,
                        "runin_time": "-",
                        "runout_time": "-",
                        "country_id": 1,
                        "province_id": 0,
                        "city_id": 0,
                        "district_id": 0,
                        "street_id": 0,
                        "lng": "104.062087",
                        "lat": "30.665243",
                        "joining_fee": "0.00",
                        "name": "天天向上2",
                        "initials": "ttxs",
                        "english_name": "The day is up 2",
                        "address": "四川省成都市青羊区西御河街道大树拐街15号五福街56号院",
                        "contacts": "李白",
                        "mobile": "13212345678",
                        "tel": "0281324567",
                        "fax": "0281234564",
                        "email": "",
                        "cover": "",
                        "picture_list": "",
                        "img_business_license": "",
                        "img_transport_license": "",
                        "img_corporation_idcard": "",
                        "description": "中国人民伙历地有",
                        "remark": "",
                        "otype_name": "机构"
                    }
                }
            ]
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员