查询成本中心项角色人员

接口描述

此接口用于查询成本中心项角色的人员

接口权限

本接口需要集团权限

请求URI

/api/openapi/cost/center/items/roles

请求方式

GET

请求参数示例

/api/openapi/cost/center/items/roles?setOfBooksCode=DEFAULT_SOB&costCenterCode=PROJECT& costCenterItemCode=PROJECTITEM_001

请求参数说明

参数名 类型 是否必填 说明
setOfBooksCode String 所属账套编
costCenterCode String 成本中心编码
costCenterItemCode String 成本中心项编码

接口返回示例

    [
        {             
            "costCenterItemRoleCode": "9001",             
            "employeeId": "EMP-001"
        },         
        {             
            "costCenterItemRoleCode": "9001",             
            "employeeId": "EMP-002"
        },         
        {             
            "costCenterItemRoleCode": "9002",             
            "employeeId": "EMP-003"
        },         
        {             
            "costCenterItemRoleCode": "9002",             
            "employeeId": "EMP-004"
        }
    ]

接口返回字段

参数名 类型 说明
- CostCenterItemRoleUser[] 成本中心项角色列表

CostCenterItemRoleUser

字段名 类型 约束 说明
costCenterItemRoleCode String 最大长度 9 成本中心项角色编码
employeeId String 最大长度 32 员工工号

错误代码

errorCode message 说明
120003 缺少必填项:{0}
120004 参数长度非法:{0}长度必须在{1}到{2}个字符之间
61100002 帐套:{0}不存在或已失效
61100003 成本中心:{0}不存在或已失效
61100004 成本中心项:{0}不存在或已失效