MySQL对接打通金蝶云星空SELECT语句接口与采购入库新增接口

数据源系统:MySQL
MySQL是一个关系型数据库管理系统,由瑞典MySQLAB公司开发,属于Oracle旗下产品。MySQL是最流行的关系型数据库管理系统之一,在WEB应用方面,MySQL是最好的RDBMS(RelationalDatabaseManagementSystem,关系数据库管理系统)应用软件之一。
集成系统:金蝶云星空
金蝶K/3Cloud在总结百万家客户管理最佳实践的基础上,提供了标准的管理模式;通过标准的业务架构:多会计准则、多币别、多地点、多组织、多税制应用框架等,有效支持企业的运营管理;K/3Cloud提供了标准的业务建模:35种标准ERP领域模型、1046种模型元素、21243种模型元素属性组合,288个业务服务构件,让企业及伙伴可快速构建出行业化及个性化的应用。
数据接口配置方案
数据集成平台对应的配置MySQL与金蝶云星空的对接只要三步就能完成两个系统之间的数据对接。第一步根据MySQL的接口参数要求记录在轻易云集成平台。第二步配置MySQL与金蝶云星空之间的字段对应关系(更多方案可借鉴轻易云数据集成社区论坛中找到相关方案信息)第三步完成方案的检查参数设置:传递时间、重试次数、是否启动、前置条件等上线运行。


MySQL接口明细
- API:select
- NAME:SELECT语句
- METHOD:POST
请求参数
接口字段 | 字段名称 | 预设值 | 描述 |
main_params | 主参数 | | |
main_params.limit | limit | {{PAGINATION_PAGE_SIZE}} | |
main_params.offset | offset | {{PAGINATION_START_ROW}} | |
main_params.main_sql | 主查询语句 | select * from t_STK_InStock where FBillTypeID='委外' and create_time>'{{LAST_SYNC_TIME datetime}}' and FSupplierId <> '套装虚拟供应商' limit :limit offset :offset | |
响应参数
接口字段 | 字段名称 | 预设值 | 描述 |
FBillTypeID | 单据类型 | | autoFillResponse |
FBillNo | 单据编号 | | _autoFillResponse |
FDate | 入库日期 | | autoFillResponse |
FSupplierId | 供应商 | | _autoFillResponse |
FStockOrgId | 收料组织 | | autoFillResponse |
FPurchaseOrgId | 采购组织 | | _autoFillResponse |
FOwnerTypeIdHead | 货主类型 | | autoFillResponse |
FOwnerIdHead | 货主 | | _autoFillResponse |
Remarks | 备注 | | autoFillResponse |
FMaterialId | 物料编码 | | _autoFillResponse |
FRealQty | 实收数量 | | autoFillResponse |
FStockId | 仓库 | | _autoFillResponse |
FPriceUnitID | 计价单位 | | autoFillResponse |
FRemainInStockQty | 采购数量 | | _autoFillResponse |
FPOOrderNo | 采购订单号 | | autoFillResponse |
FApproveDate | 审核时间 | | _autoFillResponse |
FTaxPrice | 含税单价 | | |
FBUSINESSTYPE | 加工模式 | | |
金蝶云星空接口明细
- 接口:batchSave
- 接口名称:采购入库新增
- 接口方法:POST
请求参数
字段 | 名称 | 类型 | 描述 |
FBillTypeID | 单据类型 | string | |
FStockOrgId | 库存组织 | string | |
FAffairType | 事务类型 | string | |
FDate | 日期 | string | |
FOwnerTypeIdHead | 成品货主类型 | string | |
FOwnerIdHead | 成品货主 | string | |
FSubProOwnTypeIdH | 子件货主类型 | string | |
FSubProOwnerIdH | 子件货主 | string | |
FEntity | FEntity | array | |
FEntity.FMaterialID | 物料编码 | string | |
FEntity.FQty | 数量 | string | |
FEntity.FStockID | 仓库 | string | |
FEntity.FOwnerTypeID | 货主类型 | string | |
FEntity.FOwnerID | 货主 | string | |
FEntity.FKeeperTypeID | 保管者类型 | string | |
FEntity.FKeeperID | 保管者 | string | |
FEntity.FInstockDate | 入库日期 | string | |
FEntity.FSubEntity | 子件表 | array | |
FEntity.FSubEntity.FMaterialIDSETY | 物料编码 | string | |
FEntity.FSubEntity.FQtySETY | 数量 | string | |
FEntity.FSubEntity.FStockIDSETY | 仓库 | string | |
FEntity.FSubEntity.FKeeperTypeIDSETY | 保管者类型 | string | |
FEntity.FSubEntity.FKeeperIDSETY | 保管者 | string | |
FEntity.FSubEntity.FOwnerTypeIDSETY | 货主类型 | string | |
FEntity.FSubEntity.FOwnerIDSETY | 货主 | string | |
FEntity.FBillNo | FBillNo | string | |
FEntity.FormId | 业务对象表单Id | string | 必须填写金蝶的表单ID如😛UR_PurchaseOrder |
FEntity.Operation | 执行的操作 | string | |
FEntity.IsAutoSubmitAndAudit | 提交并审核 | bool | |
FEntity.IsVerifyBaseDataField | 验证基础资料 | bool | 是否验证所有的基础资料有效性,布尔类,默认false(非必录) |
数据对接价值
通过数据集成平台可视化的快速配置调用接口打通MySQL与金蝶云星空之间的数据接口,使得两个系统之间的对接更加快捷、稳定。轻易云数据集成平台打破信息孤岛、适配多种场景、降低运营成本、缩短开发周期、灵活调度配置是这种多系统数据打通时的特性优势。采用元数据模型驱动的低代码集成工具,基于系统预置的数据模型、映射、编排、日志、脚本等集成核心引擎,通过可视化配置,快速实现客户灵活多变的动态集成需求,让集成开发简单、执行过程可靠、问题风险可控。

