记账链路订单载体:product_accounting_generic 写 biz_order(订单)+biz_orderdetail(明细), consume_accounting 再基于 orderid 生成 bill 账单。此前这两张表只在 sage 库手工建, pipeline-app 缺建表定义,导致计费落账时报 table(biz_order) not exist。 表结构对齐 sage.biz_order 实体表。
22 lines
992 B
JSON
22 lines
992 B
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "biz_orderdetail",
|
|
"title": "业务订单明细",
|
|
"primary": [
|
|
"id"
|
|
]
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "id", "type": "str", "length": 32},
|
|
{"name": "orderid", "title": "订单号", "type": "str", "length": 32, "nullable": "yes"},
|
|
{"name": "productid", "title": "产品id", "type": "str", "length": 32, "nullable": "yes"},
|
|
{"name": "product_cnt", "title": "产品数量", "type": "int", "nullable": "yes"},
|
|
{"name": "prod_config", "title": "产品配置", "type": "text", "nullable": "yes"},
|
|
{"name": "list_amount", "title": "原价", "type": "double", "length": 18, "dec": 4, "nullable": "yes"},
|
|
{"name": "trans_amount", "title": "交易金额", "type": "double", "length": 18, "dec": 4, "nullable": "yes"},
|
|
{"name": "currency", "title": "币种", "type": "str", "length": 3, "nullable": "yes"}
|
|
]
|
|
}
|