Qeasy Cloud
Get Started

吉客云对接打通MySQL调拨查询接口与执行操作-v1接口

1 comments

吉客云对接打通MySQL调拨查询接口与执行操作-v1接口

用友对接

接通系统:吉客云

“吉客云”是一站式企业数字化解决方案系统,可实现业务、财务、办公、人事等一体化管理。相对于传统多套软件系统的集成方案,“吉客云”具有业务流程更流畅,数据共享更充分,使用成本更低廉等优势。不仅如此,通过“吉链”,可以快捷的与您的合作伙伴进行系统对接。同时“吉客云”还打造了供销关系、仓储委托关系、生产委外加工关系、物流代发关系等多种企业间数字化协作通道,数据对接就像加微信好友一样方便!

目标系统:MySQL

MySQL是一个关系型数据库管理系统,由瑞典MySQLAB公司开发,属于Oracle旗下产品。MySQL是最流行的关系型数据库管理系统之一,在WEB应用方面,MySQL是最好的RDBMS(RelationalDatabaseManagementSystem,关系数据库管理系统)应用软件之一。

数据集成方案配置

异构系统具有非常丰富的业务流程、复杂的系统架构和服务接口。在很多情况下,这两个系统都是分别独立部署和运行的,各自拥有不同的技术栈和编程模型,甚至两者在系统平台、技术平台和编程语言上是完全异构的。那么对接就需要根据接口配置对应的规则,例如取数就要根据查询接口获取吉客云的数据,并且根据对应的条件进行取数,目标系统就必须根据目标系统的格式,以及获取的数据进行加工处理后进行写入到MySQL中。轻易云集成平台的可视化配置轻松实现。
ERP接口数据集成
轻易云数据集成中台

吉客云接口明细

  • 调用接口:erp.allocate.get
  • 接口名称:调拨查询
  • 方法:POST

请求参数

字段字段名称类型配置值 pageIndex页码(默认从0开始)string pageSize每页条数(默认50)string50 status调拨单状态(多个中间逗号隔开)string startCreateTime创建时间的起始时间string2022-09-01 00:00:00 endCreateTime创建时间结束时间string{{CURRENT_TIME datetime}} inWarehouseCode调入仓库编号string outSkuCode外部货品主键(支持批量 例:123,456)string outWarehouseCode调出仓库编号string allocateNos调拨单号,多个中间逗号隔开string instatus入库状态 (支持批量查询,多个值逗号隔开 1=入库等待,2=部分入库,3=入库完成)string3 outstatus出库状态(支持批量,多个值逗号隔开 1=出库等待,2=部分出库,3=出库完成)string3

响应参数

