增量更新员工权限
- 接口:/employee/business/privilege/incremental
- Method:POST
- 数据格式:JSON
请求参数
参数 | 类型 | 必须 | 默认值 | 描述 |
---|---|---|---|---|
employeeId | string | Y | 员工工号 | |
businessPrivileges | array | N | 权限组, 可输入内容下面描述2 | |
businessPrivileges.businessPrivilege | string | Y | 权限名称 | |
businessPrivileges.assume | bool | Y | N | true表示增加权限, false表示减少权限 |
businessPrivileges.visibility | string | N | 权限适用范围类型, 可选用OPEN, WHITE_LIST | |
businessPrivileges.subsidiaries | array | N | 权限适用业务实体, 业务实体的业务编码 | |
businessPrivileges.departments | array | N | 权限适用部门, 部门的业务编码 | |
businessPrivileges.formSubTypeCodeVisibility | string | N | 权限单据小类适用范围类型, 可选用OPEN,WHITE_LIST | |
businessPrivileges.formSubTypes | array | N | 权限适用单据小类, 单据小类的业务编码 | |
businessPrivileges.roleVisibility | string | N | 角色适用范围类型,目前只适用于员工管理,可选用OPEN, WHITE_LIST | |
businessPrivileges.roles | array | N | 角色适用范围,目前只适用于员工管理, 可选用的角色名称:[SYSTEM_ADMIN、FINANCIAL_ADMIN、FINANCE、FINANCIAL_REPAYMENT、FINANCIAL_CORP_REPAYMENT、TELLER、REPORT_ADMIN] | |
businessPrivileges.businessPrivilegeVisibility | string | N | 业务权限适用范围类型,目前只适用于员工管理,可选用OPEN, WHITE_LIST | |
businessPrivileges.businessPrivileges | array | N | 业务权限适用范围,目前只适用于员工管理,传入值为业务权限编码,如CORP_REIMBURSE |
描述2:以下描述格式为:业务权限(支持适用范围,若业务权限后面没有括号内容,表示暂不支持适用范围):
传入的编码字段:
- 对公支付:CORP_REIMBURSE
- 对公未结清业务: CORP_UNSETTLED_PROCESS
- 采购合同:CORP_CONTRACT
- 信用管理:CREDIT_MANAGEMENT
- 第三方服务:THIRD_PARTY_SERVICE
- 智能签收(智能审核):SMART_AUDIT
- 辅助核算:COST_TRACKING_MANAGEMENT
- 供应商维护(业务实体):SUPPLIER_MAINTENANCE
- 单据流程处理(业务实体):FORM_TASK_HANDLE
- 支付设置(业务实体):PAYMENT_MANAGEMENT
- 汇率管理(业务实体):EXCHANGE_RATE_MANAGEMENT
- 开票信息(业务实体):TAXPAYER_INFO_MANAGEMENT
- 员工管理(业务实体):STAFF_MANAGEMENT
- 附件导出(业务实体,部门):ATTACHMENT_DOWNLOAD
- 凭证(业务实体,部门):VOUCHER
- 借款管理(业务实体,部门):LOAN_MANAGEMENT
- 矩阵管理(业务实体):MATRIX_MANAGEMENT
- 单据查询(业务实体,部门,适用单据类型):FORM_QUERY
- 发票管理(业务实体):INVOICE_MANAGEMENT
- 合同台账(业务实体):CONTRACT_ACCOUNT
- 编制项目预算 :BUDGET_AUX_FORMULATE
- 编制个人预算 :BUDGET_PERSONAL_FORMULATE
- 编制业务实体预算(业务实体):BUDGET_SUBSIDIARY_FORMULATE
- 便是部门预算(部门):BUDGET_DEPARTMENT_FORMULATE
- 预算规则设置 :BUDGET_MANAGEMENT_SETTING
- 授权管理 :AUTHORIZATION_MANAGEMENT_SETTING
示例
请求数据
{
"data":{
"employeeId":"1001",
"businessPrivileges":[{
"businessPrivilege":"CORP_REIMBURSE",
"assume":true,
"visibility":"OPEN"//增加没有适用范围的角色
},{
"businessPrivilege":"SUPPLIER_MAINTENANCE",
"assume":false //移除角色
},{
"businessPrivilege":"STAFF_MANAGEMENT",
"assume":true,
"visibility":"WHITE_LIST",
"subsidiaries":["sub1","sub2"],
"departments":["dep1","dep2"]//增加有使用范围的角色
"roleVisibility":"WHITE_LIST",
"roles":["SYSTEM_ADMIN","FINANCIAL_ADMIN","FINANCE","FINANCIAL_REPAYMENT","FINANCIAL_CORP_REPAYMENT","TELLER"],
"businessPrivilegeVisibility":"WHITE_LIST",
"businessPrivileges":["STAFF_MANAGEMENT","CORP_REIMBURSE"]
}]
},
"timestamp":1497603851171
}
返回数据返回数据
{
"code": "ACK",
"message": "操作成功!",
"data": {},
"args": null,
"linkDetail": false,
"nonBizError": false
}