Skip to content

Báo cáo & Xuất dữ liệu ​

Trang sinh tự động

Phần nghiệp vụ viết tay; API, dữ liệu, quyền, đường dẫn và file nguồn do bộ sinh điền từ source tại ad83b0aea.

Làm gì ​

Báo cáo doanh thu, chiến dịch, điểm và hiệu suất Sale. Xuất Excel không giới hạn số dòng nghiệp vụ; chỉ bị từ chối khi file vượt giới hạn lưu trữ.

Quy mô ​

Domain APIreport, report-export
Query / Mutation9 / 3
Nguồn dữ liệu—
Bảng0
Luật phân quyền4
Đường dẫn Web Admin4

Thao tác (mutation) ​

MutationDomainMô tả
downloadReportExportreport-exportAudited; rechecks own-row and live read/export permissions before minting a private expiring URL.
requestReportExportreport-exportQueues the entire filtered scope. No expiry approval -> policy_undecided (GAP-246).
retryReportExportreport-exportRetry uses the immutable first snapshot; DONE jobs cannot regenerate.

Phép đọc (query) ​

QueryDomainMô tả
reportCampaignCohortreportClosed versus open campaigns; the rate shows numerator and denominator. report.read.
reportCampaignFunnelreportOrders per campaign by milestone reached for one date basis. report.read.
reportCodreportCOD delivered, collected and remitted as separate stages. report_money.read.
reportExportreport-export
reportExportsreport-exportOwn jobs; live read and export grants checked per job. Money jobs need money permissions.
reportOrdersreportCommitted Order value by state. report_money.read.
reportPaymentsreportProvider transactions per VN day, kind and status (captured, refunded, failed, unknown apart). report_money.read.
reportPointsreportACCEPTED point requests per operation at their own rate; value only with the money permission. report.read.
reportSalePerformancereportSale performance by attribution-time team or Sale. report.read: ALL (B-01, RPT-01) or TEAM (M-03).

Quyền ​

MãQuyềnỨng dụngVai tròPhạm viTrạng thái
B-01report.readWEB_ADMINbi_viewer marketingALLDEFINED
M-03report.readWEB_ADMINsale_managerTEAMPROPOSED
RPT-01report.readWEB_ADMINfinanceALLPROPOSED
RPT-03report.exportWEB_ADMINfinanceALLPROPOSED

Danh sách đầy đủ và cách đọc các cờ: Ma trận quyền.

Giao diện Web Admin ​

Đường dẫnHằng số
/reports/dealsREPORT_DEALS
/reports/financeREPORT_FINANCE
/reports/pointsREPORT_POINTS
/reports/salesREPORT_SALES

File nguồn ​

Backend:

  • code/apps/api/supabase/functions/graphql/domains/report/
  • code/apps/api/supabase/functions/graphql/domains/report-export/

Sinh từ ad83b0aea · 820 migration · PostgreSQL 17