字段字段名称类型配置值 isAllocateDifferentCompany是否跨公司调拨(0-否 1-是)string allocateNo调拨单号string outWarehouseId调出仓库idstring inWarehouseId调入仓库idstring outWarehouseCode调出仓库编号string intWarehouseCode调入仓库编号string outWarehouseName调出仓库名称string intWarehouseName调入仓库名称string allocateType调拨类型:0=同价调拨1=异价调拨string allocatePrice1=批发价,2=零售价,3=会员价string applyUserId申请人id,关联用户表string applyUserName申请人姓名string applyDepartId申请部门idstring applyDepartName申请人部门string applyDate申请时间string operator制单人string operatorId制单人idstring auditUserId审核人idstring auditUserName审核人姓名string auditDate审核时间(时间戳)string status0=草稿1=待审核2=已审核3=已关闭 10-审核中string outStatus出库状态1=出库等待2=部分出库3=出库完成string inStatus入库状态1=入库等待2=部分入库3=入库完成string memo备注string goodsCount货品种类string gmtCreate创建时间(时间戳)string allocatePriceType调拨价格类型:1=批发价,2=零售价,3=会员价string flagData标记Id集合string companyId公司idstring companyName公司名称string planOutDate预计出库时间(时间戳)string planInDate预计入库时间(时间戳)string stockAllocateDetailViews库存调拨明细array stockAllocateDetailViews.allocateId调拨单id,关联调拨单string stockAllocateDetailViews.skuCount数量string stockAllocateDetailViews.totalAmount总金额string stockAllocateDetailViews.allocateDetailId主键idstring stockAllocateDetailViews.goodsId货品idstring stockAllocateDetailViews.goodsName货品名称(冗余字段)string stockAllocateDetailViews.skuIdskuidstring stockAllocateDetailViews.skuNamesku名称,冗余字段string stockAllocateDetailViews.unitName计量单位名称(冗余字段)string stockAllocateDetailViews.skuPrice单价string stockAllocateDetailViews.outCount已出库数量string stockAllocateDetailViews.inCount已入库数量string stockAllocateDetailViews.isCertified是否正品string stockAllocateDetailViews.rowRemark备注string stockAllocateDetailViews.skuBarcode条形码string stockAllocateDetailViews.goodsNo商品编号string stockAllocateDetailViews.assistUnit辅助单位string stockAllocateDetailViews.outSkuCode外部货品主键string stockAllocateDetailViews.isNegativeStock是否允许负库存出库1-是 空或者0是否string stockAllocateDetailViews.stockAllocateExpressInfo收发货人信息array stockAllocateDetailViews.stockAllocateExpressInfo.id主键idstring stockAllocateDetailViews.stockAllocateExpressInfo.relDataNo关联入库申请单编号string stockAllocateDetailViews.stockAllocateExpressInfo.sendCompanyName发件公司名称string stockAllocateDetailViews.stockAllocateExpressInfo.send发件人string stockAllocateDetailViews.stockAllocateExpressInfo.sendTel发件人电话string stockAllocateDetailViews.stockAllocateExpressInfo.sendPhone发件人手机号string stockAllocateDetailViews.stockAllocateExpressInfo.sendEmail发件人邮箱string stockAllocateDetailViews.stockAllocateExpressInfo.sendCountryName发件人国家string stockAllocateDetailViews.stockAllocateExpressInfo.sendProvinceName发件人省string stockAllocateDetailViews.stockAllocateExpressInfo.sendCityName发件人市string stockAllocateDetailViews.stockAllocateExpressInfo.sendTownName发件人镇,区string stockAllocateDetailViews.stockAllocateExpressInfo.sendStreetName发件人街道string stockAllocateDetailViews.stockAllocateExpressInfo.sendAddress发件人详细地址string stockAllocateDetailViews.stockAllocateExpressInfo.receiveCompanyName收件公司名称string stockAllocateDetailViews.stockAllocateExpressInfo.receive收件人string stockAllocateDetailViews.stockAllocateExpressInfo.receiveTel收件人电话string stockAllocateDetailViews.stockAllocateExpressInfo.receivePhone收件人手机号string stockAllocateDetailViews.stockAllocateExpressInfo.receiveEmail收件人邮箱string stockAllocateDetailViews.stockAllocateExpressInfo.receiveCountryName收件人国家string stockAllocateDetailViews.stockAllocateExpressInfo.receiveProvinceName收件人省string stockAllocateDetailViews.stockAllocateExpressInfo.receiveCityName收件人市string stockAllocateDetailViews.stockAllocateExpressInfo.receiveTownName收件人镇,区string stockAllocateDetailViews.stockAllocateExpressInfo.receiveStreetName收件人街道string stockAllocateDetailViews.stockAllocateExpressInfo.receiveAddress收件人详细地址string

MySQL接口明细

  • 调用接口:execute
  • 接口名称:执行操作-v1
  • 方法:POST

请求参数

