feat: 成交指标新表+可控自动结算(默认关,仅新进结算中eligible)

按设计文档:SettlementTime起表;关开关清eligible;定时任务只结到期eligible单;打款走统一结单;指标从stats_since起幂等记账。不打开旧全局ORDER_AUTO_SETTLEMENT。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-27 01:28:44 +08:00
parent 97040c552e
commit 0e102fbcba
13 changed files with 840 additions and 26 deletions

View File

@@ -107,6 +107,11 @@ from jituan.views_fund_freeze import (
FundFreezeRiskView,
)
from jituan.views_role_agreement import RoleAgreementAdminView
from jituan.views_order_deal import (
OrderDealConfigView,
MerchantDealStatView,
DashouDealStatView,
)
urlpatterns = [
path('auth/wechat-login', ClubWechatLoginView.as_view(), name='jituan_wechat_login'),
@@ -122,6 +127,9 @@ urlpatterns = [
path('houtai/fund-freeze-ledger', FundFreezeLedgerView.as_view(), name='jituan_fund_freeze_ledger'),
path('houtai/fund-freeze-risk', FundFreezeRiskView.as_view(), name='jituan_fund_freeze_risk'),
path('houtai/role-agreement', RoleAgreementAdminView.as_view(), name='jituan_role_agreement'),
path('houtai/order-deal-config', OrderDealConfigView.as_view(), name='jituan_order_deal_config'),
path('houtai/merchant-deal-stat', MerchantDealStatView.as_view(), name='jituan_merchant_deal_stat'),
path('houtai/dashou-deal-stat', DashouDealStatView.as_view(), name='jituan_dashou_deal_stat'),
path('houtai/payment-channel-manage', ClubPaymentChannelManageView.as_view(), name='jituan_payment_channel_manage'),
path('houtai/club-cert-upload', ClubCertUploadView.as_view(), name='jituan_club_cert_upload'),
path('houtai/admin-assignments', ClubAdminAssignmentListView.as_view(), name='jituan_admin_assignments'),