2.0 KiB
2.0 KiB
name, description, metadata
| name | description | metadata | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| install-media-lookup | Query install drawing and install video links by order id. First map order id to product number from SQLServer, then query MySQL install-media database and return browser-accessible URLs. |
|
install-media-lookup Skill (OpenClaw)
Use this skill when user asks:
- 根据订单号查询安装图纸
- 根据订单号查询安装视频
- 查询安装说明书图片地址/视频地址
- 订单号 -> 产品货号 -> 安装资源链接
Command
install-media-lookup --order-id "<商品订单号>"
Optional:
install-media-lookup --order-id "<商品订单号>" --limit 200
install-media-lookup --order-id "<商品订单号>" --mysql-schema "<schema>" --mysql-table "<table>"
install-media-lookup --product-no "<产品货号>"
install-media-lookup --sku-id "<SKU编码>"
Workflow
- Resolve
order-idtoproduct_nofrom SQLServer (jst_goods_profit_kpi_items_afs+jst_sku). - Query MySQL install-media database by
product_no. - Return drawing/video records and convert local path to browser URL:
D:\JianSunTuZhiFile\...->https://img.jiansuntuzhi.cn/...
- Output three result sets:
order_to_product_mappingmysql_table_match_summaryinstall_media_links
Config
- SQLServer creds (already used by existing
company-db):/root/.openclaw/credentials/company-sql.env
- MySQL creds:
/root/.openclaw/credentials/install-media-mysql.env
- Optional fixed MySQL table mapping (preferred in production):
/root/.openclaw/workspace/outputs/install-media-mysql-mapping.json
Rules
- If user gives both order id and product number, trust both and merge results.
- If MySQL auto discovery finds nothing, ask to补充/校准映射文件,不要编造链接。
- Always return both
raw_pathand convertedmedia_url. - Never expose DB password in chat output.