perf(finance): 补齐财务仪表盘覆盖索引

This commit is contained in:
yml2213
2026-11-02 19:34:19 +08:00
parent 1c18dbcb64
commit 812e95e7d1
4 changed files with 64 additions and 12 deletions
+9
View File
@@ -37,9 +37,18 @@ require_pattern "backend/internal/modules/adminfinance/subquery.go" "USE INDEX (
require_pattern "backend/migrations/000091_finance_dashboard_query_indexes.sql" "idx_payment_orders_dashboard_created" "财务支付聚合时间索引"
require_pattern "backend/migrations/000091_finance_dashboard_query_indexes.sql" "idx_payment_orders_dashboard_order" "财务退款原金额索引"
require_pattern "backend/migrations/000091_finance_dashboard_query_indexes.sql" "idx_rental_orders_dashboard_settled" "财务结算日报覆盖索引"
require_pattern "backend/migrations/000092_finance_dashboard_estimate_index.sql" "idx_rental_orders_dashboard_estimates" "财务预计利润覆盖索引"
require_pattern "backend/migrations/000092_finance_dashboard_estimate_index.sql" "idx_rental_orders_dashboard_offline_settlement" "财务订单出款覆盖索引"
require_pattern "backend/migrations/000092_finance_dashboard_estimate_index.sql" "idx_admin_pickups_dashboard_completed" "财务提号完成覆盖索引"
require_pattern "backend/migrations/000092_finance_dashboard_estimate_index.sql" "idx_admin_pickups_dashboard_offline_settlement" "财务提号出款覆盖索引"
require_pattern "backend/migrations/000091_finance_dashboard_query_indexes.sql" "idx_order_checkouts_dashboard_accepted" "财务结账行覆盖索引"
require_pattern "backend/internal/modules/adminfinance/dashboard.go" "USE INDEX (idx_rental_orders_dashboard_settled)" "结算日报时间索引"
require_pattern "backend/internal/modules/adminfinance/dashboard.go" "USE INDEX (idx_rental_orders_dashboard_estimates)" "预计利润时间索引"
require_pattern "backend/internal/modules/adminfinance/dashboard.go" "USE INDEX (idx_admin_pickups_dashboard_completed)" "提号完成日报索引"
require_pattern "backend/internal/modules/adminfinance/dashboard.go" "USE INDEX (idx_admin_pickups_dashboard_offline_settlement)" "提号待出款索引"
require_pattern "backend/internal/modules/adminfinance/dashboard.go" "USE INDEX (idx_order_checkouts_dashboard_accepted)" "结算日报结账索引"
require_pattern "backend/internal/modules/adminfinance/disbursement.go" "USE INDEX (idx_rental_orders_dashboard_offline_settlement)" "订单出款覆盖索引"
require_pattern "backend/internal/modules/adminfinance/disbursement.go" "USE INDEX (idx_admin_pickups_dashboard_offline_settlement)" "提号出款覆盖索引"
require_pattern "backend/migrations/000060_finance_dashboard_indexes.sql" "idx_admin_pickups_status_completed_at" "财务完成索引"
require_pattern "backend/migrations/000060_finance_dashboard_indexes.sql" "idx_admin_pickups_status_cancelled_at" "财务取消索引"