自动脚本计费

This commit is contained in:
wuweihua
2026-10-21 09:44:54 +08:00
parent 501056bb17
commit be3856a59c
3 changed files with 279 additions and 0 deletions
@@ -40,6 +40,14 @@ bms:
# 同步已直接复用订单行(跳过每单 Oracle 公网查询),瓶颈在 MySQL 计费写入,
# 同客户行锁冲突由 billWithDbRetry 3 次重试兜底,16 路实测吞吐最高。
order-source-sync-threads: 16
# Night auto-rebill: hours 0-8, pull 500 (all statuses) -> bill -> next 500 until empty / 09:00.
# Empty page => no billing.
night-retry:
enabled: true
start-hour: 0
end-hour: 9
batch-size: 500
cron: "0 0/1 0-8 * * ?"
oracle:
# SLAVE datasource Oracle main-order table (schema.table allowed)
order-table: WEISHI_USER.TAB_ORDER