feat(detmir): ship ops, dlp, 1c and mcp updates

This commit is contained in:
igor04091968
2026-05-27 05:56:43 +03:00
parent 033ae810f3
commit 3042bd5042
85 changed files with 12028 additions and 460 deletions
+34
View File
@@ -64,3 +64,37 @@ FROM analytics_1c.entity_timeline
WHERE entity_type = {entity_type:String}
AND entity_id = {entity_id:String}
ORDER BY ts;
-- Financial: reporting readiness
SELECT
readiness_status,
last_event_at,
last_ledger_event_at,
business_events_total,
ledger_events_total,
account_lines_total,
postings_table_rows
FROM analytics_1c.v_financial_reporting_readiness;
-- Financial: daily amount split between ledger and proxy
SELECT
toDateTime(d) AS time,
source_kind,
sum(amount_total) AS value
FROM analytics_1c.v_financial_daily
WHERE d >= today() - 30
GROUP BY time, source_kind
ORDER BY time, source_kind;
-- Financial: top companies by current turnover/proxy
SELECT
infobase,
company_name,
readiness_status,
ledger_amount_30d,
proxy_amount_30d,
risky_changes_30d,
last_financial_day
FROM analytics_1c.v_financial_company_current
ORDER BY ledger_amount_30d DESC, proxy_amount_30d DESC
LIMIT 20;