钉钉和金蝶云星空集成接口设计

接入系统:钉钉
钉钉是阿里巴巴集团打造的企业级智能移动办公平台,是数字经济时代的企业组织协同办公和应用开发平台。钉钉将IM即时沟通、钉钉文档、钉闪会、钉盘、Teambition、OA审批、智能人事、钉工牌、工作台深度整合,打造简单、高效、安全、智能的数字化未来工作方式,助力企业的组织数字化和业务数字化。
接通系统:金蝶云星空
金蝶K/3Cloud在总结百万家客户管理最佳实践的基础上,提供了标准的管理模式;通过标准的业务架构:多会计准则、多币别、多地点、多组织、多税制应用框架等,有效支持企业的运营管理;K/3Cloud提供了标准的业务建模:35种标准ERP领域模型、1046种模型元素、21243种模型元素属性组合,288个业务服务构件,让企业及伙伴可快速构建出行业化及个性化的应用。
配置集成方案
系统对接前期需要通过调研公司的业务,规划出最便捷,效率最高的整体流程。通过流程我们需要建立对应的方案来吧这些流程一一的落地,轻易云集成平台开箱即用的、可视化拖、拉、拽实现接口服务编排与聚合。只需要根据指引设定好对应的参数即可启动使用。设定好源平台:钉钉的接口参数设置,以及设定好目标平台:金蝶云星空的映射,即可启动方案进行测试



