加载操作接口
1 接口介绍
加载操作服务是指通过在url参数中指定某个具体的业务对象主键,调用服务按结构化返回该业务对象所有数据。
2 注意事项
加载服务仅支持加载单条数据,请求参数必须为主键”id”或”number”,接口会根据主键加载出该业务对象的所有明细信息。当单据或基础资料中存在附件时,也可以通过加载接口得到该插件的相关信息,如url存放地址等。
3 接口示例
3.1 币别加载
URL:{{host}}/kapi/sys/bd_currency/load?number=CNY 请求方式:GET 请求Header参数: Content-Type=application/json accessToken: xxxxxxxxxxxxx |
请求结果: { "data": { "id": 1, "number": "CNY", "name": { "zh_TW": "人民幣", "en_US": "Yuan Renminbi", "GLang": "人民币", "zh_CN": "人民币" }, "status": "C", "creator": { "id": 1, "number": "administrator", "name": { "GLang": "administrator", "zh_CN": "administrator" }, "masterid": 1 }, "modifier": { "id": 1164285916651471872, "number": "0003", "name": { "zh_TW": "李江超", "GLang": "李江超", "zh_CN": "李江超" }, "masterid": 1164285916651471872 }, "enable": "1", "createtime": "2021-07-26 18:08:11", "modifytime": "2021-08-29 18:21:59", "masterid": 1, "disabler": null, "disabledate": null, "amtprecision": 4, "priceprecision": 6, "isshowsign": true, "format": "1", "sign": "¥", "description": { "zh_TW": "", "en_US": "", "zh_CN": "" }, "logo": "", "issystem": true, "sortcode": "851", "_attachments": [] }, "success": true, "errorCode": "success", "message": null } |
3.2 demo加载(含附件)
URL:{{host}}/kapi/sys/isc_demo_basedata_1/load?number=fujiantest 请求方式:GET 请求Header参数: Content-Type=application/json accessToken: xxxxxxxxxxxxx |
请求结果: { "data": { "id": 1360936366220784640, "number": "fujiantest", "name": "fujiantest", "creator": { "id": 1062210004364308480, "number": "52360", "name": { "GLang": "张三", "zh_CN": "张三" }, "masterid": 1062210004364308480 }, "createtime": "2022-02-21 17:37:08", "modifier": { "id": 1062210004364308480, "number": "52360", "name": { "GLang": "张三", "zh_CN": "张三" }, "masterid": 1062210004364308480 }, "modifytime": "2022-02-21 17:38:41", "alias_name": { "zh_TW": "test", "zh_CN": "test" }, "entryentity": [], "itemclasstype": "", "itemclass": null, "attachmentfield": [], "_attachments": [ { "panel": "attachmentpanelap", "url": "https://feature.kingdee.com:1026/patchopen/attachment/download.do?path=/43b5e3fd617349719d80068fa7d3b4f2&kdedcba=MTE3MzkxMDUzNjA2MDkyODAwMF9EeUk4YjJKTG85dGs5SGxUSXVqZHNaWkRKbnJLeEY5OVRmVTYwbVlzYXVhSFFhU0xCVUMwbkYxOUNPdjQzMVQzTUVrbWJVcEFCTDdBOHMyQXM1dXVYWGQ3aldXV0tVSmFLMTRnfn4xNjQ1NDM2MzI2NTQ2" } ] }, "success": true, "errorCode": "success", "message": null } |
4 返回参数说明
序号 | 参数 | 解释 | 返回值实例 |
1 | success | 是否成功 | true/false |
2 | errorCode | 错误编码 | success/false |
3 | message | 提示信息 | null |
4 | data | 业务对象数据 | { "id": 1,"number": "CNY", "name": {"zh_TW": "人民幣",...} |
加载操作接口
本文2024-09-23 00:26:54发表“云苍穹知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-cangqiong-139526.html