kingdee-schema
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kingdee-schema" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-afd53cdccbab642caa5f04f53d653c6e752b5f6d70df9cdfc4e00a5435555b9b. Verify the upstream source and version against https://skillhub.cn/skills/user_2de6ec79/kingdee-schema before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A K3 Cloud (Kingdee Cloud) database schema query skill for looking up supply chain module table structures, field definitions, indexes, and constraints. Supports queries by table name or Chinese name and provides SQL examples and table relationship explanations; trigger keywords include Kingdee table structure, K3 table structure, Kingdee fields, and common table names such as T_SAL, T_PUR, T_BD, T_STK.
Introduction source: third_party · user_2de6ec79 · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: kingdee-schema
description: 金蝶云星空(K3 Cloud)数据库表结构查询技能。用于查询金蝶云星空供应链模块的数据库表结构、字段定义、索引、约束等信息。支持按表名或中文名称查询,提供SQL编写参考和表关系说明。触发关键词:金蝶表结构、K3表结构、金蝶字段、T_SAL、T_PUR、T_BD、T_STK、表结构查询、字段查询、金蝶数据库、采购订单表、收料通知单表。
version: 1.0.0
author: 金蝶ERP开发者
category: 开发工具
tags:
- 金蝶
- K3 Cloud
- ERP
- 数据库
- SQL
- 表结构
- 供应链
platforms:
- windows
- linux
- macos金蝶云星空数据结构查询
概述
本技能为金蝶云星空(K3 Cloud)系统提供完整的数据库表结构查询能力,包含供应链模块61个核心表的字段定义、索引、约束和关联关系。适用于金蝶ERP开发人员、实施顾问和数据分析师。
触发场景
当用户询问以下内容时自动加载此技能:
- 查询金蝶数据库表结构(如 "T_PUR_POORDER 有哪些字段?")
- 查询字段属性(如 "FBillNo 字段是什么类型?")
- 查询表关系(如 "采购订单和收料通知单怎么关联?")
- 金蝶 SQL 编写参考(如 "金蝶多语言表怎么关联?")
- 表名与中文名对应(如 "采购订单对应的表名是什么?")
使用方法
查询表结构
直接提供表名或中文名称即可:
- "查询 T_PUR_POORDER 表的字段"
- "采购订单表的结构是什么?"
- "收料通知单有哪些字段?"
查询字段属性
- "FDocumentStatus 有哪些取值?"
- "FBillNo 的类型和长度?"
查询表关系
- "采购订单和收料通知单怎么关联?"
- "T_PUR_POORDERENTRY 和 T_PUR_POORDER 是什么关系?"
SQL 编写参考
- "写一个查询采购订单明细的SQL"
- "金蝶多语言表怎么关联查询?"
覆盖范围
采购管理模块(61个表)
| 分类 | 表数量 | 代表性表 |
|---|---|---|
| 基础资料 | 15 | 联系人(T_BD_COMMONCONTACT)、供应商银行、供应商分组、评估等级 |
| 采购订单 | 8 | 采购订单(T_PUR_POORDER)、采购订单变更单、新变更单 |
| 采购申请 | 3 | 采购申请单、采购快速下单、定时智能采购 |
| 收货入库 | 6 | 收料通知单(T_PUR_RECEIVE)、采购入库单(T_PUR_INSTOCK) |
| 退料退货 | 4 | 退料申请单、采购退料单、期初采购退料单 |
| 价格管理 | 5 | 采购价目表、采购调价表、采购折扣表 |
| 合同管理 | 3 | 采购合同、采购合同变更单 |
| 对账付款 | 4 | 采购对账单、付款单 |
| 其他 | 13 | 货源清单、消耗汇总表、材料监控方案 |
核心表速查
| 表名 | 中文名称 | 说明 |
|---|---|---|
| T_PUR_POORDER | 采购订单 | 主表 |
| T_PUR_POORDERENTRY | 采购订单明细 | 通过FID关联主表 |
| T_PUR_POORDER_L | 采购订单多语言 | 多语言表 |
| T_PUR_POORDERENTRY_LK | 采购订单关联 | 上下游关联表 |
| T_PUR_RECEIVE | 收料通知单 | 主表 |
| T_PUR_RECEIVEENTRY | 收料通知单明细 | 通过FID关联主表 |
| T_PUR_RECEIVEENTRY_LK | 收料通知单关联 | 上下游关联表 |
| T_PUR_INSTOCK | 采购入库单 | 主表 |
| T_PUR_INSTOCKENTRY | 采购入库单明细 | 通过FID关联主表 |
| T_PUR_INSTOCKENTRY_LK | 采购入库单关联 | 上下游关联表 |
字段命名规则
| 规则 | 含义 | 示例 |
|---|---|---|
| F前缀 | 字段前缀 | FBillNo, FDate, FSupplierId |
| _L后缀 | 多语言表 | T_PUR_POORDER_L |
| _LK后缀 | 上下游关联表 | T_PUR_POORDERENTRY_LK |
| ENTRY后缀 | 明细表 | T_PUR_POORDERENTRY |
| FIN后缀 | 财务拆分表 | T_SAL_OUTSTOCKFIN |
常用字段
| 字段 | 说明 | 类型 |
|---|---|---|
| FID | 主键ID | int |
| FENTRYID | 明细行ID | int |
| FBILLNO | 单据编号 | nvarchar(100) |
| FDATE | 单据日期 | datetime |
| FDOCUMENTSTATUS | 单据状态 | char(1) |
| FCREATORID | 创建人 | int |
| FCREATEDATE | 创建日期 | datetime |
| FMODIFIERID | 修改人 | int |
| FMODIFYDATE | 修改日期 | datetime |
| FAPPROVERID | 审核人 | int |
| FAPPROVEDATE | 审核日期 | datetime |
| FSOURCEBILLNO | 源单编号 | varchar(100) |
单据状态枚举
| 值 | 说明 |
|---|---|
| A | 暂存 |
| B | 已提交 |
| C | 已审核 |
| D | 已关闭 |
| E | 已作废 |
表关系示例
采购订单 -> 收料通知单 -> 采购入库单的关联查询:
SELECT
po.FBILLNO AS 采购订单号,
rc.FBILLNO AS 收料通知单号,
isk.FBILLNO AS 入库单号
FROM T_PUR_POORDER po
INNER JOIN T_PUR_POORDERENTRY poe ON poe.FID = po.FID
LEFT JOIN T_PUR_RECEIVEENTRY_LK rlk ON rlk.FSID = poe.FENTRYID
LEFT JOIN T_PUR_RECEIVEENTRY rce ON rce.FENTRYID = rlk.FENTRYID
LEFT JOIN T_PUR_RECEIVE rc ON rc.FID = rce.FID
LEFT JOIN T_PUR_INSTOCKENTRY_LK ilk ON ilk.FSID = rce.FENTRYID
LEFT JOIN T_PUR_INSTOCKENTRY ise ON ise.FENTRYID = ilk.FENTRYID
LEFT JOIN T_PUR_INSTOCK isk ON isk.FID = ise.FID;
多语言表查询
所有中文名称字段必须通过 _L 表关联,指定 FLOCALEID=2052(简体中文):
SELECT t1.FNUMBER AS 物料编码, t2.FNAME AS 物料名称
FROM T_BD_MATERIAL t1
LEFT JOIN T_BD_MATERIAL_L t2
ON t2.FMATERIALID = t1.FMATERIALID
AND t2.FLOCALEID = 2052;
参考资源
references/purchase-tables.md- 核心表结构详细文档references/table-index.md- 61个表完整索引scripts/query_table.ps1- 表结构快速查询脚本scripts/tables.json- 表结构结构化数据
注意事项
- 数据基于特定版本金蝶云星空,不同版本可能存在差异
- 查询生产环境前请先在测试环境验证 SQL
- 涉及数据修改务必先备份
- 多语言查询必须指定 FLOCALEID=2052
- 关联表(LK)通过 FSID 关联上游单据的 FENTRYID
版本历史
| 版本 | 日期 | 更新内容 |
|---|---|---|
| 1.0.0 | 2026-07-30 | 初始版本,包含采购管理模块61个表结构 |
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向金蝶ERP开发者、实施顾问等专业人群,解决数据库表结构查询这一明确且高频的实际痛点
- 覆盖采购管理模块61个核心表,提供字段定义、索引、约束和关联关系等完整信息
Highlights
- 触发关键词丰富且精准,涵盖金蝶表结构、K3表结构、T_SAL/T_PUR/T_BD/T_STK等表名前缀及具体业务场景
- 边界清晰,用户可通过表名、中文名称、字段查询等多种方式触发
Areas to improve
-
文档过长 Reported severity: Minor
SKILL.md 文件内容约600+行,超过500行建议长度
Recommendation: 建议将部分详细表结构信息移至 references/ 目录下引用文件,主文档保留核心速查和示例
Highlights
- 结构完整,包含概述、触发场景、使用方法、覆盖范围、核心表速查、字段规则、SQL示例等必要章节
- 提供了端到端的SQL关联查询示例和多语言表查询参考,实用性强
Highlights
- 作为信息查询类Skill,不涉及外部工具调用,可靠性高
- SQL示例逻辑清晰,提供了完整的表关联查询和多语言查询参考
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.