钉钉接口明细
- 接口:topapi/processinstance/get
- 接口名称:获取审批实例详情
- 接口方法:POST
请求参数
字段 | 名称 | 类型 |
process_code | 审批流的唯一码 | string |
start_time | 审批实例开始时间。Unix时间戳,单位毫秒。 | string |
end_time | 审批实例结束时间,Unix时间戳,单位毫秒 | string |
cursor | 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值。 | string |
size | 分页参数,每页大小,最多传20。 | string |
响应参数
字段 | 名称 | 类型 | 描述 |
费用归属项目 | 费用归属项目 | string | autoFillResponse |
报销类别 | 报销类别 | string | _autoFillResponse |
TextNote_7L0ZKXODKW40 | TextNote_7L0ZKXODKW40 | string | autoFillResponse |
行政报销类型 | 行政报销类型 | string | _autoFillResponse |
项目报销类型 | 项目报销类型 | string | autoFillResponse |
报销明细 | 报销明细 | array | _autoFillResponse |
报销明细.费用发生日期 | 费用发生日期 | string | autoFillResponse |
报销明细.报销金额(元) | 报销金额(元) | string | _autoFillResponse |
报销明细.费用明细 | 费用明细 | string | autoFillResponse |
报销明细.项目费用明细 | 项目费用明细 | array | _autoFillResponse |
报销明细.项目费用明细.componentName | componentName | string | autoFillResponse |
报销明细.项目费用明细.componentType | componentType | string | _autoFillResponse |
报销明细.项目费用明细.props | props | string | autoFillResponse |
报销明细.项目费用明细.总金额 | 总金额 | string | _autoFillResponse |
报销明细.项目费用明细.关联审批单 | 关联审批单 | string | autoFillResponse |
报销明细.项目费用明细.TextNote-KDE5B2G3 | TextNote-KDE5B2G3 | string | _autoFillResponse |
报销明细.项目费用明细.电子发票 | 电子发票 | string | autoFillResponse |
报销明细.项目费用明细.收款账号 | 收款账号 | string | _autoFillResponse |
报销明细.项目费用明细.公司帐号付款(如需公司帐号付款请选择) | 公司帐号付款(如需公司帐号付款请选择) | string | autoFillResponse |
报销明细.项目费用明细.报销凭证拍照上传 | 报销凭证拍照上传 | string | _autoFillResponse |
报销明细.项目费用明细.附件 | 附件 | string | autoFillResponse |
报销明细.项目费用明细.id | id | string | _autoFillResponse |
报销明细.项目费用明细.title | title | string | autoFillResponse |
报销明细.项目费用明细.extend | extend | object | _autoFillResponse |
报销明细.项目费用明细.extend.create_time | create_time | string | autoFillResponse |
报销明细.项目费用明细.extend.finish_time | finish_time | string | _autoFillResponse |
报销明细.项目费用明细.extend.originator_userid | originator_userid | string | autoFillResponse |
报销明细.项目费用明细.extend.originator_dept_id | originator_dept_id | string | _autoFillResponse |
报销明细.项目费用明细.extend.status | status | string | autoFillResponse |
报销明细.项目费用明细.extend.result | result | string | _autoFillResponse |
报销明细.项目费用明细.extend.business_id | business_id | string | autoFillResponse |
报销明细.项目费用明细.extend.originator_dept_name | originator_dept_name | string | _autoFillResponse |
报销明细.项目费用明细.extend.biz_action | biz_action | string | _autoFillResponse |
金蝶云星空接口明细
- API:batchSave
- NAME:新增付款单
- METHOD:POST
请求参数
接口字段 | 名称 | 预设值 |
FBillNo | 单据编号 | {{extend.business_id}} |
FBillTypeID | 单据类型 | FKDLX04_SYS |
FDATE | 业务日期 | {{extend.finish_time}} |
FSETTLEORGID | 结算组织 | findCollection find Number from 723e2cb6-f80f-3823-8b4f-6e98b9713ba3 where Name={{费用归属项目}} |
FPAYORGID | 付款组织 | _findCollection find Number from 723e2cb6-f80f-3823-8b4f-6e98b9713ba3 where Name={{费用归属项目}} |
FCURRENCYID | 币别 | PRE001 |
FCONTACTUNITTYPE | 往来单位类型 | BD_Department |
FCONTACTUNIT | 往来单位 | {{费用归属部门关联}} |
FRECTUNITTYPE | 收款单位类型 | BD_Department |
FRECTUNIT | 收款单位 | {{费用归属部门_关联}} |
FSETTLECUR | 结算币别 | PRE001 |
FREMARK | 备注 | {{title}}-{{项目报销类型}}-{{报销明细.费用明细}} |
FPAYBILLENTRY | 付款单明细 | 报销明细 |
FPAYBILLENTRY.FSETTLETYPEID | 结算方式 | {{付款方式}} |
FPAYBILLENTRY.FPURPOSEID | 付款用途 | SFKYT001 |
FPAYBILLENTRY.FPAYTOTALAMOUNTFOR | 应付金额 | {{报销明细.报销金额(元)}} |
FPAYBILLENTRY.FCOSTID | 费用项目 | findCollection find FNumber from b02f1e34-b500-3075-8b14-08fec61d08a4 where FName={{行政报销类型}} |
FPAYBILLENTRY.FCOMMENT | 备注 | {{报销明细.费用明细}} |
FPAYBILLENTRY.FOPPOSITEBANKACCOUNT | 对方银行账号 | _function CASE LOCATE('ALIPAY_ACCOUNT','{{收款信息.identityType}}') WHEN 0 THEN '{{收款信息.cardNo}}' ELSE '{{收款信息.logonId}}' END |
FPAYBILLENTRY.FOPPOSITECCOUNTNAME | 对方账户名称 | {{收款信息.name}} |
FPAYBILLENTRY.FDepartment | 部门 | _findCollection find Number from 400f56e7-e846-35e5-9017-c28fd7303fb0 where Name={{费用归属部门}} |
FPAYBILLENTRY.FormId | 业务对象表单Id | AP_PAYBILL |
FPAYBILLENTRY.Operation | 执行的操作 | BatchSave |
FPAYBILLENTRY.IsAutoSubmitAndAudit | 提交并审核 | false |
FPAYBILLENTRY.IsVerifyBaseDataField | 验证基础资料 | false |
响应参数
接口字段 | 名称 | 预设值 |
callBackStrategy | 回写方案 | |
callBackStrategy.strategyId | 方案ID | a9138482-05d7-36b8-a20e-2f3bdb3f90fb |
callBackStrategy.id | 审批实例ID | {{id}} |
callBackStrategy.business_id | 审批编号 | {{extend.business_id}} |
callBackStrategy.name | 收款信息 | {{收款信息.name}} |
callBackStrategy.originator_userid | 发起人 | {{extend.originator_userid}} |
系统集成总览
随着企业数字化业务的深入发展,对于企业的 IT 或者 CIO 来讲,正在面临一个愈发重要的问题——系统的结构太复杂了,尤其是头部企业,至少有十多套系统,这些系统之间的蛛网状的接口如果经常出问题。企业内部以及企业内部与外部建立起越来越多的业务应用系统,如何整合企业的现有IT资源,使企业中计算机孤岛式的应用向集体协作的方向发展,发挥资源效益的最大化,降低企业成本,正在逐渐成为企业关注的重要问题。用户希望企业内所有系统集成在一个平台上,操作统一,以节省培训时间。使用在轻易云应用集成平台 + MDM基础数据平台的解决方案中,轻易云应用集成平台负责实现异构、分布式系统之间互联互通,实现服务API治理以及数据传输交换。通过轻易云预置的各种适配器组件,连接现有各孤立应用系统,以图形化、拖拽方式构建集成流程和服务,提高应用系统集成工作效率,降低异构系统集成风险。针对未来可能出现的业务需求变更,在应用集成平台上进行动态调整,实现各应用系统之间的集成策略平滑升级。


