系统管理

System Management · 结算周期 / 日志批处理 / 告警中心 / 告警通知

结算周期设置

newapi_settlement_config · newapi_batch_task[settlement_cron]
:
生成的 cron 表达式 (settlement_cron)
0 5 * * 4
每周四 05:00 (Asia/Shanghai)
当前结算状态
当前批次
结算周期
下次结算触发
倒计时
batch_id 生成规则
format: "WEEK_{year}W{week:02d}"
example: "WEEK_2026W17"
// 保障幂等性: 相同 batch_id 不重复结算
计算精度
Node.jsDecimal.js
MySQLDECIMAL(14,2)
时间戳bigint (ms)
双周 / 月末容错规则
biweekly: 每周触发,执行时用基准日期过滤
monthly: 若 day > 本月最大日,取月末补触发
// 未通过过滤时写 run.status=skipped