从钉钉到金蝶云星空通过接口集成数据

源系统:钉钉
钉钉(DingTalk)是阿里巴巴集团打造的企业级智能移动办公平台,是数字经济时代的企业组织协同办公和应用开发平台。钉钉将IM即时沟通、钉钉文档、钉闪会、钉盘、Teambition、OA审批、智能人事、钉工牌、工作台深度整合,打造简单、高效、安全、智能的数字化未来工作方式,助力企业的组织数字化和业务数字化,实现企业管理“人、财、物、事、产、供、销、存”的全链路数字化。
接入系统:金蝶云星空
金蝶K/3Cloud结合当今先进管理理论和数十万家国内客户最佳应用实践,面向事业部制、多地点、多工厂等运营协同与管控型企业及集团公司,提供一个通用的ERP服务平台。K/3Cloud支持的协同应用包括但不限于:集中/分散销售、集中/分散采购、B2B电商管理、B2C电商中心、供应商协同、多工厂计划、跨工厂领料、跨工厂加工、工厂间调拨、内部交易及结算、集团财务管理、阿米巴经营等。
系统对接接口配置
异构系统具有非常丰富的业务流程、复杂的系统架构和服务接口。在很多情况下,这两个系统都是分别独立部署和运行的,各自拥有不同的技术栈和编程模型,甚至两者在系统平台、技术平台和编程语言上是完全异构的。那么对接就需要根据接口配置对应的规则,例如取数就要根据查询接口获取钉钉的数据,并且根据对应的条件进行取数,目标系统就必须根据目标系统的格式,以及获取的数据进行加工处理后进行写入到金蝶云星空中。轻易云集成平台的可视化配置轻松实现。数据管道ETL:构建一体化的数据融合平台。高级数据转换: 支持公式转换数据格式、支持脚本直接进行数据转换、支持可视化多维度数据处理。高性能实时处理:针对不同数据节点类型提供TB级吞吐量,秒级延迟的增量数据处理能力。自动将旧版web服务转变为基于云端微服务的API,统一接口输出标准。支持接口开放服务,实现内外部能力接入。

