Querying Kingdee Warehouse Master Data: A Single-Strategy Sync Tutorial
What this strategy solves
Warehouse master data is the foundation of supply-chain integration. A retail company running both Jushuitan and Kingdee Cloud keeps its warehouse records in Kingdee; Jushuitan needs to reference warehouses by code for outbound document push. We need a minimal strategy that periodically queries Kingdee warehouse records and lands them in the Qeasy integration platform, serving as the unified dictionary source for downstream sync strategies (outbound, transfer, inventory counting).
Data flow and field mapping
Data flow: Kingdee Cloud → Qeasy Integration Platform. The source calls Kingdee executeBillQuery to fetch warehouse records; the target is a "no-op write" placeholder landing node.
Key field mapping:
| Kingdee field | Meaning | Qeasy side |
|---|---|---|
FStockId | Warehouse primary key | id |
FNumber | Warehouse code | Code (downstream unique reference key) |
FName | Warehouse name | Name |
FGroup | Group | Group (used for multi-org isolation) |
FUseOrgId.FNumber | Using organization code | Using organization |
FNumber is the unique identifier at strategy level. On Qeasy it is usually paired with idCheck=true for idempotent deduplication, avoiding duplicate landing.
How to configure on Qeasy
On the Qeasy Data Integration Platform, this strategy is a pull-type with source query + target placeholder. Configuration highlights:
- Source platform: Select Kingdee Cloud, choose
apiasexecuteBillQuery,method=POST, and tick the request fields per the table above. MarkFNumberandFStockIdas field identifiers for idempotency. - Target platform: Select Qeasy
datahub, use the "no-op write" API as the landing placeholder, setidCheck=true, and leave the request body empty. - Mapping strategy: Map Kingdee
FNumberto the "Code" field on Qeasy as the downstream reference key; forFUseOrgId.FNumber, use the.FNumbersuffix to extract the organization code rather than the internal id, so it is recognizable across environments. - Centralized mapping management: Put the warehouse → Jushuitan shop/bin code mapping into a unified mapping table on Qeasy, making it reusable by subsequent strategies.
Implementation steps
For master data like warehouses, we usually proceed in two phases: full sync first, then stable incremental sync.
- Full trigger (first run): On go-live day, manually trigger once to sync all current Kingdee warehouses to Qeasy at once, then validate row counts and key fields on both sides.
- Incremental start: The incremental strategy is typically based on
FNumberdictionary order or modification time. The schedule expression4 */3 * * *for this strategy means running at minute 4 every 3 hours, which is sufficient to cover master data changes. - Schedule frequency: Warehouse records change infrequently; a 3-hour cycle is a safe cadence. During early go-live it can be tightened to 1 hour for observation, then relaxed back to 3 hours once stable.
- Dependency orchestration: This strategy should complete before business strategies such as outbound orders and transfers, acting as a dictionary warm-up.
Pitfalls recap
- Do not use the internal id as the primary key: Kingdee returns both
FStockIdandFNumber; downstream references must useFNumber, otherwise alignment breaks when environments change. - Missing
.FNumbersuffix onFUseOrgId: Landing the organization internal id directly into Qeasy causes errors in multi-org isolation in downstream strategies; always extract the organization code. - Idempotency not enabled: Repeated warehouse landing creates duplicate dictionary rows in downstream strategies; remember to set
idCheck=true. - Schedule frequency too high: Some teams set 5-minute cycles. Kingdee
executeBillQueryreturns by organization, so overly high frequency slows down the source system. - Target node written as a real business interface: The target of this strategy is only dictionary landing; use the "no-op write" placeholder, do not misconfigure it as a downstream business document interface.
Applicable and non-applicable scenarios
Applicable: Unidirectional sync of master data such as warehouses, customers, materials, and currencies from Kingdee to Qeasy as a unified dictionary for downstream business strategies. Not applicable: Scenarios requiring write-back to Kingdee, cross-org bidirectional sync, or high-frequency changing data such as inventory balances.