字段字段名称类型配置值 main_params主参数object main_params.bill_no单据编号string{{allocateNo}} main_params.status状态string1 main_params.stock_org_id调入库存组织stringfindCollection find textField_l2ib4q9s from 0ce3a160-9fb2-36e5-a2ac-57f5ad0f3c72 where textField_l2ib4q9p={{intWarehouseCode}} main_params.date日期string{{auditDate}} main_params.bill_type_id单据类型stringZJDB01_SYS main_params.owner_type_id_head调入货主类型stringBD_OwnerOrg main_params.owner_id_head调入货主??string_findCollection find textField_l2ib4q9s from 0ce3a160-9fb2-36e5-a2ac-57f5ad0f3c72 where textField_l2ib4q9p={{intWarehouseCode}} main_params.transfer_type调拨类型stringInnerOrgTransfer main_params.stock_out_org_id调出库存组织stringfindCollection find textField_l2ib4q9s from 0ce3a160-9fb2-36e5-a2ac-57f5ad0f3c72 where textField_l2ib4q9p={{outWarehouseCode}} main_params.owner_type_out_id_head调出货主类型stringBD_OwnerOrg main_params.owner_out_id_head调出货主??string_findCollection find textField_l2ib4q9s from 0ce3a160-9fb2-36e5-a2ac-57f5ad0f3c72 where textField_l2ib4q9p={{outWarehouseCode}} main_params.transfer_direction调拨方向stringGENERAL main_params.remark备注string{{memo}} main_params.create_time创建时间stringfunction FROM_UNIXTIME( ( {{gmtCreate}} / 1000 ) ,'%Y-%m-%d %T' ) main_params.created_by创建者string{{applyUserName}} main_params.update_time更新时间string_function FROM_UNIXTIME( ( {{auditDate}} / 1000 ) ,'%Y-%m-%d %T' ) main_params.updated_by更新者string{{auditUserName}} main_params.extend_params_11:1扩展参数arraystockAllocateDetailViews main_params.extend_params_1.lastInsertIdorder_idstring:lastInsertId main_params.extend_params_1.material_id物料编码string{{stockAllocateDetailViews.goodsNo}} main_params.extend_params_1.src_stock_id调出仓库string{{outWarehouseId}} main_params.extend_params_1.dest_stock_id调入仓库string{{inWarehouseId}} main_params.extend_params_1.unit_id单位idstringPcs main_params.extend_params_1.qty数量string{{stockAllocateDetailViews.skuCount}} main_params.extend_params_1.remark备注string{{stockAllocateDetailViews.rowRemark}} main_params.extend_params_1.source_id源单id??stringnull main_params.extend_params_1.source_detail_id源单明细行id??stringnull main_params.extend_params_1.source_code源单单号??stringnull main_params.extend_params_1.source_type源单类型??stringnull main_params.extend_params_1.main_sql主语句stringINSERT INTO lehua.wh_transfer_direct ( bill_no, status, stock_org_id, date, bill_type_id, owner_type_id_head, owner_id_head, transfer_type, stock_out_org_id, owner_type_out_id_head, owner_out_id_head, transfer_direction, remark, create_time, created_by, update_time, updated_by) VALUES ( <{bill_no: }>, <{status: }>, <{stock_org_id: }>, <{date: CURRENT_TIMESTAMP}>, <{bill_type_id: }>, <{owner_type_id_head: }>, <{owner_id_head: }>, <{transfer_type: }>, <{stock_out_org_id: }>, <{owner_type_out_id_head: }>, <{owner_out_id_head: }>, <{transfer_direction: }>, <{remark: }>, <{create_time: 0000-00-00 00:00:00}>, <{created_by: }>, <{update_time: 0000-00-00 00:00:00}>, <{updated_by: }>); main_params.extend_params_1.extend_sql_11:1扩展语句stringINSERT INTO lehua.wh_transfer_direct_detail ( order_id, material_id, src_stock_id, dest_stock_id, unit_id, qty, remark, source_id, source_detail_id, source_code, source_type) VALUES ( <{lastInsertId: }>, <{material_id: }>, <{src_stock_id: }>, <{dest_stock_id: }>, <{unit_id: }>, <{qty: }>, <{remark: }>, <{source_id: }>, <{source_detail_id: }>, <{source_code: }>, <{source_type: }>);

系统数据对接

从API层面解决企业烟囱式业务系统集成现状,实现深度的业务流程拉通吉客云到MySQL之间数据集成;通过API连接各业务系统,复用已有的业务系统能力,让集成架构、服务关系更清晰。使用统一的API管理平台,对API进行显性化、可视化,使所有API服务成为企业的数字资产,提升复用率和价值。全面管控企业的API资产,梳理现有业务系统的API。实现API文档的统一管理,建立API的上线、下线、监控的统一管理体系及标准规范。已链接和打通主流SaaS系统超过100+,快速对接各种API接口,实现云上云下的互联互通。将SaaS和本地业务系统联接起来,打破时间与空间界限,打通原有核心数据及SaaS应用,构建可平滑演进的企业IT架构。
钉钉对接