钉钉接口明细
- 调用接口:topapi/processinstance/get
- 接口名称:获取审批实例详情
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
process_code | 审批流的唯一码 | string | PROC-C20F7186-8491-4D6D-B0BC-35AE79450B42 |
start_time | 审批实例开始时间。Unix时间戳,单位毫秒。 | string | {{LAST_SYNC_TIME}}000 |
end_time | 审批实例结束时间,Unix时间戳,单位毫秒 | string | {{CURRENT_TIME}}000 |
size | 分页参数,每页大小,最多传20。 | string | 20 |
cursor | 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值。 | string | |
响应参数
字段 | 字段名称 | 类型 | 配置值 |
费用归属项目 | 费用归属项目 | string | |
报销类别 | 报销类别 | string | |
TextNote_7L0ZKXODKW40 | TextNote_7L0ZKXODKW40 | string | |
行政报销类型 | 行政报销类型 | string | |
项目报销类型 | 项目报销类型 | string | |
报销明细 | 报销明细 | array | |
报销明细.费用发生日期 | 费用发生日期 | string | |
报销明细.报销金额(元) | 报销金额(元) | string | |
报销明细.费用明细 | 费用明细 | string | |
报销明细.项目费用明细 | 项目费用明细 | array | |
报销明细.项目费用明细.componentName | componentName | string | |
报销明细.项目费用明细.componentType | componentType | string | |
报销明细.项目费用明细.props | props | string | |
报销明细.项目费用明细.总金额 | 总金额 | string | |
报销明细.项目费用明细.关联审批单 | 关联审批单 | string | |
报销明细.项目费用明细.TextNote-KDE5B2G3 | TextNote-KDE5B2G3 | string | |
报销明细.项目费用明细.电子发票 | 电子发票 | string | |
报销明细.项目费用明细.收款账号 | 收款账号 | string | |
报销明细.项目费用明细.公司帐号付款(如需公司帐号付款请选择) | 公司帐号付款(如需公司帐号付款请选择) | string | |
报销明细.项目费用明细.报销凭证拍照上传 | 报销凭证拍照上传 | string | |
报销明细.项目费用明细.附件 | 附件 | string | |
报销明细.项目费用明细.id | id | string | |
报销明细.项目费用明细.title | title | string | |
报销明细.项目费用明细.extend | extend | object | |
报销明细.项目费用明细.extend.create_time | create_time | string | |
报销明细.项目费用明细.extend.finish_time | finish_time | string | |
报销明细.项目费用明细.extend.originator_userid | originator_userid | string | |
报销明细.项目费用明细.extend.originator_dept_id | originator_dept_id | string | |
报销明细.项目费用明细.extend.status | status | string | |
报销明细.项目费用明细.extend.result | result | string | |
报销明细.项目费用明细.extend.business_id | business_id | string | |
报销明细.项目费用明细.extend.originator_dept_name | originator_dept_name | string | |
报销明细.项目费用明细.extend.biz_action | biz_action | string | |
金蝶云星空接口明细
- 调用接口:batchSave
- 接口名称:新增付款单
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
FBillNo | 单据编号 | string | {{extend.business_id}} |
FBillTypeID | 单据类型 | string | FKDLX01_SYS |
FDATE | 业务日期 | string | {{extend.finish_time}} |
FSETTLEORGID | 结算组织 | string | findCollection find Number from 723e2cb6-f80f-3823-8b4f-6e98b9713ba3 where Name={{费用归属项目}} |
FPAYORGID | 付款组织 | string | _findCollection find Number from 723e2cb6-f80f-3823-8b4f-6e98b9713ba3 where Name={{费用归属项目}} |
FCURRENCYID | 币别 | string | PRE001 |
FCONTACTUNITTYPE | 往来单位类型 | string | BD_Supplier |
FCONTACTUNIT | 往来单位 | string | {{项目报销明细.0.企业客户TextField_SAZV40M27KW0}} |
FRECTUNITTYPE | 收款单位类型 | string | BD_Supplier |
FRECTUNIT | 收款单位 | string | {{项目报销明细.0.企业客户TextField_SAZV40M27KW0}} |
FSETTLECUR | 结算币别 | string | PRE001 |
FREMARK | 备注 | string | {{title}}-{{项目报销类型}}-{{报销明细.费用明细}} |
FPAYBILLENTRY | 付款单明细 | array | 项目报销明细 |
FPAYBILLENTRY.FSETTLETYPEID | 结算方式 | string | findCollection find Number from 04463531-c6b1-3e53-b5d7-9d456a92d4cf where Name={{付款方式new}} |
FPAYBILLENTRY.FPURPOSEID | 付款用途 | string | SFKYT08_SYS |
FPAYBILLENTRY.FPAYTOTALAMOUNTFOR | 应付金额 | string | function {{项目费用明细.单价}}*{{项目费用明细.数量}} |
FPAYBILLENTRY.FMATERIALID | 物料编码 | string | |
FPAYBILLENTRY.FPRICE | 含税单价 | string | {{项目报销明细.0.单价}} |
FPAYBILLENTRY.FQTY | 数量 | string | {{项目费用明细.数量}} |
FPAYBILLENTRY.FCOSTID | 费用项目 | string | _findCollection find FNumber from b02f1e34-b500-3075-8b14-08fec61d08a4 where FName={{项目报销类型}} |
FPAYBILLENTRY.FCOMMENT | 备注 | string | {{报销明细.费用明细}} |
FPAYBILLENTRY.FDepartment | 部门 | string | _findCollection find Number from 400f56e7-e846-35e5-9017-c28fd7303fb0 where Name={{费用归属部门}} |
FPAYBILLENTRY.FormId | 业务对象表单Id | string | AP_PAYBILL |
FPAYBILLENTRY.Operation | 执行的操作 | string | BatchSave |
FPAYBILLENTRY.IsAutoSubmitAndAudit | 提交并审核 | bool | false |
FPAYBILLENTRY.IsVerifyBaseDataField | 验证基础资料 | bool | false |
响应参数
字段 | 字段名称 | 类型 | 配置值 |
callBackStrategy | 回写方案 | object | |
callBackStrategy.strategyId | 方案ID | string | 950d161e-e92d-3d49-9d70-342c1503f694 |
callBackStrategy.id | 审批实例ID | string | {{id}} |
callBackStrategy.business_id | 审批编号 | string | {{extend.business_id}} |
callBackStrategy.name | 收款信息 | string | {{收款信息.name}} |
数据对接效果
从API服务总线层面解决企业烟囱式业务系统集成现状 相互连接企业各业务系统,实现流程端到端打通,复用已有的业务系统能力,让集成架构、服务关系更清晰 使用统一的API管理平台,对API进行显性化、可视化,使所有API服务成为企业的数字资产,提升API利用率,发挥业务系统价值,实现企业IT资产的可插拔、可复用、可组成。
