All Latest
6a1963187ba60: POST https://beta.jinchangxiao.com/vue/smart-board/sales at 2026-05-29 05:57:44 pm by 221.216.117.119

Performance Profiling

Total processing time: 896 ms; Peak memory: 9.473 MB. Show Profiling Timeline

总计249条数据
TimeDurationCategoryInfo
  
17:57:45.09237.0 msyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_erp_collect_tickets' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
17:57:44.59733.6 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') )) "sub"
17:57:45.35130.8 msyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
17:57:45.31322.6 msyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_erp_inventory_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
17:57:44.54519.8 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59')
17:57:45.25917.7 msyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_projects' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
17:57:45.05116.4 msyii\db\Command::querySELECT COUNT(DISTINCT client_id) AS cnt FROM (SELECT "client_id" FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("client_id" IS NOT NULL) AND ("start_at" >= '2026-01-01') AND ("start_at" <= '2026-12-31') UNION SELECT "client_id" FROM "a57be577deb434"."tbl_schedules" WHERE ("is_closed"=FALSE) AND ("client_id" IS NOT NULL) AND ("start_at" >= '2026-01-01') AND ("start_at" <= '2026-12-31')) AS combined
17:57:44.64215.0 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') )) "sub"
17:57:44.96414.2 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59') )) "sub"
17:57:44.98613.4 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59') )) "sub"
17:57:44.52012.9 msyii\db\Command::querySELECT COALESCE(SUM(budget), 0) AS revenue, COALESCE(SUM(budget * COALESCE(profit_pct, 0) / 100), 0) AS profit FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2026-01-01') AND ("bargain_date" <= '2026-12-31')
17:57:45.23712.3 msyii\db\Command::querySELECT COALESCE(tt.id, 0) AS type_id, COALESCE(tt.name, '未分类') AS type_name, COALESCE(SUM(r.amount), 0) AS total_amount FROM "a57be577deb434"."tbl_reimbursements" "r" LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr" ON ttr.object_id = r.id AND ttr.term_id = 18 AND ttr.object_type = 7 LEFT JOIN "a57be577deb434"."tbl_term_taxonomies" "tt" ON tt.id = ttr.taxonomy_id WHERE ("r"."status" IN (1, 2, 3)) AND ("r"."occurrence_at" >= '2026-01-01') AND ("r"."occurrence_at" <= '2026-12-31 23:59:59') GROUP BY tt.id, tt.name ORDER BY COALESCE(SUM(r.amount), 0) DESC
17:57:44.92711.6 msyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_erp_settles' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
17:57:45.00611.4 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59') )) "sub"
17:57:45.02511.3 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') )) "sub"
17:57:45.22511.3 msyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_project_progresses' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
17:57:44.94610.0 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59') )) "sub"
17:57:44.6909.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59') )) "sub"
17:57:45.2939.2 msyii\db\Command::querySELECT TO_CHAR(arrived_at, 'YYYY-MM') AS name, COUNT(id) AS visit_count, COALESCE(EXTRACT(epoch FROM SUM(left_at - arrived_at)) / 3600, 0) AS visit_hours FROM "a57be577deb434"."tbl_implement_records" WHERE ("is_draft"=FALSE) AND ("arrived_at" >= '2026-01-01') AND ("arrived_at" <= '2026-12-31 23:59:59') GROUP BY TO_CHAR(arrived_at, 'YYYY-MM')
17:57:44.7099.1 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59') )) "sub"
17:57:44.6649.1 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59') )) "sub"
17:57:45.0679.0 msyii\db\Command::querySELECT COUNT(DISTINCT client_id) AS cnt FROM (SELECT "client_id" FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("client_id" IS NOT NULL) AND ("start_at" >= '2025-01-01') AND ("start_at" <= '2025-12-31') UNION SELECT "client_id" FROM "a57be577deb434"."tbl_schedules" WHERE ("is_closed"=FALSE) AND ("client_id" IS NOT NULL) AND ("start_at" >= '2025-01-01') AND ("start_at" <= '2025-12-31')) AS combined
17:57:44.5728.9 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') )) "sub"
17:57:45.0418.7 msyii\db\Command::querySELECT COUNT(*) FROM "a57be577deb434"."tbl_clients" WHERE ("deleted"=FALSE) AND ("sales_rep" IS NOT NULL) AND (CAST(sales_rep AS TEXT) != '')
17:57:45.1308.6 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2026-02-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:44.7378.1 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59') )) "sub"
17:57:44.7238.1 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59') )) "sub"
17:57:44.7507.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59') )) "sub"
17:57:44.8697.2 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59') )) "sub"
17:57:44.9177.0 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59') )) "sub"
17:57:44.8457.0 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59') )) "sub"
17:57:44.8576.9 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59') )) "sub"
17:57:44.7866.9 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59') )) "sub"
17:57:44.8936.9 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59') )) "sub"
17:57:44.8826.9 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59') )) "sub"
17:57:44.7746.8 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59') )) "sub"
17:57:44.9056.8 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59') )) "sub"
17:57:44.5356.8 msyii\db\Command::querySELECT COALESCE(SUM(budget), 0) AS revenue, COALESCE(SUM(budget * COALESCE(profit_pct, 0) / 100), 0) AS profit FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2025-08-05') AND ("bargain_date" <= '2025-12-31')
17:57:44.8226.8 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59') )) "sub"
17:57:44.7626.8 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59') )) "sub"
17:57:44.7986.8 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59') )) "sub"
17:57:44.8106.7 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59') )) "sub"
17:57:44.8336.7 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON am.erp_cash_cost_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("t"."is_payment_settle"=TRUE) AND ("t"."created_at" >= '2025-08-08 14:34:58') AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON am.erp_cost_ticket_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_cost_tickets" "t" ON pd.project_id = t.project_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_cost_convert_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON am.erp_cost_convert_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_cost_convert_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount - eipss.total_amount), 0) as amount FROM "a57be577deb434"."tbl_erp_sales_gifts" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') ) UNION ALL ( SELECT COALESCE(sum((eipss.actual_total_amount - eipss.total_amount) * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_gift_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') )) "sub"
17:57:45.2775.9 msyii\db\Command::querySELECT TO_CHAR(start_at, 'YYYY-MM') AS month_key, COUNT(id) AS visit_count, COALESCE(EXTRACT(epoch FROM SUM(end_at - start_at)) / 3600, 0) AS visit_hours FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("scenario_id"=1) AND (("location_in_id" IS NOT NULL) OR ("location_out_id" IS NOT NULL)) AND ("start_at" >= '2026-01-01') AND ("start_at" <= '2026-12-31 23:59:59') GROUP BY TO_CHAR(start_at, 'YYYY-MM')
17:57:45.2835.5 msyii\db\Command::querySELECT TO_CHAR(start_at, 'YYYY-MM') AS month_key, COUNT(id) AS visit_count, COALESCE(EXTRACT(epoch FROM SUM(end_at - start_at)) / 3600, 0) AS visit_hours FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("scenario_id"=1) AND (("location_in_id" IS NOT NULL) OR ("location_out_id" IS NOT NULL)) AND ("start_at" >= '2025-01-01') AND ("start_at" <= '2025-12-31 23:59:59') GROUP BY TO_CHAR(start_at, 'YYYY-MM')
17:57:44.5845.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') )) "sub"
17:57:45.0864.8 msyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_erp_collect_tickets' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
17:57:45.1394.0 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2026-03-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1433.9 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2026-04-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1473.8 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2026-05-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1513.7 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2026-06-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:44.6333.7 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') )) "sub"
17:57:45.2023.7 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2026-01-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1983.6 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-12-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1913.6 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-10-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1763.6 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-06-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:44.6743.5 msyii\db\Command::querySELECT "sales_goal_id" FROM "a57be577deb434"."tbl_sales_goal_rels"
17:57:45.1873.5 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-09-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1953.5 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-11-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1803.4 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-07-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.2563.4 msyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_projects' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
17:57:45.3093.4 msyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_erp_inventory_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
17:57:45.0833.4 msyii\db\Command::querySELECT COALESCE(SUM(ects.amount), 0) AS collected FROM "a57be577deb434"."tbl_erp_collect_tickets" "t" INNER JOIN "a57be577deb434"."tbl_erp_collect_ticket_settles" "ects" ON ects.erp_collect_ticket_id = t.id AND ects.sales_contract_id IS NOT NULL WHERE ("t"."status"=2) AND ("t"."bank_settle_at" >= '2026-01-01 00:00:00') AND ("t"."bank_settle_at" <= '2026-12-31 23:59:59')
17:57:45.1693.4 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-04-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1843.3 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-08-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1663.3 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-03-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1733.2 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-05-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.1633.2 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT "l"."project_id", "l"."new_status", "p"."budget", ROW_NUMBER() OVER (PARTITION BY l.project_id ORDER BY l.created_at DESC) AS rn FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."created_at" < '2025-02-01') AND ("l"."new_status" > 0)) "sub" WHERE ("sub"."rn"=1) AND ("sub"."new_status" IN (1, 2)) GROUP BY "sub"."new_status"
17:57:45.3943.1 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/smart-board/sales', '{"period":"currentfascalyear","web_access_token":"YNQKwEYJYN8muCSh8ExnNlBf2oepDAlv"}', '{"code":2000,"result":{"part1":{"current_revenue":"20281011.20","current_profit":"13476822.35","target_revenue":12000000,"target_profit":"","revenue_rate":1.69,"profit_rate":null,"revenue_diff":-8281011.2,"profit_diff":null,"previous_revenue":"34822861.05","previous_profit":"5171012.14","last_year_revenue":"0.00","last_year_profit":"0.00","vs_previous_revenue":-0.4175,"vs_previous_profit":1.6062,"vs_last_year_revenue":"1","vs_last_year_profit":"1"},"part2":{"categories":["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],"seriesThisYearProfit":[{"key":"2026-01","name":"1\u6708","model":{"month":"1\u6708","this_year_profit":"427954.24","last_year_profit":"0.00","growth_rate":"1"},"y":"427954.24"},{"key":"2026-02","name":"2\u6708","model":{"month":"2\u6708","this_year_profit":"347473.67","last_year_profit":"0.00","growth_rate":"1"},"y":"347473.67"},{"key":"2026-03","name":"3\u6708","model":{"month":"3\u6708","this_year_profit":"-18714.15","last_year_profit":"0.00","growth_rate":null},"y":"-18714.15"},{"key":"2026-04","name":"4\u6708","model":{"month":"4\u6708","this_year_profit":"4182575.80","last_year_profit":"0.00","growth_rate":"1"},"y":"4182575.80"},{"key":"2026-05","name":"5\u6708","model":{"month":"5\u6708","this_year_profit":"8537532.80","last_year_profit":"0.00","growth_rate":"1"},"y":"8537532.80"},{"key":"2026-06","name":"6\u6708","model":{"month":"6\u6708","this_year_profit":null,"last_year_profit":"0.00","growth_rate":null},"y":null},{"key":"2026-07","name":"7\u6708","model":{"month":"7\u6708","this_year_profit":null,"last_year_profit":"0.00","growth_rate":null},"y":null},{"key":"2026-08","name":"8\u6708","model":{"month":"8\u6708","this_year_profit":null,"last_year_profit":"3556082.07","growth_rate":null},"y":null},{"key":"2026-09","name":"9\u6708","model":{"month":"9\u6708","this_year_profit":null,"last_year_profit":"627916.42","growth_rate":null},"y":null},{"key":"2026-10","name":"10\u6708","model":{"month":"10\u6708","this_year_profit":null,"last_year_profit":"62113.55","growth_rate":null},"y":null},{"key":"2026-11","name":"11\u6708","model":{"month":"11\u6708","this_year_profit":null,"last_year_profit":"288306.62","growth_rate":null},"y":null},{"key":"2026-12","name":"12\u6708","model":{"month":"12\u6708","this_year_profit":null,"last_year_profit":"636593.48","growth_rate":null},"y":null}],"seriesLastYearProfit":[{"key":"2025-01","name":"1\u6708","model":{"month":"1\u6708","this_year_profit":"427954.24","last_year_profit":"0.00","growth_rate":null},"y":"0.00"},{"key":"2025-02","name":"2\u6708","model":{"month":"2\u6708","this_year_profit":"347473.67","last_year_profit":"0.00","growth_rate":null},"y":"0.00"},{"key":"2025-03","name":"3\u6708","model":{"month":"3\u6708","this_year_profit":"-18714.15","last_year_profit":"0.00","growth_rate":null},"y":"0.00"},{"key":"2025-04","name":"4\u6708","model":{"month":"4\u6708","this_year_profit":"4182575.80","last_year_profit":"0.00","growth_rate":null},"y":"0.00"},{"key":"2025-05","name":"5\u6708","model":{"month":"5\u6708","this_year_profit":"8537532.80","last_year_profit":"0.00","growth_rate":null},"y":"0.00"},{"key":"2025-06","name":"6\u6708","model":{"month":"6\u6708","this_year_profit":"0.00","last_year_profit":"0.00","growth_rate":null},"y":"0.00"},{"key":"2025-07","name":"7\u6708","model":{"month":"7\u6708","this_year_profit":"0.00","last_year_profit":"0.00","growth_rate":null},"y":"0.00"},{"key":"2025-08","name":"8\u6708","model":{"month":"8\u6708","this_year_profit":"0.00","last_year_profit":"3556082.07","growth_rate":-1},"y":"3556082.07"},{"key":"2025-09","name":"9\u6708","model":{"month":"9\u6708","this_year_profit":"0.00","last_year_profit":"627916.42","growth_rate":-1},"y":"627916.42"},{"key":"2025-10","name":"10\u6708","model":{"month":"10\u6708","this_year_profit":"0.00","last_year_profit":"62113.55","growth_rate":-1},"y":"62113.55"},{"key":"2025-11","name":"11\u6708","model":{"month":"11\u6708","this_year_profit":"0.00","last_year_profit":"288306.62","growth_rate":-1},"y":"288306.62"},{"key":"2025-12","name":"12\u6708","model":{"month":"12\u6708","this_year_profit":"0.00","last_year_profit":"636593.48","growth_rate":-1},"y":"636593.48"}],"seriesThisYearRevenue":[{"key":"2026-01","name":"1\u6708","model":{"month":"1\u6708","this_year_revenue":"6402227.6","last_year_revenue":"973006.2","growth_rate":5.5798},"y":"6402227.6"},{"key":"2026-02","name":"2\u6708","model":{"month":"2\u6708","this_year_revenue":"82820","last_year_revenue":"5830591.5","growth_rate":-0.9857},"y":"82820"},{"key":"2026-03","name":"3\u6708","model":{"month":"3\u6708","this_year_revenue":"2415885.77","last_year_revenue":"169214","growth_rate":13.2771},"y":"2415885.77"},{"key":"2026-04","name":"4\u6708","model":{"month":"4\u6708","this_year_revenue":"12777684","last_year_revenue":"1600589","growth_rate":6.9831},"y":"12777684"},{"key":"2026-05","name":"5\u6708","model":{"month":"5\u6708","this_year_revenue":"76186","last_year_revenue":"5896507","growth_rate":-0.987},"y":"76186"},{"key":"2026-06","name":"6\u6708","model":{"month":"6\u6708","this_year_revenue":null,"last_year_revenue":"1078998.1","growth_rate":null},"y":null},{"key":"2026-07","name":"7\u6708","model":{"month":"7\u6708","this_year_revenue":null,"last_year_revenue":"5257393","growth_rate":null},"y":null},{"key":"2026-08","name":"8\u6708","model":{"month":"8\u6708","this_year_revenue":null,"last_year_revenue":"1244326","growth_rate":null},"y":null},{"key":"2026-09","name":"9\u6708","model":{"month":"9\u6708","this_year_revenue":null,"last_year_revenue":"656924.6","growth_rate":null},"y":null},{"key":"2026-10","name":"10\u6708","model":{"month":"10\u6708","this_year_revenue":null,"last_year_revenue":"738895","growth_rate":null},"y":null},{"key":"2026-11","name":"11\u6708","model":{"month":"11\u6708","this_year_revenue":null,"last_year_revenue":"5655254.39","growth_rate":null},"y":null},{"key":"2026-12","name":"12\u6708","model":{"month":"12\u6708","this_year_revenue":null,"last_year_revenue":"6321739","growth_rate":null},"y":null}],"seriesLastYearRevenue":[{"key":"2025-01","name":"1\u6708","model":{"month":"1\u6708","this_year_revenue":"6402227.6","last_year_revenue":"973006.2","growth_rate":5.5798},"y":"973006.2"},{"key":"2025-02","name":"2\u6708","model":{"month":"2\u6708","this_year_revenue":"82820","last_year_revenue":"5830591.5","growth_rate":-0.9857},"y":"5830591.5"},{"key":"2025-03","name":"3\u6708","model":{"month":"3\u6708","this_year_revenue":"2415885.77","last_year_revenue":"169214","growth_rate":13.2771},"y":"169214"},{"key":"2025-04","name":"4\u6708","model":{"month":"4\u6708","this_year_revenue":"12777684","last_year_revenue":"1600589","growth_rate":6.9831},"y":"1600589"},{"key":"2025-05","name":"5\u6708","model":{"month":"5\u6708","this_year_revenue":"76186","last_year_revenue":"5896507","growth_rate":-0.987},"y":"5896507"},{"key":"2025-06","name":"6\u6708","model":{"month":"6\u6708","this_year_revenue":"0","last_year_revenue":"1078998.1","growth_rate":-1},"y":"1078998.1"},{"key":"2025-07","name":"7\u6708","model":{"month":"7\u6708","this_year_revenue":"0","last_year_revenue":"5257393","growth_rate":-1},"y":"5257393"},{"key":"2025-08","name":"8\u6708","model":{"month":"8\u6708","this_year_revenue":"0","last_year_revenue":"1244326","growth_rate":-1},"y":"1244326"},{"key":"2025-09","name":"9\u6708","model":{"month":"9\u6708","this_year_revenue":"0","last_year_revenue":"656924.6","growth_rate":-1},"y":"656924.6"},{"key":"2025-10","name":"10\u6708","model":{"month":"10\u6708","this_year_revenue":"0","last_year_revenue":"738895","growth_rate":-1},"y":"738895"},{"key":"2025-11","name":"11\u6708","model":{"month":"11\u6708","this_year_revenue":"0","last_year_revenue":"5655254.39","growth_rate":-1},"y":"5655254.39"},{"key":"2025-12","name":"12\u6708","model":{"month":"12\u6708","this_year_revenue":"0","last_year_revenue":"6321739","growth_rate":-1},"y":"6321739"}]},"part3":{"maintenance":{"total_clients":1030,"active_clients":179,"progress":0.1737,"vs_previous":-0.1788,"vs_last_year":-0.1788},"contracted":{"client_count":29,"dev_rate":0.0281,"client_vs_previous":-0.4912,"client_vs_last_year":-0.4727},"not_contracted":{"client_count":1001,"pending_rate":0.9718},"collection":{"receivable":"23786673.71","collected":"10542730.1","collection_rate":0.921}},"part4":{"status_trend":{"categories":["2026-01","2026-02","2026-03","2026-04","2026-05","2026-06","2026-07","2026-08","2026-09","2026-10","2026-11","2026-12"],"seriesStatus1":[{"key":"2026-01","name":"\u6f5c\u5728\u5546\u673a","model":{"current":16,"last":17,"growth":-0.0588,"current_budget":"27345000","last_budget":"8470000","budget_growth":2.2284},"y":16},{"key":"2026-02","name":"\u6f5c\u5728\u5546\u673a","model":{"current":16,"last":17,"growth":-0.0588,"current_budget":"27104600","last_budget":"8470000","budget_growth":2.2},"y":16},{"key":"2026-03","name":"\u6f5c\u5728\u5546\u673a","model":{"current":17,"last":17,"growth":"0","current_budget":"27134400","last_budget":"8470000","budget_growth":2.2035},"y":17},{"key":"2026-04","name":"\u6f5c\u5728\u5546\u673a","model":{"current":17,"last":17,"growth":"0","current_budget":"27134400","last_budget":"8470000","budget_growth":2.2035},"y":17},{"key":"2026-05","name":"\u6f5c\u5728\u5546\u673a","model":{"current":17,"last":14,"growth":0.2142,"current_budget":"27134400","last_budget":"7470000","budget_growth":2.6324},"y":17},{"key":"2026-06","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":16,"growth":null,"current_budget":null,"last_budget":"7470000","budget_growth":null},"y":null},{"key":"2026-07","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":16,"growth":null,"current_budget":null,"last_budget":"7470000","budget_growth":null},"y":null},{"key":"2026-08","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":17,"growth":null,"current_budget":null,"last_budget":"27470000","budget_growth":null},"y":null},{"key":"2026-09","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":17,"growth":null,"current_budget":null,"last_budget":"27470000","budget_growth":null},"y":null},{"key":"2026-10","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":17,"growth":null,"current_budget":null,"last_budget":"27470000","budget_growth":null},"y":null},{"key":"2026-11","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":18,"growth":null,"current_budget":null,"last_budget":"27565000","budget_growth":null},"y":null},{"key":"2026-12","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":18,"growth":null,"current_budget":null,"last_budget":"27565000","budget_growth":null},"y":null}],"seriesStatus2":[{"key":"2026-01","name":"\u660e\u786e\u9700\u6c42","model":{"current":28,"last":28,"growth":"0","current_budget":"57368224.06","last_budget":"17014973.56","budget_growth":2.3716},"y":28},{"key":"2026-02","name":"\u660e\u786e\u9700\u6c42","model":{"current":30,"last":28,"growth":0.0714,"current_budget":"57432124.06","last_budget":"17092104.06","budget_growth":2.3601},"y":30},{"key":"2026-03","name":"\u660e\u786e\u9700\u6c42","model":{"current":47,"last":32,"growth":0.4687,"current_budget":"70689580.06","last_budget":"22021824.06","budget_growth":2.2099},"y":47},{"key":"2026-04","name":"\u660e\u786e\u9700\u6c42","model":{"current":51,"last":42,"growth":0.2142,"current_budget":"73273587.06","last_budget":"25863057.06","budget_growth":1.8331},"y":51},{"key":"2026-05","name":"\u660e\u786e\u9700\u6c42","model":{"current":51,"last":35,"growth":0.4571,"current_budget":"73266032.06","last_budget":"62945192.16","budget_growth":0.1639},"y":51},{"key":"2026-06","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":33,"growth":null,"current_budget":null,"last_budget":"62998025.06","budget_growth":null},"y":null},{"key":"2026-07","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":26,"growth":null,"current_budget":null,"last_budget":"55577304.66","budget_growth":null},"y":null},{"key":"2026-08","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":27,"growth":null,"current_budget":null,"last_budget":"54903321.66","budget_growth":null},"y":null},{"key":"2026-09","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":39,"growth":null,"current_budget":null,"last_budget":"55745974.06","budget_growth":null},"y":null},{"key":"2026-10","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":54,"growth":null,"current_budget":null,"last_budget":"60724451.05","budget_growth":null},"y":null},{"key":"2026-11","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":55,"growth":null,"current_budget":null,"last_budget":"61249935.46","budget_growth":null},"y":null},{"key":"2026-12","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":26,"growth":null,"current_budget":null,"last_budget":"56879587.06","budget_growth":null},"y":null}],"seriesStatus3":[{"key":"2026-01","name":"\u5df2\u6210\u4ea4","model":{"current":17,"last":15,"growth":0.1333,"current_budget":"6926617.6","last_budget":"1005006.2","budget_growth":5.8921},"y":17},{"key":"2026-02","name":"\u5df2\u6210\u4ea4","model":{"current":5,"last":13,"growth":-0.6153,"current_budget":"53020","last_budget":"5795491.5","budget_growth":-0.9908},"y":5},{"key":"2026-03","name":"\u5df2\u6210\u4ea4","model":{"current":7,"last":17,"growth":-0.5882,"current_budget":"2441130.77","last_budget":"147314","budget_growth":15.5709},"y":7},{"key":"2026-04","name":"\u5df2\u6210\u4ea4","model":{"current":5,"last":19,"growth":-0.7368,"current_budget":"13197691","last_budget":"1045350","budget_growth":11.6251},"y":5},{"key":"2026-05","name":"\u5df2\u6210\u4ea4","model":{"current":7,"last":23,"growth":-0.6956,"current_budget":"402741","last_budget":"6164747","budget_growth":-0.9346},"y":7},{"key":"2026-06","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":21,"growth":null,"current_budget":null,"last_budget":"1168057.1","budget_growth":null},"y":null},{"key":"2026-07","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":29,"growth":null,"current_budget":null,"last_budget":"5515094","budget_growth":null},"y":null},{"key":"2026-08","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":14,"growth":null,"current_budget":null,"last_budget":"928626","budget_growth":null},"y":null},{"key":"2026-09","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":15,"growth":null,"current_budget":null,"last_budget":"972624.6","budget_growth":null},"y":null},{"key":"2026-10","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":18,"growth":null,"current_budget":null,"last_budget":"717727","budget_growth":null},"y":null},{"key":"2026-11","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":18,"growth":null,"current_budget":null,"last_budget":"1074917.99","budget_growth":null},"y":null},{"key":"2026-12","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":34,"growth":null,"current_budget":null,"last_budget":"10398853.4","budget_growth":null},"y":null}],"seriesStatus4":[{"key":"2026-01","name":"\u5df2\u653e\u5f03","model":{"current":1,"last":2,"growth":-0.5,"current_budget":"100000","last_budget":"110000","budget_growth":-0.0909},"y":1},{"key":"2026-02","name":"\u5df2\u653e\u5f03","model":{"current":3,"last":0,"growth":null,"current_budget":"440000","last_budget":"0","budget_growth":null},"y":3},{"key":"2026-03","name":"\u5df2\u653e\u5f03","model":{"current":1,"last":2,"growth":-0.5,"current_budget":"0","last_budget":"800000","budget_growth":-1},"y":1},{"key":"2026-04","name":"\u5df2\u653e\u5f03","model":{"current":1,"last":0,"growth":null,"current_budget":"7","last_budget":"0","budget_growth":null},"y":1},{"key":"2026-05","name":"\u5df2\u653e\u5f03","model":{"current":0,"last":3,"growth":-1,"current_budget":"0","last_budget":"2040000","budget_growth":-1},"y":0},{"key":"2026-06","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":1,"growth":null,"current_budget":null,"last_budget":"200000","budget_growth":null},"y":null},{"key":"2026-07","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"395000","budget_growth":null},"y":null},{"key":"2026-08","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"1550000","budget_growth":null},"y":null},{"key":"2026-09","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":1,"growth":null,"current_budget":null,"last_budget":"290000","budget_growth":null},"y":null},{"key":"2026-10","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":0,"growth":null,"current_budget":null,"last_budget":"0","budget_growth":null},"y":null},{"key":"2026-11","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":4,"growth":null,"current_budget":null,"last_budget":"200000","budget_growth":null},"y":null},{"key":"2026-12","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":14,"growth":null,"current_budget":null,"last_budget":"820900","budget_growth":null},"y":null}],"seriesStatus5":[{"key":"2026-01","name":"\u5df2\u6682\u505c","model":{"current":6,"last":3,"growth":1,"current_budget":"514113","last_budget":"600000","budget_growth":-0.1431},"y":6},{"key":"2026-02","name":"\u5df2\u6682\u505c","model":{"current":3,"last":1,"growth":2,"current_budget":"59600","last_budget":"300000","budget_growth":-0.8013},"y":3},{"key":"2026-03","name":"\u5df2\u6682\u505c","model":{"current":1,"last":2,"growth":-0.5,"current_budget":"4444","last_budget":"1020000","budget_growth":-0.9956},"y":1},{"key":"2026-04","name":"\u5df2\u6682\u505c","model":{"current":3,"last":2,"growth":0.5,"current_budget":"3068007","last_budget":"464761","budget_growth":5.6012},"y":3},{"key":"2026-05","name":"\u5df2\u6682\u505c","model":{"current":0,"last":15,"growth":-1,"current_budget":"0","last_budget":"4960000","budget_growth":-1},"y":0},{"key":"2026-06","name":"\u5df2\u6682\u505c","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"188000","budget_growth":null},"y":null},{"key":"2026-07","name":"\u5df2\u6682\u505c","model":{"current":null,"last":6,"growth":null,"current_budget":null,"last_budget":"8132220","budget_growth":null},"y":null},{"key":"2026-08","name":"\u5df2\u6682\u505c","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"31074800","budget_growth":null},"y":null},{"key":"2026-09","name":"\u5df2\u6682\u505c","model":{"current":null,"last":9,"growth":null,"current_budget":null,"last_budget":"5311740","budget_growth":null},"y":null},{"key":"2026-10","name":"\u5df2\u6682\u505c","model":{"current":null,"last":6,"growth":null,"current_budget":null,"last_budget":"6147000","budget_growth":null},"y":null},{"key":"2026-11","name":"\u5df2\u6682\u505c","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"220000","budget_growth":null},"y":null},{"key":"2026-12","name":"\u5df2\u6682\u505c","model":{"current":null,"last":10,"growth":null,"current_budget":null,"last_budget":"421800","budget_growth":null},"y":null}],"seriesLastStatus1":[{"key":"2025-01","name":"\u6f5c\u5728\u5546\u673a","model":{"current":16,"last":17,"growth":-0.0588,"current_budget":"27345000","last_budget":"8470000","budget_growth":2.2284},"y":17},{"key":"2025-02","name":"\u6f5c\u5728\u5546\u673a","model":{"current":16,"last":17,"growth":-0.0588,"current_budget":"27104600","last_budget":"8470000","budget_growth":2.2},"y":17},{"key":"2025-03","name":"\u6f5c\u5728\u5546\u673a","model":{"current":17,"last":17,"growth":"0","current_budget":"27134400","last_budget":"8470000","budget_growth":2.2035},"y":17},{"key":"2025-04","name":"\u6f5c\u5728\u5546\u673a","model":{"current":17,"last":17,"growth":"0","current_budget":"27134400","last_budget":"8470000","budget_growth":2.2035},"y":17},{"key":"2025-05","name":"\u6f5c\u5728\u5546\u673a","model":{"current":17,"last":14,"growth":0.2142,"current_budget":"27134400","last_budget":"7470000","budget_growth":2.6324},"y":14},{"key":"2025-06","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":16,"growth":null,"current_budget":null,"last_budget":"7470000","budget_growth":null},"y":16},{"key":"2025-07","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":16,"growth":null,"current_budget":null,"last_budget":"7470000","budget_growth":null},"y":16},{"key":"2025-08","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":17,"growth":null,"current_budget":null,"last_budget":"27470000","budget_growth":null},"y":17},{"key":"2025-09","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":17,"growth":null,"current_budget":null,"last_budget":"27470000","budget_growth":null},"y":17},{"key":"2025-10","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":17,"growth":null,"current_budget":null,"last_budget":"27470000","budget_growth":null},"y":17},{"key":"2025-11","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":18,"growth":null,"current_budget":null,"last_budget":"27565000","budget_growth":null},"y":18},{"key":"2025-12","name":"\u6f5c\u5728\u5546\u673a","model":{"current":null,"last":18,"growth":null,"current_budget":null,"last_budget":"27565000","budget_growth":null},"y":18}],"seriesLastStatus2":[{"key":"2025-01","name":"\u660e\u786e\u9700\u6c42","model":{"current":28,"last":28,"growth":"0","current_budget":"57368224.06","last_budget":"17014973.56","budget_growth":2.3716},"y":28},{"key":"2025-02","name":"\u660e\u786e\u9700\u6c42","model":{"current":30,"last":28,"growth":0.0714,"current_budget":"57432124.06","last_budget":"17092104.06","budget_growth":2.3601},"y":28},{"key":"2025-03","name":"\u660e\u786e\u9700\u6c42","model":{"current":47,"last":32,"growth":0.4687,"current_budget":"70689580.06","last_budget":"22021824.06","budget_growth":2.2099},"y":32},{"key":"2025-04","name":"\u660e\u786e\u9700\u6c42","model":{"current":51,"last":42,"growth":0.2142,"current_budget":"73273587.06","last_budget":"25863057.06","budget_growth":1.8331},"y":42},{"key":"2025-05","name":"\u660e\u786e\u9700\u6c42","model":{"current":51,"last":35,"growth":0.4571,"current_budget":"73266032.06","last_budget":"62945192.16","budget_growth":0.1639},"y":35},{"key":"2025-06","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":33,"growth":null,"current_budget":null,"last_budget":"62998025.06","budget_growth":null},"y":33},{"key":"2025-07","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":26,"growth":null,"current_budget":null,"last_budget":"55577304.66","budget_growth":null},"y":26},{"key":"2025-08","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":27,"growth":null,"current_budget":null,"last_budget":"54903321.66","budget_growth":null},"y":27},{"key":"2025-09","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":39,"growth":null,"current_budget":null,"last_budget":"55745974.06","budget_growth":null},"y":39},{"key":"2025-10","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":54,"growth":null,"current_budget":null,"last_budget":"60724451.05","budget_growth":null},"y":54},{"key":"2025-11","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":55,"growth":null,"current_budget":null,"last_budget":"61249935.46","budget_growth":null},"y":55},{"key":"2025-12","name":"\u660e\u786e\u9700\u6c42","model":{"current":null,"last":26,"growth":null,"current_budget":null,"last_budget":"56879587.06","budget_growth":null},"y":26}],"seriesLastStatus3":[{"key":"2025-01","name":"\u5df2\u6210\u4ea4","model":{"current":17,"last":15,"growth":0.1333,"current_budget":"6926617.6","last_budget":"1005006.2","budget_growth":5.8921},"y":15},{"key":"2025-02","name":"\u5df2\u6210\u4ea4","model":{"current":5,"last":13,"growth":-0.6153,"current_budget":"53020","last_budget":"5795491.5","budget_growth":-0.9908},"y":13},{"key":"2025-03","name":"\u5df2\u6210\u4ea4","model":{"current":7,"last":17,"growth":-0.5882,"current_budget":"2441130.77","last_budget":"147314","budget_growth":15.5709},"y":17},{"key":"2025-04","name":"\u5df2\u6210\u4ea4","model":{"current":5,"last":19,"growth":-0.7368,"current_budget":"13197691","last_budget":"1045350","budget_growth":11.6251},"y":19},{"key":"2025-05","name":"\u5df2\u6210\u4ea4","model":{"current":7,"last":23,"growth":-0.6956,"current_budget":"402741","last_budget":"6164747","budget_growth":-0.9346},"y":23},{"key":"2025-06","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":21,"growth":null,"current_budget":null,"last_budget":"1168057.1","budget_growth":null},"y":21},{"key":"2025-07","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":29,"growth":null,"current_budget":null,"last_budget":"5515094","budget_growth":null},"y":29},{"key":"2025-08","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":14,"growth":null,"current_budget":null,"last_budget":"928626","budget_growth":null},"y":14},{"key":"2025-09","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":15,"growth":null,"current_budget":null,"last_budget":"972624.6","budget_growth":null},"y":15},{"key":"2025-10","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":18,"growth":null,"current_budget":null,"last_budget":"717727","budget_growth":null},"y":18},{"key":"2025-11","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":18,"growth":null,"current_budget":null,"last_budget":"1074917.99","budget_growth":null},"y":18},{"key":"2025-12","name":"\u5df2\u6210\u4ea4","model":{"current":null,"last":34,"growth":null,"current_budget":null,"last_budget":"10398853.4","budget_growth":null},"y":34}],"seriesLastStatus4":[{"key":"2025-01","name":"\u5df2\u653e\u5f03","model":{"current":1,"last":2,"growth":-0.5,"current_budget":"100000","last_budget":"110000","budget_growth":-0.0909},"y":2},{"key":"2025-02","name":"\u5df2\u653e\u5f03","model":{"current":3,"last":0,"growth":null,"current_budget":"440000","last_budget":"0","budget_growth":null},"y":0},{"key":"2025-03","name":"\u5df2\u653e\u5f03","model":{"current":1,"last":2,"growth":-0.5,"current_budget":"0","last_budget":"800000","budget_growth":-1},"y":2},{"key":"2025-04","name":"\u5df2\u653e\u5f03","model":{"current":1,"last":0,"growth":null,"current_budget":"7","last_budget":"0","budget_growth":null},"y":0},{"key":"2025-05","name":"\u5df2\u653e\u5f03","model":{"current":0,"last":3,"growth":-1,"current_budget":"0","last_budget":"2040000","budget_growth":-1},"y":3},{"key":"2025-06","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":1,"growth":null,"current_budget":null,"last_budget":"200000","budget_growth":null},"y":1},{"key":"2025-07","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"395000","budget_growth":null},"y":3},{"key":"2025-08","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"1550000","budget_growth":null},"y":3},{"key":"2025-09","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":1,"growth":null,"current_budget":null,"last_budget":"290000","budget_growth":null},"y":1},{"key":"2025-10","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":0,"growth":null,"current_budget":null,"last_budget":"0","budget_growth":null},"y":0},{"key":"2025-11","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":4,"growth":null,"current_budget":null,"last_budget":"200000","budget_growth":null},"y":4},{"key":"2025-12","name":"\u5df2\u653e\u5f03","model":{"current":null,"last":14,"growth":null,"current_budget":null,"last_budget":"820900","budget_growth":null},"y":14}],"seriesLastStatus5":[{"key":"2025-01","name":"\u5df2\u6682\u505c","model":{"current":6,"last":3,"growth":1,"current_budget":"514113","last_budget":"600000","budget_growth":-0.1431},"y":3},{"key":"2025-02","name":"\u5df2\u6682\u505c","model":{"current":3,"last":1,"growth":2,"current_budget":"59600","last_budget":"300000","budget_growth":-0.8013},"y":1},{"key":"2025-03","name":"\u5df2\u6682\u505c","model":{"current":1,"last":2,"growth":-0.5,"current_budget":"4444","last_budget":"1020000","budget_growth":-0.9956},"y":2},{"key":"2025-04","name":"\u5df2\u6682\u505c","model":{"current":3,"last":2,"growth":0.5,"current_budget":"3068007","last_budget":"464761","budget_growth":5.6012},"y":2},{"key":"2025-05","name":"\u5df2\u6682\u505c","model":{"current":0,"last":15,"growth":-1,"current_budget":"0","last_budget":"4960000","budget_growth":-1},"y":15},{"key":"2025-06","name":"\u5df2\u6682\u505c","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"188000","budget_growth":null},"y":3},{"key":"2025-07","name":"\u5df2\u6682\u505c","model":{"current":null,"last":6,"growth":null,"current_budget":null,"last_budget":"8132220","budget_growth":null},"y":6},{"key":"2025-08","name":"\u5df2\u6682\u505c","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"31074800","budget_growth":null},"y":3},{"key":"2025-09","name":"\u5df2\u6682\u505c","model":{"current":null,"last":9,"growth":null,"current_budget":null,"last_budget":"5311740","budget_growth":null},"y":9},{"key":"2025-10","name":"\u5df2\u6682\u505c","model":{"current":null,"last":6,"growth":null,"current_budget":null,"last_budget":"6147000","budget_growth":null},"y":6},{"key":"2025-11","name":"\u5df2\u6682\u505c","model":{"current":null,"last":3,"growth":null,"current_budget":null,"last_budget":"220000","budget_growth":null},"y":3},{"key":"2025-12","name":"\u5df2\u6682\u505c","model":{"current":null,"last":10,"growth":null,"current_budget":null,"last_budget":"421800","budget_growth":null},"y":10}]},"sales_stages":{"items":[{"stage_id":2,"stage":"\u786e\u8ba4\u95ee\u9898","count":6,"revenue":"1587000","profit":"186100.0000000000000000"},{"stage_id":3,"stage":"\u65b9\u6848\u8bbe\u8ba1","count":5,"revenue":"2360000","profit":"379500.0000000000000000"},{"stage_id":4,"stage":"\u786e\u8ba4\u65b9\u6848","count":11,"revenue":"1505400","profit":"256850.0000000000000000"},{"stage_id":5,"stage":"\u5546\u52a1\u62a5\u4ef7","count":16,"revenue":"65252982","profit":"15808212.5600000000000000"},{"stage_id":6,"stage":"\u63a8\u52a8\u6210\u4ea4","count":7,"revenue":"1842519","profit":"346171.9000000000000000"},{"stage_id":9,"stage":"\u7b7e\u8ba2\u5408\u540c","count":4,"revenue":"395007","profit":"215985.0000000000000000"},{"stage_id":10,"stage":"\u4ea4\u8d27\u4e2d","count":0,"revenue":"0","profit":"0"},{"stage_id":49,"stage":"\u6536\u6b3e\u4e2d","count":0,"revenue":"0","profit":"0"}],"total_amount":72942908}},"part5":{"expense_type":[{"name":"\u51fa\u79df\u8f66\u8d39","amount":"898488.78","percentage":0.8938},{"name":"\u9910\u996e\u8d39","amount":"35895.60","percentage":0.0357},{"name":"\u5f80\u8fd4\u4ea4\u901a\u8d39","amount":"24899.22","percentage":0.0247},{"name":"\u51fa\u5dee\u8865\u52a9","amount":"5911.00","percentage":0.0058},{"name":"\u91d1\u7545\u900d\u8d39\u7528","amount":"5560","percentage":0.0055},{"name":"\u5176\u4ed6\u529e\u516c\u8d39\u7528","amount":"5433.64","percentage":0.0054},{"name":"\u7f51\u7edc\u8d39\u7528","amount":"5250","percentage":0.0052},{"name":"\u4f4f\u5bbf\u8d39","amount":"4418.54","percentage":0.0043},{"name":"IT\u8d39\u7528","amount":"4383.87","percentage":0.0043},{"name":"\u529e\u516c\u7528\u54c1","amount":"3938.40","percentage":0.0039},{"name":"\u7535\u8bdd\u8d39","amount":"3258.36","percentage":0.0032},{"name":"\u6c34\u7535\u51b7\u6696\u8d39","amount":"2180.00","percentage":0.0021},{"name":"\u71c3\u6cb9\u8d39","amount":"2000","percentage":0.0019},{"name":"\u5feb\u9012\u8d39","amount":"1759.60","percentage":0.0017},{"name":"\u793c\u54c1\u8d39","amount":"1058.00","percentage":0.001},{"name":"\u8336\u70b9\u8d39","amount":"752.05","percentage":0.0007}],"expense_trend":{"categories":["2026-01","2026-02","2026-03","2026-04","2026-05","2026-06","2026-07","2026-08","2026-09","2026-10","2026-11","2026-12"],"currentYear":[{"key":"2026-01","name":"2026-01","model":{"amount":"44113.07","last_amount":"22057.90","growth":0.9998},"y":"44113.07"},{"key":"2026-02","name":"2026-02","model":{"amount":"16846.20","last_amount":"15025.01","growth":0.1212},"y":"16846.20"},{"key":"2026-03","name":"2026-03","model":{"amount":"46399.29","last_amount":"67759.14","growth":-0.3152},"y":"46399.29"},{"key":"2026-04","name":"2026-04","model":{"amount":"893797.00","last_amount":"21644.07","growth":40.2952},"y":"893797.00"},{"key":"2026-05","name":"2026-05","model":{"amount":"4031.50","last_amount":"30026.72","growth":-0.8657},"y":"4031.50"},{"key":"2026-06","name":"2026-06","model":{"amount":null,"last_amount":"44236.44","growth":null},"y":null},{"key":"2026-07","name":"2026-07","model":{"amount":null,"last_amount":"44604.31","growth":null},"y":null},{"key":"2026-08","name":"2026-08","model":{"amount":null,"last_amount":"27839.27","growth":null},"y":null},{"key":"2026-09","name":"2026-09","model":{"amount":null,"last_amount":"38727.16","growth":null},"y":null},{"key":"2026-10","name":"2026-10","model":{"amount":null,"last_amount":"28475.16","growth":null},"y":null},{"key":"2026-11","name":"2026-11","model":{"amount":null,"last_amount":"51844.94","growth":null},"y":null},{"key":"2026-12","name":"2026-12","model":{"amount":null,"last_amount":"19348.88","growth":null},"y":null}],"lastYear":[{"key":"2025-01","name":"2026-01","model":{"amount":"44113.07","last_amount":"22057.90","growth":0.9998},"y":"22057.90"},{"key":"2025-02","name":"2026-02","model":{"amount":"16846.20","last_amount":"15025.01","growth":0.1212},"y":"15025.01"},{"key":"2025-03","name":"2026-03","model":{"amount":"46399.29","last_amount":"67759.14","growth":-0.3152},"y":"67759.14"},{"key":"2025-04","name":"2026-04","model":{"amount":"893797.00","last_amount":"21644.07","growth":40.2952},"y":"21644.07"},{"key":"2025-05","name":"2026-05","model":{"amount":"4031.50","last_amount":"30026.72","growth":-0.8657},"y":"30026.72"},{"key":"2025-06","name":"2026-06","model":{"amount":null,"last_amount":"44236.44","growth":null},"y":"44236.44"},{"key":"2025-07","name":"2026-07","model":{"amount":null,"last_amount":"44604.31","growth":null},"y":"44604.31"},{"key":"2025-08","name":"2026-08","model":{"amount":null,"last_amount":"27839.27","growth":null},"y":"27839.27"},{"key":"2025-09","name":"2026-09","model":{"amount":null,"last_amount":"38727.16","growth":null},"y":"38727.16"},{"key":"2025-10","name":"2026-10","model":{"amount":null,"last_amount":"28475.16","growth":null},"y":"28475.16"},{"key":"2025-11","name":"2026-11","model":{"amount":null,"last_amount":"51844.94","growth":null},"y":"51844.94"},{"key":"2025-12","name":"2026-12","model":{"amount":null,"last_amount":"19348.88","growth":null},"y":"19348.88"}],"totalAmount":1005187.06,"totalLastAmount":156512.84,"totalGrowth":5.4223}},"part6":{"opportunity_source":[{"name":"\u674e\u777f\uff08Rick Li\uff09","count":"1940825.78","percentage":1}],"sales_activity":{"categories":["2026-01","2026-02","2026-03","2026-04","2026-05","2026-06","2026-07","2026-08","2026-09","2026-10","2026-11","2026-12"],"visitCountCurrent":[{"key":"2026-01","name":"2026-01","model":{"visit_count":53,"last_visit_count":37,"count_growth":0.4324,"visit_hours":60.43,"last_visit_hours":37.87,"hours_growth":0.5958},"y":53},{"key":"2026-02","name":"2026-02","model":{"visit_count":21,"last_visit_count":38,"count_growth":-0.4473,"visit_hours":20.81,"last_visit_hours":53.85,"hours_growth":-0.6135},"y":21},{"key":"2026-03","name":"2026-03","model":{"visit_count":36,"last_visit_count":62,"count_growth":-0.4193,"visit_hours":41.01,"last_visit_hours":89.67,"hours_growth":-0.5426},"y":36},{"key":"2026-04","name":"2026-04","model":{"visit_count":9,"last_visit_count":53,"count_growth":-0.8301,"visit_hours":0.1,"last_visit_hours":69,"hours_growth":-0.9985},"y":9},{"key":"2026-05","name":"2026-05","model":{"visit_count":1,"last_visit_count":45,"count_growth":-0.9777,"visit_hours":0,"last_visit_hours":53.18,"hours_growth":-0.9999},"y":1},{"key":"2026-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":43,"count_growth":null,"visit_hours":null,"last_visit_hours":54.08,"hours_growth":null},"y":null},{"key":"2026-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":57,"count_growth":null,"visit_hours":null,"last_visit_hours":61.02,"hours_growth":null},"y":null},{"key":"2026-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":50,"count_growth":null,"visit_hours":null,"last_visit_hours":67.77,"hours_growth":null},"y":null},{"key":"2026-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":63,"count_growth":null,"visit_hours":null,"last_visit_hours":68.52,"hours_growth":null},"y":null},{"key":"2026-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":47,"count_growth":null,"visit_hours":null,"last_visit_hours":53.79,"hours_growth":null},"y":null},{"key":"2026-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":56,"count_growth":null,"visit_hours":null,"last_visit_hours":47.47,"hours_growth":null},"y":null},{"key":"2026-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":57,"count_growth":null,"visit_hours":null,"last_visit_hours":48.7,"hours_growth":null},"y":null}],"visitCountLast":[{"key":"2025-01","name":"2026-01","model":{"visit_count":53,"last_visit_count":37,"count_growth":0.4324,"visit_hours":60.43,"last_visit_hours":37.87,"hours_growth":0.5958},"y":37},{"key":"2025-02","name":"2026-02","model":{"visit_count":21,"last_visit_count":38,"count_growth":-0.4473,"visit_hours":20.81,"last_visit_hours":53.85,"hours_growth":-0.6135},"y":38},{"key":"2025-03","name":"2026-03","model":{"visit_count":36,"last_visit_count":62,"count_growth":-0.4193,"visit_hours":41.01,"last_visit_hours":89.67,"hours_growth":-0.5426},"y":62},{"key":"2025-04","name":"2026-04","model":{"visit_count":9,"last_visit_count":53,"count_growth":-0.8301,"visit_hours":0.1,"last_visit_hours":69,"hours_growth":-0.9985},"y":53},{"key":"2025-05","name":"2026-05","model":{"visit_count":1,"last_visit_count":45,"count_growth":-0.9777,"visit_hours":0,"last_visit_hours":53.18,"hours_growth":-0.9999},"y":45},{"key":"2025-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":43,"count_growth":null,"visit_hours":null,"last_visit_hours":54.08,"hours_growth":null},"y":43},{"key":"2025-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":57,"count_growth":null,"visit_hours":null,"last_visit_hours":61.02,"hours_growth":null},"y":57},{"key":"2025-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":50,"count_growth":null,"visit_hours":null,"last_visit_hours":67.77,"hours_growth":null},"y":50},{"key":"2025-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":63,"count_growth":null,"visit_hours":null,"last_visit_hours":68.52,"hours_growth":null},"y":63},{"key":"2025-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":47,"count_growth":null,"visit_hours":null,"last_visit_hours":53.79,"hours_growth":null},"y":47},{"key":"2025-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":56,"count_growth":null,"visit_hours":null,"last_visit_hours":47.47,"hours_growth":null},"y":56},{"key":"2025-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":57,"count_growth":null,"visit_hours":null,"last_visit_hours":48.7,"hours_growth":null},"y":57}],"visitHoursCurrent":[{"key":"2026-01","name":"2026-01","model":{"visit_count":53,"last_visit_count":37,"count_growth":0.4324,"visit_hours":60.43,"last_visit_hours":37.87,"hours_growth":0.5958},"y":60.43},{"key":"2026-02","name":"2026-02","model":{"visit_count":21,"last_visit_count":38,"count_growth":-0.4473,"visit_hours":20.81,"last_visit_hours":53.85,"hours_growth":-0.6135},"y":20.81},{"key":"2026-03","name":"2026-03","model":{"visit_count":36,"last_visit_count":62,"count_growth":-0.4193,"visit_hours":41.01,"last_visit_hours":89.67,"hours_growth":-0.5426},"y":41.01},{"key":"2026-04","name":"2026-04","model":{"visit_count":9,"last_visit_count":53,"count_growth":-0.8301,"visit_hours":0.1,"last_visit_hours":69,"hours_growth":-0.9985},"y":0.1},{"key":"2026-05","name":"2026-05","model":{"visit_count":1,"last_visit_count":45,"count_growth":-0.9777,"visit_hours":0,"last_visit_hours":53.18,"hours_growth":-0.9999},"y":0},{"key":"2026-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":43,"count_growth":null,"visit_hours":null,"last_visit_hours":54.08,"hours_growth":null},"y":null},{"key":"2026-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":57,"count_growth":null,"visit_hours":null,"last_visit_hours":61.02,"hours_growth":null},"y":null},{"key":"2026-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":50,"count_growth":null,"visit_hours":null,"last_visit_hours":67.77,"hours_growth":null},"y":null},{"key":"2026-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":63,"count_growth":null,"visit_hours":null,"last_visit_hours":68.52,"hours_growth":null},"y":null},{"key":"2026-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":47,"count_growth":null,"visit_hours":null,"last_visit_hours":53.79,"hours_growth":null},"y":null},{"key":"2026-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":56,"count_growth":null,"visit_hours":null,"last_visit_hours":47.47,"hours_growth":null},"y":null},{"key":"2026-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":57,"count_growth":null,"visit_hours":null,"last_visit_hours":48.7,"hours_growth":null},"y":null}],"visitHoursLast":[{"key":"2025-01","name":"2026-01","model":{"visit_count":53,"last_visit_count":37,"count_growth":0.4324,"visit_hours":60.43,"last_visit_hours":37.87,"hours_growth":0.5958},"y":37.87},{"key":"2025-02","name":"2026-02","model":{"visit_count":21,"last_visit_count":38,"count_growth":-0.4473,"visit_hours":20.81,"last_visit_hours":53.85,"hours_growth":-0.6135},"y":53.85},{"key":"2025-03","name":"2026-03","model":{"visit_count":36,"last_visit_count":62,"count_growth":-0.4193,"visit_hours":41.01,"last_visit_hours":89.67,"hours_growth":-0.5426},"y":89.67},{"key":"2025-04","name":"2026-04","model":{"visit_count":9,"last_visit_count":53,"count_growth":-0.8301,"visit_hours":0.1,"last_visit_hours":69,"hours_growth":-0.9985},"y":69},{"key":"2025-05","name":"2026-05","model":{"visit_count":1,"last_visit_count":45,"count_growth":-0.9777,"visit_hours":0,"last_visit_hours":53.18,"hours_growth":-0.9999},"y":53.18},{"key":"2025-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":43,"count_growth":null,"visit_hours":null,"last_visit_hours":54.08,"hours_growth":null},"y":54.08},{"key":"2025-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":57,"count_growth":null,"visit_hours":null,"last_visit_hours":61.02,"hours_growth":null},"y":61.02},{"key":"2025-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":50,"count_growth":null,"visit_hours":null,"last_visit_hours":67.77,"hours_growth":null},"y":67.77},{"key":"2025-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":63,"count_growth":null,"visit_hours":null,"last_visit_hours":68.52,"hours_growth":null},"y":68.52},{"key":"2025-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":47,"count_growth":null,"visit_hours":null,"last_visit_hours":53.79,"hours_growth":null},"y":53.79},{"key":"2025-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":56,"count_growth":null,"visit_hours":null,"last_visit_hours":47.47,"hours_growth":null},"y":47.47},{"key":"2025-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":57,"count_growth":null,"visit_hours":null,"last_visit_hours":48.7,"hours_growth":null},"y":48.7}],"totalCount":120,"totalHours":122.35,"totalLastCount":235,"totalLastHours":303.57}},"part7":{"preSales":{"categories":["2026-01","2026-02","2026-03","2026-04","2026-05","2026-06","2026-07","2026-08","2026-09","2026-10","2026-11","2026-12"],"visitCountCurrent":[{"key":"2026-01","name":"2026-01","model":{"visit_count":5,"last_visit_count":1,"count_growth":4,"visit_hours":4.4,"last_visit_hours":0.75,"hours_growth":4.8666},"y":5},{"key":"2026-02","name":"2026-02","model":{"visit_count":6,"last_visit_count":12,"count_growth":-0.5,"visit_hours":35.85,"last_visit_hours":15.8,"hours_growth":1.2689},"y":6},{"key":"2026-03","name":"2026-03","model":{"visit_count":8,"last_visit_count":18,"count_growth":-0.5555,"visit_hours":8.93,"last_visit_hours":30.33,"hours_growth":-0.7054},"y":8},{"key":"2026-04","name":"2026-04","model":{"visit_count":5,"last_visit_count":21,"count_growth":-0.7619,"visit_hours":2,"last_visit_hours":36,"hours_growth":-0.9444},"y":5},{"key":"2026-05","name":"2026-05","model":{"visit_count":0,"last_visit_count":6,"count_growth":-1,"visit_hours":0,"last_visit_hours":12.9,"hours_growth":-1},"y":0},{"key":"2026-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":10,"count_growth":null,"visit_hours":null,"last_visit_hours":31.38,"hours_growth":null},"y":null},{"key":"2026-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":11,"count_growth":null,"visit_hours":null,"last_visit_hours":81.43,"hours_growth":null},"y":null},{"key":"2026-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":6,"count_growth":null,"visit_hours":null,"last_visit_hours":12.58,"hours_growth":null},"y":null},{"key":"2026-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":4,"count_growth":null,"visit_hours":null,"last_visit_hours":10.02,"hours_growth":null},"y":null},{"key":"2026-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":11,"count_growth":null,"visit_hours":null,"last_visit_hours":24.98,"hours_growth":null},"y":null},{"key":"2026-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":10,"count_growth":null,"visit_hours":null,"last_visit_hours":36.67,"hours_growth":null},"y":null},{"key":"2026-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":4,"count_growth":null,"visit_hours":null,"last_visit_hours":8.53,"hours_growth":null},"y":null}],"visitCountLast":[{"key":"2025-01","name":"2026-01","model":{"visit_count":5,"last_visit_count":1,"count_growth":4,"visit_hours":4.4,"last_visit_hours":0.75,"hours_growth":4.8666},"y":1},{"key":"2025-02","name":"2026-02","model":{"visit_count":6,"last_visit_count":12,"count_growth":-0.5,"visit_hours":35.85,"last_visit_hours":15.8,"hours_growth":1.2689},"y":12},{"key":"2025-03","name":"2026-03","model":{"visit_count":8,"last_visit_count":18,"count_growth":-0.5555,"visit_hours":8.93,"last_visit_hours":30.33,"hours_growth":-0.7054},"y":18},{"key":"2025-04","name":"2026-04","model":{"visit_count":5,"last_visit_count":21,"count_growth":-0.7619,"visit_hours":2,"last_visit_hours":36,"hours_growth":-0.9444},"y":21},{"key":"2025-05","name":"2026-05","model":{"visit_count":0,"last_visit_count":6,"count_growth":-1,"visit_hours":0,"last_visit_hours":12.9,"hours_growth":-1},"y":6},{"key":"2025-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":10,"count_growth":null,"visit_hours":null,"last_visit_hours":31.38,"hours_growth":null},"y":10},{"key":"2025-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":11,"count_growth":null,"visit_hours":null,"last_visit_hours":81.43,"hours_growth":null},"y":11},{"key":"2025-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":6,"count_growth":null,"visit_hours":null,"last_visit_hours":12.58,"hours_growth":null},"y":6},{"key":"2025-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":4,"count_growth":null,"visit_hours":null,"last_visit_hours":10.02,"hours_growth":null},"y":4},{"key":"2025-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":11,"count_growth":null,"visit_hours":null,"last_visit_hours":24.98,"hours_growth":null},"y":11},{"key":"2025-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":10,"count_growth":null,"visit_hours":null,"last_visit_hours":36.67,"hours_growth":null},"y":10},{"key":"2025-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":4,"count_growth":null,"visit_hours":null,"last_visit_hours":8.53,"hours_growth":null},"y":4}],"visitHoursCurrent":[{"key":"2026-01","name":"2026-01","model":{"visit_count":5,"last_visit_count":1,"count_growth":4,"visit_hours":4.4,"last_visit_hours":0.75,"hours_growth":4.8666},"y":4.4},{"key":"2026-02","name":"2026-02","model":{"visit_count":6,"last_visit_count":12,"count_growth":-0.5,"visit_hours":35.85,"last_visit_hours":15.8,"hours_growth":1.2689},"y":35.85},{"key":"2026-03","name":"2026-03","model":{"visit_count":8,"last_visit_count":18,"count_growth":-0.5555,"visit_hours":8.93,"last_visit_hours":30.33,"hours_growth":-0.7054},"y":8.93},{"key":"2026-04","name":"2026-04","model":{"visit_count":5,"last_visit_count":21,"count_growth":-0.7619,"visit_hours":2,"last_visit_hours":36,"hours_growth":-0.9444},"y":2},{"key":"2026-05","name":"2026-05","model":{"visit_count":0,"last_visit_count":6,"count_growth":-1,"visit_hours":0,"last_visit_hours":12.9,"hours_growth":-1},"y":0},{"key":"2026-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":10,"count_growth":null,"visit_hours":null,"last_visit_hours":31.38,"hours_growth":null},"y":null},{"key":"2026-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":11,"count_growth":null,"visit_hours":null,"last_visit_hours":81.43,"hours_growth":null},"y":null},{"key":"2026-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":6,"count_growth":null,"visit_hours":null,"last_visit_hours":12.58,"hours_growth":null},"y":null},{"key":"2026-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":4,"count_growth":null,"visit_hours":null,"last_visit_hours":10.02,"hours_growth":null},"y":null},{"key":"2026-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":11,"count_growth":null,"visit_hours":null,"last_visit_hours":24.98,"hours_growth":null},"y":null},{"key":"2026-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":10,"count_growth":null,"visit_hours":null,"last_visit_hours":36.67,"hours_growth":null},"y":null},{"key":"2026-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":4,"count_growth":null,"visit_hours":null,"last_visit_hours":8.53,"hours_growth":null},"y":null}],"visitHoursLast":[{"key":"2025-01","name":"2026-01","model":{"visit_count":5,"last_visit_count":1,"count_growth":4,"visit_hours":4.4,"last_visit_hours":0.75,"hours_growth":4.8666},"y":0.75},{"key":"2025-02","name":"2026-02","model":{"visit_count":6,"last_visit_count":12,"count_growth":-0.5,"visit_hours":35.85,"last_visit_hours":15.8,"hours_growth":1.2689},"y":15.8},{"key":"2025-03","name":"2026-03","model":{"visit_count":8,"last_visit_count":18,"count_growth":-0.5555,"visit_hours":8.93,"last_visit_hours":30.33,"hours_growth":-0.7054},"y":30.33},{"key":"2025-04","name":"2026-04","model":{"visit_count":5,"last_visit_count":21,"count_growth":-0.7619,"visit_hours":2,"last_visit_hours":36,"hours_growth":-0.9444},"y":36},{"key":"2025-05","name":"2026-05","model":{"visit_count":0,"last_visit_count":6,"count_growth":-1,"visit_hours":0,"last_visit_hours":12.9,"hours_growth":-1},"y":12.9},{"key":"2025-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":10,"count_growth":null,"visit_hours":null,"last_visit_hours":31.38,"hours_growth":null},"y":31.38},{"key":"2025-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":11,"count_growth":null,"visit_hours":null,"last_visit_hours":81.43,"hours_growth":null},"y":81.43},{"key":"2025-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":6,"count_growth":null,"visit_hours":null,"last_visit_hours":12.58,"hours_growth":null},"y":12.58},{"key":"2025-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":4,"count_growth":null,"visit_hours":null,"last_visit_hours":10.02,"hours_growth":null},"y":10.02},{"key":"2025-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":11,"count_growth":null,"visit_hours":null,"last_visit_hours":24.98,"hours_growth":null},"y":24.98},{"key":"2025-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":10,"count_growth":null,"visit_hours":null,"last_visit_hours":36.67,"hours_growth":null},"y":36.67},{"key":"2025-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":4,"count_growth":null,"visit_hours":null,"last_visit_hours":8.53,"hours_growth":null},"y":8.53}],"totalCount":24,"totalHours":51.18,"totalLastCount":58,"totalLastHours":95.78},"implement":{"categories":["2026-01","2026-02","2026-03","2026-04","2026-05","2026-06","2026-07","2026-08","2026-09","2026-10","2026-11","2026-12"],"visitCountCurrent":[{"key":"2026-01","name":"2026-01","model":{"visit_count":54,"last_visit_count":55,"count_growth":-0.0181,"visit_hours":163.53,"last_visit_hours":196.08,"hours_growth":-0.166},"y":54},{"key":"2026-02","name":"2026-02","model":{"visit_count":33,"last_visit_count":47,"count_growth":-0.2978,"visit_hours":105.02,"last_visit_hours":121.88,"hours_growth":-0.1383},"y":33},{"key":"2026-03","name":"2026-03","model":{"visit_count":38,"last_visit_count":81,"count_growth":-0.5308,"visit_hours":126.78,"last_visit_hours":194.6,"hours_growth":-0.3484},"y":38},{"key":"2026-04","name":"2026-04","model":{"visit_count":1,"last_visit_count":61,"count_growth":-0.9836,"visit_hours":2,"last_visit_hours":181.42,"hours_growth":-0.9889},"y":1},{"key":"2026-05","name":"2026-05","model":{"visit_count":0,"last_visit_count":87,"count_growth":-1,"visit_hours":0,"last_visit_hours":300.9,"hours_growth":-1},"y":0},{"key":"2026-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":70,"count_growth":null,"visit_hours":null,"last_visit_hours":204.4,"hours_growth":null},"y":null},{"key":"2026-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":106,"count_growth":null,"visit_hours":null,"last_visit_hours":506.37,"hours_growth":null},"y":null},{"key":"2026-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":84,"count_growth":null,"visit_hours":null,"last_visit_hours":376.7,"hours_growth":null},"y":null},{"key":"2026-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":95,"count_growth":null,"visit_hours":null,"last_visit_hours":360.67,"hours_growth":null},"y":null},{"key":"2026-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":58,"count_growth":null,"visit_hours":null,"last_visit_hours":186.2,"hours_growth":null},"y":null},{"key":"2026-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":66,"count_growth":null,"visit_hours":null,"last_visit_hours":204.35,"hours_growth":null},"y":null},{"key":"2026-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":81,"count_growth":null,"visit_hours":null,"last_visit_hours":223.57,"hours_growth":null},"y":null}],"visitCountLast":[{"key":"2025-01","name":"2026-01","model":{"visit_count":54,"last_visit_count":55,"count_growth":-0.0181,"visit_hours":163.53,"last_visit_hours":196.08,"hours_growth":-0.166},"y":55},{"key":"2025-02","name":"2026-02","model":{"visit_count":33,"last_visit_count":47,"count_growth":-0.2978,"visit_hours":105.02,"last_visit_hours":121.88,"hours_growth":-0.1383},"y":47},{"key":"2025-03","name":"2026-03","model":{"visit_count":38,"last_visit_count":81,"count_growth":-0.5308,"visit_hours":126.78,"last_visit_hours":194.6,"hours_growth":-0.3484},"y":81},{"key":"2025-04","name":"2026-04","model":{"visit_count":1,"last_visit_count":61,"count_growth":-0.9836,"visit_hours":2,"last_visit_hours":181.42,"hours_growth":-0.9889},"y":61},{"key":"2025-05","name":"2026-05","model":{"visit_count":0,"last_visit_count":87,"count_growth":-1,"visit_hours":0,"last_visit_hours":300.9,"hours_growth":-1},"y":87},{"key":"2025-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":70,"count_growth":null,"visit_hours":null,"last_visit_hours":204.4,"hours_growth":null},"y":70},{"key":"2025-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":106,"count_growth":null,"visit_hours":null,"last_visit_hours":506.37,"hours_growth":null},"y":106},{"key":"2025-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":84,"count_growth":null,"visit_hours":null,"last_visit_hours":376.7,"hours_growth":null},"y":84},{"key":"2025-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":95,"count_growth":null,"visit_hours":null,"last_visit_hours":360.67,"hours_growth":null},"y":95},{"key":"2025-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":58,"count_growth":null,"visit_hours":null,"last_visit_hours":186.2,"hours_growth":null},"y":58},{"key":"2025-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":66,"count_growth":null,"visit_hours":null,"last_visit_hours":204.35,"hours_growth":null},"y":66},{"key":"2025-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":81,"count_growth":null,"visit_hours":null,"last_visit_hours":223.57,"hours_growth":null},"y":81}],"visitHoursCurrent":[{"key":"2026-01","name":"2026-01","model":{"visit_count":54,"last_visit_count":55,"count_growth":-0.0181,"visit_hours":163.53,"last_visit_hours":196.08,"hours_growth":-0.166},"y":163.53},{"key":"2026-02","name":"2026-02","model":{"visit_count":33,"last_visit_count":47,"count_growth":-0.2978,"visit_hours":105.02,"last_visit_hours":121.88,"hours_growth":-0.1383},"y":105.02},{"key":"2026-03","name":"2026-03","model":{"visit_count":38,"last_visit_count":81,"count_growth":-0.5308,"visit_hours":126.78,"last_visit_hours":194.6,"hours_growth":-0.3484},"y":126.78},{"key":"2026-04","name":"2026-04","model":{"visit_count":1,"last_visit_count":61,"count_growth":-0.9836,"visit_hours":2,"last_visit_hours":181.42,"hours_growth":-0.9889},"y":2},{"key":"2026-05","name":"2026-05","model":{"visit_count":0,"last_visit_count":87,"count_growth":-1,"visit_hours":0,"last_visit_hours":300.9,"hours_growth":-1},"y":0},{"key":"2026-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":70,"count_growth":null,"visit_hours":null,"last_visit_hours":204.4,"hours_growth":null},"y":null},{"key":"2026-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":106,"count_growth":null,"visit_hours":null,"last_visit_hours":506.37,"hours_growth":null},"y":null},{"key":"2026-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":84,"count_growth":null,"visit_hours":null,"last_visit_hours":376.7,"hours_growth":null},"y":null},{"key":"2026-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":95,"count_growth":null,"visit_hours":null,"last_visit_hours":360.67,"hours_growth":null},"y":null},{"key":"2026-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":58,"count_growth":null,"visit_hours":null,"last_visit_hours":186.2,"hours_growth":null},"y":null},{"key":"2026-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":66,"count_growth":null,"visit_hours":null,"last_visit_hours":204.35,"hours_growth":null},"y":null},{"key":"2026-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":81,"count_growth":null,"visit_hours":null,"last_visit_hours":223.57,"hours_growth":null},"y":null}],"visitHoursLast":[{"key":"2025-01","name":"2026-01","model":{"visit_count":54,"last_visit_count":55,"count_growth":-0.0181,"visit_hours":163.53,"last_visit_hours":196.08,"hours_growth":-0.166},"y":196.08},{"key":"2025-02","name":"2026-02","model":{"visit_count":33,"last_visit_count":47,"count_growth":-0.2978,"visit_hours":105.02,"last_visit_hours":121.88,"hours_growth":-0.1383},"y":121.88},{"key":"2025-03","name":"2026-03","model":{"visit_count":38,"last_visit_count":81,"count_growth":-0.5308,"visit_hours":126.78,"last_visit_hours":194.6,"hours_growth":-0.3484},"y":194.6},{"key":"2025-04","name":"2026-04","model":{"visit_count":1,"last_visit_count":61,"count_growth":-0.9836,"visit_hours":2,"last_visit_hours":181.42,"hours_growth":-0.9889},"y":181.42},{"key":"2025-05","name":"2026-05","model":{"visit_count":0,"last_visit_count":87,"count_growth":-1,"visit_hours":0,"last_visit_hours":300.9,"hours_growth":-1},"y":300.9},{"key":"2025-06","name":"2026-06","model":{"visit_count":null,"last_visit_count":70,"count_growth":null,"visit_hours":null,"last_visit_hours":204.4,"hours_growth":null},"y":204.4},{"key":"2025-07","name":"2026-07","model":{"visit_count":null,"last_visit_count":106,"count_growth":null,"visit_hours":null,"last_visit_hours":506.37,"hours_growth":null},"y":506.37},{"key":"2025-08","name":"2026-08","model":{"visit_count":null,"last_visit_count":84,"count_growth":null,"visit_hours":null,"last_visit_hours":376.7,"hours_growth":null},"y":376.7},{"key":"2025-09","name":"2026-09","model":{"visit_count":null,"last_visit_count":95,"count_growth":null,"visit_hours":null,"last_visit_hours":360.67,"hours_growth":null},"y":360.67},{"key":"2025-10","name":"2026-10","model":{"visit_count":null,"last_visit_count":58,"count_growth":null,"visit_hours":null,"last_visit_hours":186.2,"hours_growth":null},"y":186.2},{"key":"2025-11","name":"2026-11","model":{"visit_count":null,"last_visit_count":66,"count_growth":null,"visit_hours":null,"last_visit_hours":204.35,"hours_growth":null},"y":204.35},{"key":"2025-12","name":"2026-12","model":{"visit_count":null,"last_visit_count":81,"count_growth":null,"visit_hours":null,"last_visit_hours":223.57,"hours_growth":null},"y":223.57}],"totalCount":126,"totalHours":397.33,"totalLastCount":331,"totalLastHours":994.88}},"part8":{"circleProductType":[{"range_key":"age_0_30","range_name":"\u5e93\u9f84\u4e3a0-30\u5929","min_day":0,"max_day":30,"total_amount":81751.72,"total_number":9,"items":[{"key":"5","name":"\u5b89\u5168\u8bbe\u5907","amount":"81526.72","number":"6","brand_name":"","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.9972,"number_pct":0.6666},{"key":"4","name":"\u7f51\u7edc\u8bbe\u5907 ","amount":"222","number":"1","brand_name":"","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0027,"number_pct":0.1111},{"key":"3","name":"\u5b58\u50a8\u8bbe\u5907","amount":"3","number":"1","brand_name":"","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","amount_pct":0,"number_pct":0.1111},{"key":"7","name":"\u8f6f\u4ef6","amount":"0","number":"1","brand_name":"","type_name":"\u8f6f\u4ef6","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.1111}],"is_empty":false},{"range_key":"age_31_60","range_name":"\u5e93\u9f84\u4e3a31-60\u5929","min_day":31,"max_day":60,"total_amount":271638,"total_number":65,"items":[{"key":"21","name":"\u6570\u7801\u8bbe\u5907","amount":"178180","number":"4","brand_name":"","type_name":"\u6570\u7801\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.6559,"number_pct":0.0615},{"key":"3","name":"\u5b58\u50a8\u8bbe\u5907","amount":"86484","number":"2","brand_name":"","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.3183,"number_pct":0.0307},{"key":"3","name":"\u5b58\u50a8\u8bbe\u5907","amount":"4646","number":"2","brand_name":"","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0171,"number_pct":0.0307},{"key":"4","name":"\u7f51\u7edc\u8bbe\u5907 ","amount":"2295","number":"53","brand_name":"","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0084,"number_pct":0.8153},{"key":"4","name":"\u7f51\u7edc\u8bbe\u5907 ","amount":"33","number":"1","brand_name":"","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0001,"number_pct":0.0153},{"key":"3","name":"\u5b58\u50a8\u8bbe\u5907","amount":"0","number":"3","brand_name":"","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.0461}],"is_empty":false},{"range_key":"age_61_90","range_name":"\u5e93\u9f84\u4e3a61-90\u5929","min_day":61,"max_day":90,"total_amount":4688.4066666664,"total_number":8,"items":[{"key":"23","name":"\u793c\u54c1","amount":"3548.4066666664","number":"4","brand_name":"","type_name":"\u793c\u54c1","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.7568,"number_pct":0.5},{"key":"21","name":"\u6570\u7801\u8bbe\u5907","amount":"1140","number":"4","brand_name":"","type_name":"\u6570\u7801\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.2431,"number_pct":0.5}],"is_empty":false},{"range_key":"age_91_180","range_name":"\u5e93\u9f84\u4e3a91-180\u5929","min_day":91,"max_day":180,"total_amount":7198.62,"total_number":5,"items":[{"key":"23","name":"\u793c\u54c1","amount":"7198.620","number":"4","brand_name":"","type_name":"\u793c\u54c1","component_name":"","serie_name":"","product_model_name":"","amount_pct":1,"number_pct":0.8},{"key":"19","name":"\u6280\u672f\u670d\u52a1","amount":"0","number":"1","brand_name":"","type_name":"\u6280\u672f\u670d\u52a1","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.2}],"is_empty":false},{"range_key":"age_181_360","range_name":"\u5e93\u9f84\u4e3a180-360\u5929","min_day":181,"max_day":360,"total_amount":87030.81,"total_number":214,"items":[{"key":"5","name":"\u5b89\u5168\u8bbe\u5907","amount":"65000","number":"2","brand_name":"","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.7468,"number_pct":0.0093},{"key":"23","name":"\u793c\u54c1","amount":"15113.70","number":"154","brand_name":"","type_name":"\u793c\u54c1","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.1736,"number_pct":0.7196},{"key":"11","name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","amount":"3897.11","number":"37","brand_name":"","type_name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0447,"number_pct":0.1728},{"key":"2","name":"\u670d\u52a1\u5668","amount":"2700","number":"3","brand_name":"","type_name":"\u670d\u52a1\u5668","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.031,"number_pct":0.014},{"key":"4","name":"\u7f51\u7edc\u8bbe\u5907 ","amount":"225","number":"9","brand_name":"","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0025,"number_pct":0.042},{"key":"4","name":"\u7f51\u7edc\u8bbe\u5907 ","amount":"95","number":"8","brand_name":"","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.001,"number_pct":0.0373},{"key":"3","name":"\u5b58\u50a8\u8bbe\u5907","amount":"0","number":"1","brand_name":"","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.0046}],"is_empty":false},{"range_key":"age_361_plus","range_name":"\u5e93\u9f84\u4e3a361\u5929\u4ee5\u4e0a","min_day":361,"max_day":null,"total_amount":"0","total_number":"0","items":[],"is_empty":true}],"circleProductComponent":[{"range_key":"age_0_30","range_name":"\u5e93\u9f84\u4e3a0-30\u5929","min_day":0,"max_day":30,"total_amount":81751.72,"total_number":9,"items":[{"key":"35","name":"\u9632\u706b\u5899\u8f6f\u4ef6","amount":"43363.32","number":"2","brand_name":"","type_name":"","component_name":"\u9632\u706b\u5899\u8f6f\u4ef6","serie_name":"","product_model_name":"","amount_pct":0.5304,"number_pct":0.2222},{"key":"36","name":"PA\u8bb8\u53ef\u8bc1","amount":"19081.70","number":"2","brand_name":"","type_name":"","component_name":"PA\u8bb8\u53ef\u8bc1","serie_name":"","product_model_name":"","amount_pct":0.2334,"number_pct":0.2222},{"key":"157","name":"\u9632\u706b\u5899\u914d\u4ef6","amount":"19081.70","number":"2","brand_name":"","type_name":"","component_name":"\u9632\u706b\u5899\u914d\u4ef6","serie_name":"","product_model_name":"","amount_pct":0.2334,"number_pct":0.2222},{"key":"52","name":"\u534f\u4f5c","amount":"222","number":"1","brand_name":"","type_name":"","component_name":"\u534f\u4f5c","serie_name":"","product_model_name":"","amount_pct":0.0027,"number_pct":0.1111},{"key":"15","name":"\u5b58\u50a8\u786c\u76d8","amount":"3","number":"1","brand_name":"","type_name":"","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"","product_model_name":"","amount_pct":0,"number_pct":0.1111},{"key":"159","name":"\u529e\u516c\u8f6f\u4ef6","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"\u529e\u516c\u8f6f\u4ef6","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.1111}],"is_empty":false},{"range_key":"age_31_60","range_name":"\u5e93\u9f84\u4e3a31-60\u5929","min_day":31,"max_day":60,"total_amount":271638,"total_number":65,"items":[{"key":"227","name":"\u6295\u5f71\u673a","amount":"178180","number":"4","brand_name":"","type_name":"","component_name":"\u6295\u5f71\u673a","serie_name":"","product_model_name":"","amount_pct":0.6559,"number_pct":0.0615},{"key":"15","name":"\u5b58\u50a8\u786c\u76d8","amount":"86484","number":"2","brand_name":"","type_name":"","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"","product_model_name":"","amount_pct":0.3183,"number_pct":0.0307},{"key":"15","name":"\u5b58\u50a8\u786c\u76d8","amount":"4646","number":"2","brand_name":"","type_name":"","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"","product_model_name":"","amount_pct":0.0171,"number_pct":0.0307},{"key":"52","name":"\u534f\u4f5c","amount":"2295","number":"51","brand_name":"","type_name":"","component_name":"\u534f\u4f5c","serie_name":"","product_model_name":"","amount_pct":0.0084,"number_pct":0.7846},{"key":"43","name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","amount":"33","number":"1","brand_name":"","type_name":"","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"","product_model_name":"","amount_pct":0.0001,"number_pct":0.0153},{"key":"15","name":"\u5b58\u50a8\u786c\u76d8","amount":"0","number":"3","brand_name":"","type_name":"","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.0461},{"key":"43","name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","amount":"0","number":"2","brand_name":"","type_name":"","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.0307}],"is_empty":false},{"range_key":"age_61_90","range_name":"\u5e93\u9f84\u4e3a61-90\u5929","min_day":61,"max_day":90,"total_amount":4688.4066666664,"total_number":8,"items":[{"key":"194","name":"\u70df\u9152\u8336\u53f6","amount":"3548.4066666664","number":"4","brand_name":"","type_name":"","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"","product_model_name":"","amount_pct":0.7568,"number_pct":0.5},{"key":"229","name":"\u6570\u7801\u8bbe\u5907\u914d\u4ef6","amount":"1140","number":"4","brand_name":"","type_name":"","component_name":"\u6570\u7801\u8bbe\u5907\u914d\u4ef6","serie_name":"","product_model_name":"","amount_pct":0.2431,"number_pct":0.5}],"is_empty":false},{"range_key":"age_91_180","range_name":"\u5e93\u9f84\u4e3a91-180\u5929","min_day":91,"max_day":180,"total_amount":7198.62,"total_number":5,"items":[{"key":"194","name":"\u70df\u9152\u8336\u53f6","amount":"7198.620","number":"4","brand_name":"","type_name":"","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"","product_model_name":"","amount_pct":1,"number_pct":0.8},{"key":"151","name":"\u4eba\u5de5\u670d\u52a1","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"\u4eba\u5de5\u670d\u52a1","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.2}],"is_empty":false},{"range_key":"age_181_360","range_name":"\u5e93\u9f84\u4e3a180-360\u5929","min_day":181,"max_day":360,"total_amount":87030.81,"total_number":214,"items":[{"key":"26","name":"\u9632\u706b\u5899\u4e3b\u673a","amount":"65000","number":"2","brand_name":"","type_name":"","component_name":"\u9632\u706b\u5899\u4e3b\u673a","serie_name":"","product_model_name":"","amount_pct":0.7468,"number_pct":0.0093},{"key":"195","name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","amount":"9735.02","number":"66","brand_name":"","type_name":"","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"","product_model_name":"","amount_pct":0.1118,"number_pct":0.3084},{"key":"194","name":"\u70df\u9152\u8336\u53f6","amount":"3600","number":"30","brand_name":"","type_name":"","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"","product_model_name":"","amount_pct":0.0413,"number_pct":0.1401},{"key":"5","name":"\u670d\u52a1\u5668\u786c\u76d8","amount":"2700","number":"3","brand_name":"","type_name":"","component_name":"\u670d\u52a1\u5668\u786c\u76d8","serie_name":"","product_model_name":"","amount_pct":0.031,"number_pct":0.014},{"key":"179","name":"\u914d\u4ef6","amount":"2037.11","number":"34","brand_name":"","type_name":"","component_name":"\u914d\u4ef6","serie_name":"","product_model_name":"","amount_pct":0.0234,"number_pct":0.1588},{"key":"154","name":"\u663e\u793a\u5668","amount":"1860","number":"3","brand_name":"","type_name":"","component_name":"\u663e\u793a\u5668","serie_name":"","product_model_name":"","amount_pct":0.0213,"number_pct":0.014},{"key":"193","name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","amount":"1778.68","number":"45","brand_name":"","type_name":"","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"","product_model_name":"","amount_pct":0.0204,"number_pct":0.2102},{"key":"43","name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","amount":"225","number":"9","brand_name":"","type_name":"","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"","product_model_name":"","amount_pct":0.0025,"number_pct":0.042},{"key":"43","name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","amount":"95","number":"5","brand_name":"","type_name":"","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"","product_model_name":"","amount_pct":0.001,"number_pct":0.0233},{"key":"14","name":"\u5b58\u50a8\u4e3b\u673a","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"\u5b58\u50a8\u4e3b\u673a","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.0046},{"key":"21","name":"\u65e0\u7ebfAP","amount":"0","number":"3","brand_name":"","type_name":"","component_name":"\u65e0\u7ebfAP","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.014},{"key":"220","name":"\u676f\u5b50","amount":"0","number":"13","brand_name":"","type_name":"","component_name":"\u676f\u5b50","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.0607}],"is_empty":false},{"range_key":"age_361_plus","range_name":"\u5e93\u9f84\u4e3a361\u5929\u4ee5\u4e0a","min_day":361,"max_day":null,"total_amount":"0","total_number":"0","items":[],"is_empty":true}],"circleProductBrand":[{"range_key":"age_0_30","range_name":"\u5e93\u9f84\u4e3a0-30\u5929","min_day":0,"max_day":30,"total_amount":81751.72,"total_number":9,"items":[{"key":"8","name":"PaloAlto","amount":"81526.72","number":"6","brand_name":"PaloAlto","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.9972,"number_pct":0.6666},{"key":"4","name":"\u8054\u60f3","amount":"222","number":"1","brand_name":"\u8054\u60f3","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0027,"number_pct":0.1111},{"key":"27","name":"\u7fa4\u6656","amount":"3","number":"1","brand_name":"\u7fa4\u6656","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0,"number_pct":0.1111},{"key":"270","name":"\u91d1\u7545\u900d","amount":"0","number":"1","brand_name":"\u91d1\u7545\u900d","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.1111}],"is_empty":false},{"range_key":"age_31_60","range_name":"\u5e93\u9f84\u4e3a31-60\u5929","min_day":31,"max_day":60,"total_amount":271638,"total_number":65,"items":[{"key":"278","name":"\u7231\u666e\u751f","amount":"178180","number":"4","brand_name":"\u7231\u666e\u751f","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.6559,"number_pct":0.0615},{"key":"27","name":"\u7fa4\u6656","amount":"86484","number":"2","brand_name":"\u7fa4\u6656","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.3183,"number_pct":0.0307},{"key":"27","name":"\u7fa4\u6656","amount":"4646","number":"2","brand_name":"\u7fa4\u6656","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0171,"number_pct":0.0307},{"key":"4","name":"\u8054\u60f3","amount":"2295","number":"51","brand_name":"\u8054\u60f3","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0084,"number_pct":0.7846},{"key":"134","name":"\u7b2c\u4e09\u65b9","amount":"33","number":"1","brand_name":"\u7b2c\u4e09\u65b9","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0001,"number_pct":0.0153},{"key":"27","name":"\u7fa4\u6656","amount":"0","number":"3","brand_name":"\u7fa4\u6656","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.0461},{"key":"134","name":"\u7b2c\u4e09\u65b9","amount":"0","number":"2","brand_name":"\u7b2c\u4e09\u65b9","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.0307}],"is_empty":false},{"range_key":"age_61_90","range_name":"\u5e93\u9f84\u4e3a61-90\u5929","min_day":61,"max_day":90,"total_amount":4688.4066666664,"total_number":8,"items":[{"key":"196","name":"\u6cf8\u5dde\u8001\u7a96","amount":"3548.4066666664","number":"4","brand_name":"\u6cf8\u5dde\u8001\u7a96","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.7568,"number_pct":0.5},{"key":"134","name":"\u7b2c\u4e09\u65b9","amount":"1140","number":"4","brand_name":"\u7b2c\u4e09\u65b9","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.2431,"number_pct":0.5}],"is_empty":false},{"range_key":"age_91_180","range_name":"\u5e93\u9f84\u4e3a91-180\u5929","min_day":91,"max_day":180,"total_amount":7198.62,"total_number":5,"items":[{"key":"187","name":"\u8305\u53f0","amount":"7198.620","number":"4","brand_name":"\u8305\u53f0","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":1,"number_pct":0.8},{"key":"133","name":"\u62d3\u5b9e","amount":"0","number":"1","brand_name":"\u62d3\u5b9e","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.2}],"is_empty":false},{"range_key":"age_181_360","range_name":"\u5e93\u9f84\u4e3a180-360\u5929","min_day":181,"max_day":360,"total_amount":87030.81,"total_number":214,"items":[{"key":"8","name":"PaloAlto","amount":"65000","number":"2","brand_name":"PaloAlto","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.7468,"number_pct":0.0093},{"key":"200","name":"\u80e1\u5e86\u4f59\u5802","amount":"5600","number":"16","brand_name":"\u80e1\u5e86\u4f59\u5802","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0643,"number_pct":0.0747},{"key":"2","name":"HP","amount":"3897.11","number":"37","brand_name":"HP","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0447,"number_pct":0.1728},{"key":"256","name":"\u4e50\u4e8b\u5370\u52a0","amount":"3600","number":"24","brand_name":"\u4e50\u4e8b\u5370\u52a0","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0413,"number_pct":0.1121},{"key":"255","name":"\u4e09\u987f\u534a","amount":"3135.02","number":"62","brand_name":"\u4e09\u987f\u534a","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.036,"number_pct":0.2897},{"key":"5","name":"\u82f1\u7279\u5c14","amount":"2700","number":"3","brand_name":"\u82f1\u7279\u5c14","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.031,"number_pct":0.014},{"key":"242","name":"\u4eac\u4e1c","amount":"1005.38","number":"34","brand_name":"\u4eac\u4e1c","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0115,"number_pct":0.1588},{"key":"193","name":"\u6dd8\u5b9d\uff08\u8d2d\u4e70\uff09","amount":"1000","number":"1","brand_name":"\u6dd8\u5b9d\uff08\u8d2d\u4e70\uff09","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0114,"number_pct":0.0046},{"key":"195","name":"\u5c0f\u7c73","amount":"535.38","number":"1","brand_name":"\u5c0f\u7c73","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0061,"number_pct":0.0046},{"key":"134","name":"\u7b2c\u4e09\u65b9","amount":"225","number":"9","brand_name":"\u7b2c\u4e09\u65b9","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0025,"number_pct":0.042},{"key":"258","name":"\u7231\u56fd\u8005","amount":"123.28","number":"8","brand_name":"\u7231\u56fd\u8005","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0014,"number_pct":0.0373},{"key":"257","name":"\u60e0\u5bfb","amount":"114.64","number":"2","brand_name":"\u60e0\u5bfb","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0013,"number_pct":0.0093},{"key":"134","name":"\u7b2c\u4e09\u65b9","amount":"75","number":"3","brand_name":"\u7b2c\u4e09\u65b9","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0008,"number_pct":0.014},{"key":"152","name":"\u80dc\u4e3a","amount":"20","number":"2","brand_name":"\u80dc\u4e3a","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":0.0002,"number_pct":0.0093},{"key":"198","name":"\u5c0f\u7f50\u8336","amount":"0","number":"6","brand_name":"\u5c0f\u7f50\u8336","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.028},{"key":"6","name":"NetApp","amount":"0","number":"1","brand_name":"NetApp","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.0046},{"key":"3","name":"\u601d\u79d1","amount":"0","number":"3","brand_name":"\u601d\u79d1","type_name":"","component_name":"","serie_name":"","product_model_name":"","amount_pct":"0","number_pct":0.014}],"is_empty":false},{"range_key":"age_361_plus","range_name":"\u5e93\u9f84\u4e3a361\u5929\u4ee5\u4e0a","min_day":361,"max_day":null,"total_amount":"0","total_number":"0","items":[],"is_empty":true}],"circleProductSerie":[{"range_key":"age_0_30","range_name":"\u5e93\u9f84\u4e3a0-30\u5929","min_day":0,"max_day":30,"total_amount":81751.72,"total_number":9,"items":[{"key":"1358","name":"PA-1420\u4e00\u5e74\u670d\u52a1","amount":"43363.32","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"PA-1420\u4e00\u5e74\u670d\u52a1","product_model_name":"","amount_pct":0.5304,"number_pct":0.2222},{"key":"1244","name":"PA1420\u8f6f\u4ef6\u6388\u6743","amount":"19081.70","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"PA1420\u8f6f\u4ef6\u6388\u6743","product_model_name":"","amount_pct":0.2334,"number_pct":0.2222},{"key":"1781","name":"\u6a21\u5757","amount":"19081.70","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"\u6a21\u5757","product_model_name":"","amount_pct":0.2334,"number_pct":0.2222},{"key":"1769","name":"\u5168\u5411\u9ea6\u514b\u98ce","amount":"222","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"\u5168\u5411\u9ea6\u514b\u98ce","product_model_name":"","amount_pct":0.0027,"number_pct":0.1111},{"key":"1786","name":"HAT5300 \u7cfb\u5217\u786c\u76d8","amount":"3","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"","amount_pct":0,"number_pct":0.1111},{"key":"1724","name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6","product_model_name":"","amount_pct":"0","number_pct":0.1111}],"is_empty":false},{"range_key":"age_31_60","range_name":"\u5e93\u9f84\u4e3a31-60\u5929","min_day":31,"max_day":60,"total_amount":271638,"total_number":65,"items":[{"key":"1767","name":"\u9ad8\u4eae\u5546\u6559\u6295\u5f71\u673a","amount":"178180","number":"4","brand_name":"","type_name":"","component_name":"","serie_name":"\u9ad8\u4eae\u5546\u6559\u6295\u5f71\u673a","product_model_name":"","amount_pct":0.6559,"number_pct":0.0615},{"key":"1786","name":"HAT5300 \u7cfb\u5217\u786c\u76d8","amount":"86484","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"","amount_pct":0.3183,"number_pct":0.0307},{"key":"1786","name":"HAT5300 \u7cfb\u5217\u786c\u76d8","amount":"4646","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"","amount_pct":0.0171,"number_pct":0.0307},{"key":"1769","name":"\u5168\u5411\u9ea6\u514b\u98ce","amount":"2295","number":"51","brand_name":"","type_name":"","component_name":"","serie_name":"\u5168\u5411\u9ea6\u514b\u98ce","product_model_name":"","amount_pct":0.0084,"number_pct":0.7846},{"key":"1047","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"33","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"","amount_pct":0.0001,"number_pct":0.0153},{"key":"1786","name":"HAT5300 \u7cfb\u5217\u786c\u76d8","amount":"0","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"","amount_pct":"0","number_pct":0.0461},{"key":"1047","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"0","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"","amount_pct":"0","number_pct":0.0307}],"is_empty":false},{"range_key":"age_61_90","range_name":"\u5e93\u9f84\u4e3a61-90\u5929","min_day":61,"max_day":90,"total_amount":4688.4066666664,"total_number":8,"items":[{"key":"818","name":"\u56fd\u7a961573 52%vol","amount":"3548.4066666664","number":"4","brand_name":"","type_name":"","component_name":"","serie_name":"\u56fd\u7a961573 52%vol","product_model_name":"","amount_pct":0.7568,"number_pct":0.5},{"key":"1776","name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6","amount":"1140","number":"4","brand_name":"","type_name":"","component_name":"","serie_name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6","product_model_name":"","amount_pct":0.2431,"number_pct":0.5}],"is_empty":false},{"range_key":"age_91_180","range_name":"\u5e93\u9f84\u4e3a91-180\u5929","min_day":91,"max_day":180,"total_amount":7198.62,"total_number":5,"items":[{"key":"809","name":"\u98de\u5929\u8305\u53f0\u9152 53%vol","amount":"7198.620","number":"4","brand_name":"","type_name":"","component_name":"","serie_name":"\u98de\u5929\u8305\u53f0\u9152 53%vol","product_model_name":"","amount_pct":1,"number_pct":0.8},{"key":"592","name":"\u5b89\u88c5\u8c03\u8bd5\u670d\u52a1","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"\u5b89\u88c5\u8c03\u8bd5\u670d\u52a1","product_model_name":"","amount_pct":"0","number_pct":0.2}],"is_empty":false},{"range_key":"age_181_360","range_name":"\u5e93\u9f84\u4e3a180-360\u5929","min_day":181,"max_day":360,"total_amount":87030.81,"total_number":214,"items":[{"key":"1674","name":"PA-3410\u9632\u706b\u5899\u4e3b\u673a","amount":"65000","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"PA-3410\u9632\u706b\u5899\u4e3b\u673a","product_model_name":"","amount_pct":0.7468,"number_pct":0.0093},{"key":"829","name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934","amount":"4550","number":"13","brand_name":"","type_name":"","component_name":"","serie_name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934","product_model_name":"","amount_pct":0.0522,"number_pct":0.0607},{"key":"1676","name":"\u7ea2\u9152","amount":"3600","number":"24","brand_name":"","type_name":"","component_name":"","serie_name":"\u7ea2\u9152","product_model_name":"","amount_pct":0.0413,"number_pct":0.1121},{"key":"1675","name":"\u5496\u5561","amount":"3135.02","number":"49","brand_name":"","type_name":"","component_name":"","serie_name":"\u5496\u5561","product_model_name":"","amount_pct":0.036,"number_pct":0.2289},{"key":"1686","name":"\u56fa\u6001\u786c\u76d8","amount":"2700","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"\u56fa\u6001\u786c\u76d8","product_model_name":"","amount_pct":0.031,"number_pct":0.014},{"key":"1685","name":"P22 G4","amount":"1860","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"P22 G4","product_model_name":"","amount_pct":0.0213,"number_pct":0.014},{"key":"1684","name":"\u80cc\u5305","amount":"1202.75","number":"17","brand_name":"","type_name":"","component_name":"","serie_name":"\u80cc\u5305","product_model_name":"","amount_pct":0.0138,"number_pct":0.0794},{"key":"830","name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599","amount":"1050","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599","product_model_name":"","amount_pct":0.012,"number_pct":0.014},{"key":"uncategorized","name":"\u672a\u5206\u7c7b","amount":"1005.38","number":"34","brand_name":"","type_name":"","component_name":"","serie_name":"\u672a\u5206\u7c7b","product_model_name":"","amount_pct":0.0115,"number_pct":0.1588},{"key":"815","name":"\u9c7c\u80f6","amount":"1000","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"\u9c7c\u80f6","product_model_name":"","amount_pct":0.0114,"number_pct":0.0046},{"key":"1683","name":"\u9f20\u6807","amount":"834.36","number":"17","brand_name":"","type_name":"","component_name":"","serie_name":"\u9f20\u6807","product_model_name":"","amount_pct":0.0095,"number_pct":0.0794},{"key":"1677","name":"\u5c0f\u7c73 REDMI Watch 5 \u667a\u80fd\u624b\u8868","amount":"535.38","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"\u5c0f\u7c73 REDMI Watch 5 \u667a\u80fd\u624b\u8868","product_model_name":"","amount_pct":0.0061,"number_pct":0.0046},{"key":"1047","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"225","number":"9","brand_name":"","type_name":"","component_name":"","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"","amount_pct":0.0025,"number_pct":0.042},{"key":"1681","name":"U\u76d8","amount":"123.28","number":"8","brand_name":"","type_name":"","component_name":"","serie_name":"U\u76d8","product_model_name":"","amount_pct":0.0014,"number_pct":0.0373},{"key":"1678","name":"\u7b4b\u819c\u67aa","amount":"114.64","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"\u7b4b\u819c\u67aa","product_model_name":"","amount_pct":0.0013,"number_pct":0.0093},{"key":"1047","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"75","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"","amount_pct":0.0008,"number_pct":0.014},{"key":"714","name":"\u4e07\u5146\u591a\u6a21\u5149\u7ea4\u8df3\u7ebfLC-LC 1\u7c73","amount":"20","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"\u4e07\u5146\u591a\u6a21\u5149\u7ea4\u8df3\u7ebfLC-LC 1\u7c73","product_model_name":"","amount_pct":0.0002,"number_pct":0.0093},{"key":"80","name":"\u601d\u79d1AIR-AP1832I-H-K9\u65e0\u7ebfAP","amount":"0","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"\u601d\u79d1AIR-AP1832I-H-K9\u65e0\u7ebfAP","product_model_name":"","amount_pct":"0","number_pct":0.014},{"key":"822","name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336","amount":"0","number":"6","brand_name":"","type_name":"","component_name":"","serie_name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336","product_model_name":"","amount_pct":"0","number_pct":0.028},{"key":"1679","name":"\u676f\u5b50","amount":"0","number":"13","brand_name":"","type_name":"","component_name":"","serie_name":"\u676f\u5b50","product_model_name":"","amount_pct":"0","number_pct":0.0607},{"key":"421","name":"NETAPP FAS9000 \u5b58\u50a8\u4e3b\u673a","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"NETAPP FAS9000 \u5b58\u50a8\u4e3b\u673a","product_model_name":"","amount_pct":"0","number_pct":0.0046}],"is_empty":false},{"range_key":"age_361_plus","range_name":"\u5e93\u9f84\u4e3a361\u5929\u4ee5\u4e0a","min_day":361,"max_day":null,"total_amount":"0","total_number":"0","items":[],"is_empty":true}],"circleProductModel":[{"range_key":"age_0_30","range_name":"\u5e93\u9f84\u4e3a0-30\u5929","min_day":0,"max_day":30,"total_amount":81751.72,"total_number":9,"items":[{"key":"1584","name":"PAN-SVC-BKLN-1420","amount":"43363.32","number":"2","brand_name":"PaloAlto","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"\u9632\u706b\u5899\u8f6f\u4ef6","serie_name":"PA-1420\u4e00\u5e74\u670d\u52a1","product_model_name":"PAN-SVC-BKLN-1420","amount_pct":0.5304,"number_pct":0.2222},{"key":"1562","name":"PAN-PWR-450W-AC","amount":"19081.70","number":"2","brand_name":"PaloAlto","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"PA\u8bb8\u53ef\u8bc1","serie_name":"PA1420\u8f6f\u4ef6\u6388\u6743","product_model_name":"PAN-PWR-450W-AC","amount_pct":0.2334,"number_pct":0.2222},{"key":"2262","name":"PAN-SFP-PLUS-SR","amount":"19081.70","number":"2","brand_name":"PaloAlto","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"\u9632\u706b\u5899\u914d\u4ef6","serie_name":"\u6a21\u5757","product_model_name":"PAN-SFP-PLUS-SR","amount_pct":0.2334,"number_pct":0.2222},{"key":"2261","name":"MK-MC300","amount":"222","number":"1","brand_name":"\u8054\u60f3","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u534f\u4f5c","serie_name":"\u5168\u5411\u9ea6\u514b\u98ce","product_model_name":"MK-MC300","amount_pct":0.0027,"number_pct":0.1111},{"key":"2269","name":"HAT5320-24T","amount":"3","number":"1","brand_name":"\u7fa4\u6656","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"HAT5320-24T","amount_pct":0,"number_pct":0.1111},{"key":"2171","name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6\u670d\u52a1","amount":"0","number":"1","brand_name":"\u91d1\u7545\u900d","type_name":"\u8f6f\u4ef6","component_name":"\u529e\u516c\u8f6f\u4ef6","serie_name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6","product_model_name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6\u670d\u52a1","amount_pct":"0","number_pct":0.1111}],"is_empty":false},{"range_key":"age_31_60","range_name":"\u5e93\u9f84\u4e3a31-60\u5929","min_day":31,"max_day":60,"total_amount":271638,"total_number":65,"items":[{"key":"2242","name":"CB-992F","amount":"178180","number":"4","brand_name":"\u7231\u666e\u751f","type_name":"\u6570\u7801\u8bbe\u5907","component_name":"\u6295\u5f71\u673a","serie_name":"\u9ad8\u4eae\u5546\u6559\u6295\u5f71\u673a","product_model_name":"CB-992F","amount_pct":0.6559,"number_pct":0.0615},{"key":"2269","name":"HAT5320-24T","amount":"86484","number":"2","brand_name":"\u7fa4\u6656","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"HAT5320-24T","amount_pct":0.3183,"number_pct":0.0307},{"key":"2269","name":"HAT5320-24T","amount":"4646","number":"2","brand_name":"\u7fa4\u6656","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"HAT5320-24T","amount_pct":0.0171,"number_pct":0.0307},{"key":"2261","name":"MK-MC300","amount":"2295","number":"51","brand_name":"\u8054\u60f3","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u534f\u4f5c","serie_name":"\u5168\u5411\u9ea6\u514b\u98ce","product_model_name":"MK-MC300","amount_pct":0.0084,"number_pct":0.7846},{"key":"1372","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"33","number":"1","brand_name":"\u7b2c\u4e09\u65b9","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount_pct":0.0001,"number_pct":0.0153},{"key":"2269","name":"HAT5320-24T","amount":"0","number":"3","brand_name":"\u7fa4\u6656","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"HAT5320-24T","amount_pct":"0","number_pct":0.0461},{"key":"1372","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"0","number":"2","brand_name":"\u7b2c\u4e09\u65b9","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount_pct":"0","number_pct":0.0307}],"is_empty":false},{"range_key":"age_61_90","range_name":"\u5e93\u9f84\u4e3a61-90\u5929","min_day":61,"max_day":90,"total_amount":4688.4066666664,"total_number":8,"items":[{"key":"1234","name":"\u56fd\u7a961573 52%vol\uff08500mL \uff09","amount":"3548.4066666664","number":"4","brand_name":"\u6cf8\u5dde\u8001\u7a96","type_name":"\u793c\u54c1","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"\u56fd\u7a961573 52%vol","product_model_name":"\u56fd\u7a961573 52%vol\uff08500mL \uff09","amount_pct":0.7568,"number_pct":0.5},{"key":"2255","name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6\u8f85\u6599","amount":"1140","number":"4","brand_name":"\u7b2c\u4e09\u65b9","type_name":"\u6570\u7801\u8bbe\u5907","component_name":"\u6570\u7801\u8bbe\u5907\u914d\u4ef6","serie_name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6","product_model_name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6\u8f85\u6599","amount_pct":0.2431,"number_pct":0.5}],"is_empty":false},{"range_key":"age_91_180","range_name":"\u5e93\u9f84\u4e3a91-180\u5929","min_day":91,"max_day":180,"total_amount":7198.62,"total_number":5,"items":[{"key":"1224","name":"\u98de\u5929\u8305\u53f0\u9152 53%vol\uff08500ml\uff09","amount":"7198.620","number":"4","brand_name":"\u8305\u53f0","type_name":"\u793c\u54c1","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"\u98de\u5929\u8305\u53f0\u9152 53%vol","product_model_name":"\u98de\u5929\u8305\u53f0\u9152 53%vol\uff08500ml\uff09","amount_pct":1,"number_pct":0.8},{"key":"941","name":"\u62d3\u5b9e\u4eba\u5de5\u6280\u672f\u670d\u52a1","amount":"0","number":"1","brand_name":"\u62d3\u5b9e","type_name":"\u6280\u672f\u670d\u52a1","component_name":"\u4eba\u5de5\u670d\u52a1","serie_name":"\u5b89\u88c5\u8c03\u8bd5\u670d\u52a1","product_model_name":"\u62d3\u5b9e\u4eba\u5de5\u6280\u672f\u670d\u52a1","amount_pct":"0","number_pct":0.2}],"is_empty":false},{"range_key":"age_181_360","range_name":"\u5e93\u9f84\u4e3a180-360\u5929","min_day":181,"max_day":360,"total_amount":87030.81,"total_number":214,"items":[{"key":"2072","name":"PAN-PA-3410-NFR","amount":"65000","number":"2","brand_name":"PaloAlto","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"\u9632\u706b\u5899\u4e3b\u673a","serie_name":"PA-3410\u9632\u706b\u5899\u4e3b\u673a","product_model_name":"PAN-PA-3410-NFR","amount_pct":0.7468,"number_pct":0.0093},{"key":"1245","name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934360\u514b\uff0812\u514bx30\uff09","amount":"4550","number":"13","brand_name":"\u80e1\u5e86\u4f59\u5802","type_name":"\u793c\u54c1","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934","product_model_name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934360\u514b\uff0812\u514bx30\uff09","amount_pct":0.0522,"number_pct":0.0607},{"key":"2074","name":"\u4e50\u4e8b\u5370\u52a0\u971e\u591a\u4e3d\u767d\u8461\u8404\u9152","amount":"3600","number":"24","brand_name":"\u4e50\u4e8b\u5370\u52a0","type_name":"\u793c\u54c1","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"\u7ea2\u9152","product_model_name":"\u4e50\u4e8b\u5370\u52a0\u971e\u591a\u4e3d\u767d\u8461\u8404\u9152","amount_pct":0.0413,"number_pct":0.1121},{"key":"2073","name":"\u4e09\u987f\u534a\u51bb\u5e72\u901f\u6eb6\u5496\u5561\u7eaf\u9ed1\u5496\u5561\u7c89\u6df7\u5408\u88c5 21\u9897*2g","amount":"3135.02","number":"49","brand_name":"\u4e09\u987f\u534a","type_name":"\u793c\u54c1","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"\u5496\u5561","product_model_name":"\u4e09\u987f\u534a\u51bb\u5e72\u901f\u6eb6\u5496\u5561\u7eaf\u9ed1\u5496\u5561\u7c89\u6df7\u5408\u88c5 21\u9897*2g","amount_pct":0.036,"number_pct":0.2289},{"key":"2086","name":"INTEL S3520 \u7cfb\u5217\u56fa\u6001\u786c\u76d82.5\u82f1\u5bf8 240G","amount":"2700","number":"3","brand_name":"\u82f1\u7279\u5c14","type_name":"\u670d\u52a1\u5668","component_name":"\u670d\u52a1\u5668\u786c\u76d8","serie_name":"\u56fa\u6001\u786c\u76d8","product_model_name":"INTEL S3520 \u7cfb\u5217\u56fa\u6001\u786c\u76d82.5\u82f1\u5bf8 240G","amount_pct":0.031,"number_pct":0.014},{"key":"2085","name":"HP P22 G4 \u5546\u7528\u6db2\u6676\u663e\u793a\u5668","amount":"1860","number":"3","brand_name":"HP","type_name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","component_name":"\u663e\u793a\u5668","serie_name":"P22 G4","product_model_name":"HP P22 G4 \u5546\u7528\u6db2\u6676\u663e\u793a\u5668","amount_pct":0.0213,"number_pct":0.014},{"key":"2084","name":"HP\u7b14\u8bb0\u672c\u53cc\u80a9\u80cc\u5305","amount":"1202.75","number":"17","brand_name":"HP","type_name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","component_name":"\u914d\u4ef6","serie_name":"\u80cc\u5305","product_model_name":"HP\u7b14\u8bb0\u672c\u53cc\u80a9\u80cc\u5305","amount_pct":0.0138,"number_pct":0.0794},{"key":"1246","name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599360\u514b\uff0812\u514bx30\uff09","amount":"1050","number":"3","brand_name":"\u80e1\u5e86\u4f59\u5802","type_name":"\u793c\u54c1","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599","product_model_name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599360\u514b\uff0812\u514bx30\uff09","amount_pct":0.012,"number_pct":0.014},{"key":"2076","name":"\u4eac\u4e1c\u4eac\u9020\u4e13\u7528\u65e0\u7ef3\u5ba4\u5185\u5065\u8eab\u8df3\u7ef3","amount":"1005.38","number":"34","brand_name":"\u4eac\u4e1c","type_name":"\u793c\u54c1","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"","product_model_name":"\u4eac\u4e1c\u4eac\u9020\u4e13\u7528\u65e0\u7ef3\u5ba4\u5185\u5065\u8eab\u8df3\u7ef3","amount_pct":0.0115,"number_pct":0.1588},{"key":"1231","name":"\u8fdb\u53e3\u9c7c\u80f6\uff08500\u514b\uff09","amount":"1000","number":"1","brand_name":"\u6dd8\u5b9d\uff08\u8d2d\u4e70\uff09","type_name":"\u793c\u54c1","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"\u9c7c\u80f6","product_model_name":"\u8fdb\u53e3\u9c7c\u80f6\uff08500\u514b\uff09","amount_pct":0.0114,"number_pct":0.0046},{"key":"2083","name":"HP \u9ed1\u9cb8 \u65e0\u7ebf\u9f20\u6807","amount":"834.36","number":"17","brand_name":"HP","type_name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","component_name":"\u914d\u4ef6","serie_name":"\u9f20\u6807","product_model_name":"HP \u9ed1\u9cb8 \u65e0\u7ebf\u9f20\u6807","amount_pct":0.0095,"number_pct":0.0794},{"key":"2075","name":"\u5c0f\u7c73 REDMI Watch 5 \u5178\u96c5\u9ed1\u667a\u80fd\u624b\u8868","amount":"535.38","number":"1","brand_name":"\u5c0f\u7c73","type_name":"\u793c\u54c1","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"\u5c0f\u7c73 REDMI Watch 5 \u667a\u80fd\u624b\u8868","product_model_name":"\u5c0f\u7c73 REDMI Watch 5 \u5178\u96c5\u9ed1\u667a\u80fd\u624b\u8868","amount_pct":0.0061,"number_pct":0.0046},{"key":"1372","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"225","number":"9","brand_name":"\u7b2c\u4e09\u65b9","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount_pct":0.0025,"number_pct":0.042},{"key":"2080","name":"\u7231\u56fd\u8005 8GB U\u76d8","amount":"123.28","number":"8","brand_name":"\u7231\u56fd\u8005","type_name":"\u793c\u54c1","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"U\u76d8","product_model_name":"\u7231\u56fd\u8005 8GB U\u76d8","amount_pct":0.0014,"number_pct":0.0373},{"key":"2077","name":"\u60e0\u5bfb\u7b4b\u819c\u67aa\u6309\u6469\u5668","amount":"114.64","number":"2","brand_name":"\u60e0\u5bfb","type_name":"\u793c\u54c1","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"\u7b4b\u819c\u67aa","product_model_name":"\u60e0\u5bfb\u7b4b\u819c\u67aa\u6309\u6469\u5668","amount_pct":0.0013,"number_pct":0.0093},{"key":"1372","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"75","number":"3","brand_name":"\u7b2c\u4e09\u65b9","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount_pct":0.0008,"number_pct":0.014},{"key":"1025","name":"FOC-1010","amount":"20","number":"2","brand_name":"\u80dc\u4e3a","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"\u4e07\u5146\u591a\u6a21\u5149\u7ea4\u8df3\u7ebfLC-LC 1\u7c73","product_model_name":"FOC-1010","amount_pct":0.0002,"number_pct":0.0093},{"key":"1238","name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336\uff0850\u514b\uff09","amount":"0","number":"6","brand_name":"\u5c0f\u7f50\u8336","type_name":"\u793c\u54c1","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336","product_model_name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336\uff0850\u514b\uff09","amount_pct":"0","number_pct":0.028},{"key":"39","name":"AIR-AP1832I-H-K9","amount":"0","number":"3","brand_name":"\u601d\u79d1","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u65e0\u7ebfAP","serie_name":"\u601d\u79d1AIR-AP1832I-H-K9\u65e0\u7ebfAP","product_model_name":"AIR-AP1832I-H-K9","amount_pct":"0","number_pct":0.014},{"key":"672","name":"FAS9000","amount":"0","number":"1","brand_name":"NetApp","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"\u5b58\u50a8\u4e3b\u673a","serie_name":"NETAPP FAS9000 \u5b58\u50a8\u4e3b\u673a","product_model_name":"FAS9000","amount_pct":"0","number_pct":0.0046},{"key":"2078","name":"\u4e09\u987f\u534a \u76f4\u996e\u5f0f\u4fdd\u6e29\u676f\uff08\u8584\u8377\u7eff\uff09","amount":"0","number":"13","brand_name":"\u4e09\u987f\u534a","type_name":"\u793c\u54c1","component_name":"\u676f\u5b50","serie_name":"\u676f\u5b50","product_model_name":"\u4e09\u987f\u534a \u76f4\u996e\u5f0f\u4fdd\u6e29\u676f\uff08\u8584\u8377\u7eff\uff09","amount_pct":"0","number_pct":0.0607}],"is_empty":false},{"range_key":"age_361_plus","range_name":"\u5e93\u9f84\u4e3a361\u5929\u4ee5\u4e0a","min_day":361,"max_day":null,"total_amount":"0","total_number":"0","items":[],"is_empty":true}],"barProductType":[{"key":"21","name":"\u6570\u7801\u8bbe\u5907","amount":"179320","number":"8","brand_name":"","type_name":"\u6570\u7801\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","rank":1},{"key":"5","name":"\u5b89\u5168\u8bbe\u5907","amount":"146526.72","number":"8","brand_name":"","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","rank":2},{"key":"3","name":"\u5b58\u50a8\u8bbe\u5907","amount":"91133","number":"9","brand_name":"","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"","serie_name":"","product_model_name":"","rank":3},{"key":"23","name":"\u793c\u54c1","amount":"25860.7266666664","number":"162","brand_name":"","type_name":"\u793c\u54c1","component_name":"","serie_name":"","product_model_name":"","rank":4},{"key":"11","name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","amount":"3897.11","number":"37","brand_name":"","type_name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","component_name":"","serie_name":"","product_model_name":"","rank":5},{"key":"4","name":"\u7f51\u7edc\u8bbe\u5907 ","amount":"2870","number":"72","brand_name":"","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"","serie_name":"","product_model_name":"","rank":6},{"key":"2","name":"\u670d\u52a1\u5668","amount":"2700","number":"3","brand_name":"","type_name":"\u670d\u52a1\u5668","component_name":"","serie_name":"","product_model_name":"","rank":7},{"key":"7","name":"\u8f6f\u4ef6","amount":"0","number":"1","brand_name":"","type_name":"\u8f6f\u4ef6","component_name":"","serie_name":"","product_model_name":"","rank":8},{"key":"19","name":"\u6280\u672f\u670d\u52a1","amount":"0","number":"1","brand_name":"","type_name":"\u6280\u672f\u670d\u52a1","component_name":"","serie_name":"","product_model_name":"","rank":9}],"barProductComponent":[{"key":"227","name":"\u6295\u5f71\u673a","amount":"178180","number":"4","brand_name":"","type_name":"","component_name":"\u6295\u5f71\u673a","serie_name":"","product_model_name":"","rank":1},{"key":"15","name":"\u5b58\u50a8\u786c\u76d8","amount":"91133","number":"8","brand_name":"","type_name":"","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"","product_model_name":"","rank":2},{"key":"26","name":"\u9632\u706b\u5899\u4e3b\u673a","amount":"65000","number":"2","brand_name":"","type_name":"","component_name":"\u9632\u706b\u5899\u4e3b\u673a","serie_name":"","product_model_name":"","rank":3},{"key":"35","name":"\u9632\u706b\u5899\u8f6f\u4ef6","amount":"43363.32","number":"2","brand_name":"","type_name":"","component_name":"\u9632\u706b\u5899\u8f6f\u4ef6","serie_name":"","product_model_name":"","rank":4},{"key":"157","name":"\u9632\u706b\u5899\u914d\u4ef6","amount":"19081.70","number":"2","brand_name":"","type_name":"","component_name":"\u9632\u706b\u5899\u914d\u4ef6","serie_name":"","product_model_name":"","rank":5},{"key":"36","name":"PA\u8bb8\u53ef\u8bc1","amount":"19081.70","number":"2","brand_name":"","type_name":"","component_name":"PA\u8bb8\u53ef\u8bc1","serie_name":"","product_model_name":"","rank":6},{"key":"194","name":"\u70df\u9152\u8336\u53f6","amount":"14347.0266666664","number":"38","brand_name":"","type_name":"","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"","product_model_name":"","rank":7},{"key":"195","name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","amount":"9735.02","number":"66","brand_name":"","type_name":"","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"","product_model_name":"","rank":8},{"key":"5","name":"\u670d\u52a1\u5668\u786c\u76d8","amount":"2700","number":"3","brand_name":"","type_name":"","component_name":"\u670d\u52a1\u5668\u786c\u76d8","serie_name":"","product_model_name":"","rank":9},{"key":"52","name":"\u534f\u4f5c","amount":"2517","number":"52","brand_name":"","type_name":"","component_name":"\u534f\u4f5c","serie_name":"","product_model_name":"","rank":10},{"key":"179","name":"\u914d\u4ef6","amount":"2037.11","number":"34","brand_name":"","type_name":"","component_name":"\u914d\u4ef6","serie_name":"","product_model_name":"","rank":11},{"key":"154","name":"\u663e\u793a\u5668","amount":"1860","number":"3","brand_name":"","type_name":"","component_name":"\u663e\u793a\u5668","serie_name":"","product_model_name":"","rank":12},{"key":"193","name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","amount":"1778.68","number":"45","brand_name":"","type_name":"","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"","product_model_name":"","rank":13},{"key":"229","name":"\u6570\u7801\u8bbe\u5907\u914d\u4ef6","amount":"1140","number":"4","brand_name":"","type_name":"","component_name":"\u6570\u7801\u8bbe\u5907\u914d\u4ef6","serie_name":"","product_model_name":"","rank":14},{"key":"43","name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","amount":"353","number":"17","brand_name":"","type_name":"","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"","product_model_name":"","rank":15},{"key":"159","name":"\u529e\u516c\u8f6f\u4ef6","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"\u529e\u516c\u8f6f\u4ef6","serie_name":"","product_model_name":"","rank":16},{"key":"14","name":"\u5b58\u50a8\u4e3b\u673a","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"\u5b58\u50a8\u4e3b\u673a","serie_name":"","product_model_name":"","rank":17},{"key":"151","name":"\u4eba\u5de5\u670d\u52a1","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"\u4eba\u5de5\u670d\u52a1","serie_name":"","product_model_name":"","rank":18},{"key":"220","name":"\u676f\u5b50","amount":"0","number":"13","brand_name":"","type_name":"","component_name":"\u676f\u5b50","serie_name":"","product_model_name":"","rank":19},{"key":"21","name":"\u65e0\u7ebfAP","amount":"0","number":"3","brand_name":"","type_name":"","component_name":"\u65e0\u7ebfAP","serie_name":"","product_model_name":"","rank":20}],"barProductBrand":[{"key":"278","name":"\u7231\u666e\u751f","amount":"178180","number":"4","brand_name":"\u7231\u666e\u751f","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":1},{"key":"8","name":"PaloAlto","amount":"146526.72","number":"8","brand_name":"PaloAlto","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":2},{"key":"27","name":"\u7fa4\u6656","amount":"91133","number":"8","brand_name":"\u7fa4\u6656","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":3},{"key":"187","name":"\u8305\u53f0","amount":"7198.620","number":"4","brand_name":"\u8305\u53f0","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":4},{"key":"200","name":"\u80e1\u5e86\u4f59\u5802","amount":"5600","number":"16","brand_name":"\u80e1\u5e86\u4f59\u5802","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":5},{"key":"2","name":"HP","amount":"3897.11","number":"37","brand_name":"HP","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":6},{"key":"256","name":"\u4e50\u4e8b\u5370\u52a0","amount":"3600","number":"24","brand_name":"\u4e50\u4e8b\u5370\u52a0","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":7},{"key":"196","name":"\u6cf8\u5dde\u8001\u7a96","amount":"3548.4066666664","number":"4","brand_name":"\u6cf8\u5dde\u8001\u7a96","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":8},{"key":"255","name":"\u4e09\u987f\u534a","amount":"3135.02","number":"62","brand_name":"\u4e09\u987f\u534a","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":9},{"key":"5","name":"\u82f1\u7279\u5c14","amount":"2700","number":"3","brand_name":"\u82f1\u7279\u5c14","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":10},{"key":"4","name":"\u8054\u60f3","amount":"2517","number":"52","brand_name":"\u8054\u60f3","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":11},{"key":"134","name":"\u7b2c\u4e09\u65b9","amount":"1473","number":"19","brand_name":"\u7b2c\u4e09\u65b9","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":12},{"key":"242","name":"\u4eac\u4e1c","amount":"1005.38","number":"34","brand_name":"\u4eac\u4e1c","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":13},{"key":"193","name":"\u6dd8\u5b9d\uff08\u8d2d\u4e70\uff09","amount":"1000","number":"1","brand_name":"\u6dd8\u5b9d\uff08\u8d2d\u4e70\uff09","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":14},{"key":"195","name":"\u5c0f\u7c73","amount":"535.38","number":"1","brand_name":"\u5c0f\u7c73","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":15},{"key":"258","name":"\u7231\u56fd\u8005","amount":"123.28","number":"8","brand_name":"\u7231\u56fd\u8005","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":16},{"key":"257","name":"\u60e0\u5bfb","amount":"114.64","number":"2","brand_name":"\u60e0\u5bfb","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":17},{"key":"152","name":"\u80dc\u4e3a","amount":"20","number":"2","brand_name":"\u80dc\u4e3a","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":18},{"key":"270","name":"\u91d1\u7545\u900d","amount":"0","number":"1","brand_name":"\u91d1\u7545\u900d","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":19},{"key":"6","name":"NetApp","amount":"0","number":"1","brand_name":"NetApp","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":20},{"key":"133","name":"\u62d3\u5b9e","amount":"0","number":"1","brand_name":"\u62d3\u5b9e","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":21},{"key":"3","name":"\u601d\u79d1","amount":"0","number":"3","brand_name":"\u601d\u79d1","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":22},{"key":"198","name":"\u5c0f\u7f50\u8336","amount":"0","number":"6","brand_name":"\u5c0f\u7f50\u8336","type_name":"","component_name":"","serie_name":"","product_model_name":"","rank":23}],"barProductSerie":[{"key":"1767","name":"\u9ad8\u4eae\u5546\u6559\u6295\u5f71\u673a","amount":"178180","number":"4","brand_name":"","type_name":"","component_name":"","serie_name":"\u9ad8\u4eae\u5546\u6559\u6295\u5f71\u673a","product_model_name":"","rank":1},{"key":"1786","name":"HAT5300 \u7cfb\u5217\u786c\u76d8","amount":"91133","number":"8","brand_name":"","type_name":"","component_name":"","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"","rank":2},{"key":"1674","name":"PA-3410\u9632\u706b\u5899\u4e3b\u673a","amount":"65000","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"PA-3410\u9632\u706b\u5899\u4e3b\u673a","product_model_name":"","rank":3},{"key":"1358","name":"PA-1420\u4e00\u5e74\u670d\u52a1","amount":"43363.32","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"PA-1420\u4e00\u5e74\u670d\u52a1","product_model_name":"","rank":4},{"key":"1781","name":"\u6a21\u5757","amount":"19081.70","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"\u6a21\u5757","product_model_name":"","rank":5},{"key":"1244","name":"PA1420\u8f6f\u4ef6\u6388\u6743","amount":"19081.70","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"PA1420\u8f6f\u4ef6\u6388\u6743","product_model_name":"","rank":6},{"key":"809","name":"\u98de\u5929\u8305\u53f0\u9152 53%vol","amount":"7198.620","number":"4","brand_name":"","type_name":"","component_name":"","serie_name":"\u98de\u5929\u8305\u53f0\u9152 53%vol","product_model_name":"","rank":7},{"key":"829","name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934","amount":"4550","number":"13","brand_name":"","type_name":"","component_name":"","serie_name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934","product_model_name":"","rank":8},{"key":"1676","name":"\u7ea2\u9152","amount":"3600","number":"24","brand_name":"","type_name":"","component_name":"","serie_name":"\u7ea2\u9152","product_model_name":"","rank":9},{"key":"818","name":"\u56fd\u7a961573 52%vol","amount":"3548.4066666664","number":"4","brand_name":"","type_name":"","component_name":"","serie_name":"\u56fd\u7a961573 52%vol","product_model_name":"","rank":10},{"key":"1675","name":"\u5496\u5561","amount":"3135.02","number":"49","brand_name":"","type_name":"","component_name":"","serie_name":"\u5496\u5561","product_model_name":"","rank":11},{"key":"1686","name":"\u56fa\u6001\u786c\u76d8","amount":"2700","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"\u56fa\u6001\u786c\u76d8","product_model_name":"","rank":12},{"key":"1769","name":"\u5168\u5411\u9ea6\u514b\u98ce","amount":"2517","number":"52","brand_name":"","type_name":"","component_name":"","serie_name":"\u5168\u5411\u9ea6\u514b\u98ce","product_model_name":"","rank":13},{"key":"1685","name":"P22 G4","amount":"1860","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"P22 G4","product_model_name":"","rank":14},{"key":"1684","name":"\u80cc\u5305","amount":"1202.75","number":"17","brand_name":"","type_name":"","component_name":"","serie_name":"\u80cc\u5305","product_model_name":"","rank":15},{"key":"1776","name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6","amount":"1140","number":"4","brand_name":"","type_name":"","component_name":"","serie_name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6","product_model_name":"","rank":16},{"key":"830","name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599","amount":"1050","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599","product_model_name":"","rank":17},{"key":"uncategorized","name":"\u672a\u5206\u7c7b","amount":"1005.38","number":"34","brand_name":"","type_name":"","component_name":"","serie_name":"\u672a\u5206\u7c7b","product_model_name":"","rank":18},{"key":"815","name":"\u9c7c\u80f6","amount":"1000","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"\u9c7c\u80f6","product_model_name":"","rank":19},{"key":"1683","name":"\u9f20\u6807","amount":"834.36","number":"17","brand_name":"","type_name":"","component_name":"","serie_name":"\u9f20\u6807","product_model_name":"","rank":20},{"key":"1677","name":"\u5c0f\u7c73 REDMI Watch 5 \u667a\u80fd\u624b\u8868","amount":"535.38","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"\u5c0f\u7c73 REDMI Watch 5 \u667a\u80fd\u624b\u8868","product_model_name":"","rank":21},{"key":"1047","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"333","number":"15","brand_name":"","type_name":"","component_name":"","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"","rank":22},{"key":"1681","name":"U\u76d8","amount":"123.28","number":"8","brand_name":"","type_name":"","component_name":"","serie_name":"U\u76d8","product_model_name":"","rank":23},{"key":"1678","name":"\u7b4b\u819c\u67aa","amount":"114.64","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"\u7b4b\u819c\u67aa","product_model_name":"","rank":24},{"key":"714","name":"\u4e07\u5146\u591a\u6a21\u5149\u7ea4\u8df3\u7ebfLC-LC 1\u7c73","amount":"20","number":"2","brand_name":"","type_name":"","component_name":"","serie_name":"\u4e07\u5146\u591a\u6a21\u5149\u7ea4\u8df3\u7ebfLC-LC 1\u7c73","product_model_name":"","rank":25},{"key":"1679","name":"\u676f\u5b50","amount":"0","number":"13","brand_name":"","type_name":"","component_name":"","serie_name":"\u676f\u5b50","product_model_name":"","rank":26},{"key":"421","name":"NETAPP FAS9000 \u5b58\u50a8\u4e3b\u673a","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"NETAPP FAS9000 \u5b58\u50a8\u4e3b\u673a","product_model_name":"","rank":27},{"key":"1724","name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6","product_model_name":"","rank":28},{"key":"822","name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336","amount":"0","number":"6","brand_name":"","type_name":"","component_name":"","serie_name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336","product_model_name":"","rank":29},{"key":"592","name":"\u5b89\u88c5\u8c03\u8bd5\u670d\u52a1","amount":"0","number":"1","brand_name":"","type_name":"","component_name":"","serie_name":"\u5b89\u88c5\u8c03\u8bd5\u670d\u52a1","product_model_name":"","rank":30},{"key":"80","name":"\u601d\u79d1AIR-AP1832I-H-K9\u65e0\u7ebfAP","amount":"0","number":"3","brand_name":"","type_name":"","component_name":"","serie_name":"\u601d\u79d1AIR-AP1832I-H-K9\u65e0\u7ebfAP","product_model_name":"","rank":31}],"barProductModel":[{"key":"2242","name":"CB-992F","amount":"178180","number":"4","brand_name":"\u7231\u666e\u751f","type_name":"\u6570\u7801\u8bbe\u5907","component_name":"\u6295\u5f71\u673a","serie_name":"\u9ad8\u4eae\u5546\u6559\u6295\u5f71\u673a","product_model_name":"CB-992F","rank":1},{"key":"2269","name":"HAT5320-24T","amount":"91133","number":"8","brand_name":"\u7fa4\u6656","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"\u5b58\u50a8\u786c\u76d8","serie_name":"HAT5300 \u7cfb\u5217\u786c\u76d8","product_model_name":"HAT5320-24T","rank":2},{"key":"2072","name":"PAN-PA-3410-NFR","amount":"65000","number":"2","brand_name":"PaloAlto","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"\u9632\u706b\u5899\u4e3b\u673a","serie_name":"PA-3410\u9632\u706b\u5899\u4e3b\u673a","product_model_name":"PAN-PA-3410-NFR","rank":3},{"key":"1584","name":"PAN-SVC-BKLN-1420","amount":"43363.32","number":"2","brand_name":"PaloAlto","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"\u9632\u706b\u5899\u8f6f\u4ef6","serie_name":"PA-1420\u4e00\u5e74\u670d\u52a1","product_model_name":"PAN-SVC-BKLN-1420","rank":4},{"key":"2262","name":"PAN-SFP-PLUS-SR","amount":"19081.70","number":"2","brand_name":"PaloAlto","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"\u9632\u706b\u5899\u914d\u4ef6","serie_name":"\u6a21\u5757","product_model_name":"PAN-SFP-PLUS-SR","rank":5},{"key":"1562","name":"PAN-PWR-450W-AC","amount":"19081.70","number":"2","brand_name":"PaloAlto","type_name":"\u5b89\u5168\u8bbe\u5907","component_name":"PA\u8bb8\u53ef\u8bc1","serie_name":"PA1420\u8f6f\u4ef6\u6388\u6743","product_model_name":"PAN-PWR-450W-AC","rank":6},{"key":"1224","name":"\u98de\u5929\u8305\u53f0\u9152 53%vol\uff08500ml\uff09","amount":"7198.620","number":"4","brand_name":"\u8305\u53f0","type_name":"\u793c\u54c1","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"\u98de\u5929\u8305\u53f0\u9152 53%vol","product_model_name":"\u98de\u5929\u8305\u53f0\u9152 53%vol\uff08500ml\uff09","rank":7},{"key":"1245","name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934360\u514b\uff0812\u514bx30\uff09","amount":"4550","number":"13","brand_name":"\u80e1\u5e86\u4f59\u5802","type_name":"\u793c\u54c1","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934","product_model_name":"\u751a\u5143\u9738\u6c14\u818f\u7f50\u5934360\u514b\uff0812\u514bx30\uff09","rank":8},{"key":"2074","name":"\u4e50\u4e8b\u5370\u52a0\u971e\u591a\u4e3d\u767d\u8461\u8404\u9152","amount":"3600","number":"24","brand_name":"\u4e50\u4e8b\u5370\u52a0","type_name":"\u793c\u54c1","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"\u7ea2\u9152","product_model_name":"\u4e50\u4e8b\u5370\u52a0\u971e\u591a\u4e3d\u767d\u8461\u8404\u9152","rank":9},{"key":"1234","name":"\u56fd\u7a961573 52%vol\uff08500mL \uff09","amount":"3548.4066666664","number":"4","brand_name":"\u6cf8\u5dde\u8001\u7a96","type_name":"\u793c\u54c1","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"\u56fd\u7a961573 52%vol","product_model_name":"\u56fd\u7a961573 52%vol\uff08500mL \uff09","rank":10},{"key":"2073","name":"\u4e09\u987f\u534a\u51bb\u5e72\u901f\u6eb6\u5496\u5561\u7eaf\u9ed1\u5496\u5561\u7c89\u6df7\u5408\u88c5 21\u9897*2g","amount":"3135.02","number":"49","brand_name":"\u4e09\u987f\u534a","type_name":"\u793c\u54c1","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"\u5496\u5561","product_model_name":"\u4e09\u987f\u534a\u51bb\u5e72\u901f\u6eb6\u5496\u5561\u7eaf\u9ed1\u5496\u5561\u7c89\u6df7\u5408\u88c5 21\u9897*2g","rank":11},{"key":"2086","name":"INTEL S3520 \u7cfb\u5217\u56fa\u6001\u786c\u76d82.5\u82f1\u5bf8 240G","amount":"2700","number":"3","brand_name":"\u82f1\u7279\u5c14","type_name":"\u670d\u52a1\u5668","component_name":"\u670d\u52a1\u5668\u786c\u76d8","serie_name":"\u56fa\u6001\u786c\u76d8","product_model_name":"INTEL S3520 \u7cfb\u5217\u56fa\u6001\u786c\u76d82.5\u82f1\u5bf8 240G","rank":12},{"key":"2261","name":"MK-MC300","amount":"2517","number":"52","brand_name":"\u8054\u60f3","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u534f\u4f5c","serie_name":"\u5168\u5411\u9ea6\u514b\u98ce","product_model_name":"MK-MC300","rank":13},{"key":"2085","name":"HP P22 G4 \u5546\u7528\u6db2\u6676\u663e\u793a\u5668","amount":"1860","number":"3","brand_name":"HP","type_name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","component_name":"\u663e\u793a\u5668","serie_name":"P22 G4","product_model_name":"HP P22 G4 \u5546\u7528\u6db2\u6676\u663e\u793a\u5668","rank":14},{"key":"2084","name":"HP\u7b14\u8bb0\u672c\u53cc\u80a9\u80cc\u5305","amount":"1202.75","number":"17","brand_name":"HP","type_name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","component_name":"\u914d\u4ef6","serie_name":"\u80cc\u5305","product_model_name":"HP\u7b14\u8bb0\u672c\u53cc\u80a9\u80cc\u5305","rank":15},{"key":"2255","name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6\u8f85\u6599","amount":"1140","number":"4","brand_name":"\u7b2c\u4e09\u65b9","type_name":"\u6570\u7801\u8bbe\u5907","component_name":"\u6570\u7801\u8bbe\u5907\u914d\u4ef6","serie_name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6","product_model_name":"\u6295\u5f71\u4eea\u5b89\u88c5\u914d\u4ef6\u8f85\u6599","rank":16},{"key":"1246","name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599360\u514b\uff0812\u514bx30\uff09","amount":"1050","number":"3","brand_name":"\u80e1\u5e86\u4f59\u5802","type_name":"\u793c\u54c1","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599","product_model_name":"\u7389\u4ec1\u7267\u767d\u818f\u690d\u7269\u996e\u6599360\u514b\uff0812\u514bx30\uff09","rank":17},{"key":"2076","name":"\u4eac\u4e1c\u4eac\u9020\u4e13\u7528\u65e0\u7ef3\u5ba4\u5185\u5065\u8eab\u8df3\u7ef3","amount":"1005.38","number":"34","brand_name":"\u4eac\u4e1c","type_name":"\u793c\u54c1","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"","product_model_name":"\u4eac\u4e1c\u4eac\u9020\u4e13\u7528\u65e0\u7ef3\u5ba4\u5185\u5065\u8eab\u8df3\u7ef3","rank":18},{"key":"1231","name":"\u8fdb\u53e3\u9c7c\u80f6\uff08500\u514b\uff09","amount":"1000","number":"1","brand_name":"\u6dd8\u5b9d\uff08\u8d2d\u4e70\uff09","type_name":"\u793c\u54c1","component_name":"\u8425\u517b\u98df\u54c1\u6ecb\u8865","serie_name":"\u9c7c\u80f6","product_model_name":"\u8fdb\u53e3\u9c7c\u80f6\uff08500\u514b\uff09","rank":19},{"key":"2083","name":"HP \u9ed1\u9cb8 \u65e0\u7ebf\u9f20\u6807","amount":"834.36","number":"17","brand_name":"HP","type_name":"\u4e2a\u4eba\u8ba1\u7b97\u673a","component_name":"\u914d\u4ef6","serie_name":"\u9f20\u6807","product_model_name":"HP \u9ed1\u9cb8 \u65e0\u7ebf\u9f20\u6807","rank":20},{"key":"2075","name":"\u5c0f\u7c73 REDMI Watch 5 \u5178\u96c5\u9ed1\u667a\u80fd\u624b\u8868","amount":"535.38","number":"1","brand_name":"\u5c0f\u7c73","type_name":"\u793c\u54c1","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"\u5c0f\u7c73 REDMI Watch 5 \u667a\u80fd\u624b\u8868","product_model_name":"\u5c0f\u7c73 REDMI Watch 5 \u5178\u96c5\u9ed1\u667a\u80fd\u624b\u8868","rank":21},{"key":"1372","name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","amount":"333","number":"15","brand_name":"\u7b2c\u4e09\u65b9","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_model_name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","rank":22},{"key":"2080","name":"\u7231\u56fd\u8005 8GB U\u76d8","amount":"123.28","number":"8","brand_name":"\u7231\u56fd\u8005","type_name":"\u793c\u54c1","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"U\u76d8","product_model_name":"\u7231\u56fd\u8005 8GB U\u76d8","rank":23},{"key":"2077","name":"\u60e0\u5bfb\u7b4b\u819c\u67aa\u6309\u6469\u5668","amount":"114.64","number":"2","brand_name":"\u60e0\u5bfb","type_name":"\u793c\u54c1","component_name":"\u6570\u7801\u7535\u5b50\u4ea7\u54c1","serie_name":"\u7b4b\u819c\u67aa","product_model_name":"\u60e0\u5bfb\u7b4b\u819c\u67aa\u6309\u6469\u5668","rank":24},{"key":"1025","name":"FOC-1010","amount":"20","number":"2","brand_name":"\u80dc\u4e3a","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6","serie_name":"\u4e07\u5146\u591a\u6a21\u5149\u7ea4\u8df3\u7ebfLC-LC 1\u7c73","product_model_name":"FOC-1010","rank":25},{"key":"2078","name":"\u4e09\u987f\u534a \u76f4\u996e\u5f0f\u4fdd\u6e29\u676f\uff08\u8584\u8377\u7eff\uff09","amount":"0","number":"13","brand_name":"\u4e09\u987f\u534a","type_name":"\u793c\u54c1","component_name":"\u676f\u5b50","serie_name":"\u676f\u5b50","product_model_name":"\u4e09\u987f\u534a \u76f4\u996e\u5f0f\u4fdd\u6e29\u676f\uff08\u8584\u8377\u7eff\uff09","rank":26},{"key":"2171","name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6\u670d\u52a1","amount":"0","number":"1","brand_name":"\u91d1\u7545\u900d","type_name":"\u8f6f\u4ef6","component_name":"\u529e\u516c\u8f6f\u4ef6","serie_name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6","product_model_name":"\u91d1\u7545\u900dCRM\u8f6f\u4ef6\u670d\u52a1","rank":27},{"key":"672","name":"FAS9000","amount":"0","number":"1","brand_name":"NetApp","type_name":"\u5b58\u50a8\u8bbe\u5907","component_name":"\u5b58\u50a8\u4e3b\u673a","serie_name":"NETAPP FAS9000 \u5b58\u50a8\u4e3b\u673a","product_model_name":"FAS9000","rank":28},{"key":"1238","name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336\uff0850\u514b\uff09","amount":"0","number":"6","brand_name":"\u5c0f\u7f50\u8336","type_name":"\u793c\u54c1","component_name":"\u70df\u9152\u8336\u53f6","serie_name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336","product_model_name":"\u666e\u6d31\u8336\uff08\u719f\u8336\uff09\u6563\u8336\uff0850\u514b\uff09","rank":29},{"key":"941","name":"\u62d3\u5b9e\u4eba\u5de5\u6280\u672f\u670d\u52a1","amount":"0","number":"1","brand_name":"\u62d3\u5b9e","type_name":"\u6280\u672f\u670d\u52a1","component_name":"\u4eba\u5de5\u670d\u52a1","serie_name":"\u5b89\u88c5\u8c03\u8bd5\u670d\u52a1","product_model_name":"\u62d3\u5b9e\u4eba\u5de5\u6280\u672f\u670d\u52a1","rank":30},{"key":"39","name":"AIR-AP1832I-H-K9","amount":"0","number":"3","brand_name":"\u601d\u79d1","type_name":"\u7f51\u7edc\u8bbe\u5907 ","component_name":"\u65e0\u7ebfAP","serie_name":"\u601d\u79d1AIR-AP1832I-H-K9\u65e0\u7ebfAP","product_model_name":"AIR-AP1832I-H-K9","rank":31}]}},"status":1,"msg":[{"name":"success","success":"","error":""}],"mod":0,"ip":"221.216.117.119","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-05-29 17:57:45', 886892032) RETURNING "id"
17:57:44.7043.1 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59') )) "sub"
17:57:44.5103.0 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
17:57:45.2193.0 msyii\db\Command::querySELECT progress.id AS stage_id, progress.project_progress AS stage, COUNT(sub.id) AS count, COALESCE(SUM(sub.budget), 0) AS revenue, COALESCE(SUM(sub.budget * COALESCE(sub.profit_pct, 0) / 100), 0) AS profit FROM "a57be577deb434"."tbl_project_progresses" "progress" LEFT JOIN (SELECT "p"."id", "p"."project_progress", "p"."budget", "p"."profit_pct" FROM "a57be577deb434"."tbl_projects" "p" WHERE ("p"."bargain_date" >= '2026-01-01') AND ("p"."bargain_date" <= '2026-12-31 23:59:59') AND ("p"."project_status"=2)) "sub" ON "progress"."id" = "sub"."project_progress" WHERE "progress"."is_delete"=FALSE GROUP BY "progress"."id" ORDER BY "progress"."order"
17:57:44.6373.0 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') )) "sub"
17:57:45.3492.7 msyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
17:57:44.6852.7 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59') )) "sub"
17:57:44.7012.6 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59') )) "sub"
17:57:44.6582.6 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59') )) "sub"
17:57:45.2892.6 msyii\db\Command::querySELECT TO_CHAR(start_at, 'YYYY-MM') AS name, COUNT(id) AS visit_count, COALESCE(EXTRACT(epoch FROM SUM(end_at - start_at)) / 3600, 0) AS visit_hours FROM "a57be577deb434"."tbl_pre_sales" WHERE ("is_draft"=FALSE) AND ("start_at" >= '2026-01-01') AND ("start_at" <= '2026-12-31 23:59:59') GROUP BY TO_CHAR(start_at, 'YYYY-MM')
17:57:45.2222.5 msyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_project_progresses' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
17:57:44.9802.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59') )) "sub"
17:57:45.0012.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59') )) "sub"
17:57:44.9252.4 msyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_erp_settles' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
17:57:45.3072.3 msyii\db\Command::querySELECT GREATEST(CURRENT_DATE - DATE(eip.created_at), 0) AS age_days, gt.id AS dim_key, gt.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id LEFT JOIN "a57be577deb434"."tbl_product_types" "gt" ON gt.id = prod.product_type WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY GREATEST(CURRENT_DATE - DATE(eip.created_at), 0), gt.id, gt.name
17:57:45.0202.3 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') )) "sub"
17:57:45.2512.3 msyii\db\Command::querySELECT TO_CHAR(occurrence_at, 'YYYY-MM') AS name, COALESCE(SUM(amount), 0) AS total_amount FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (1, 2, 3)) AND ("occurrence_at" >= '2025-01-01') AND ("occurrence_at" <= '2025-12-31 23:59:59') GROUP BY TO_CHAR(occurrence_at, 'YYYY-MM')
17:57:44.9402.2 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59') )) "sub"
17:57:45.0032.2 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59') )) "sub"
17:57:44.9832.2 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59') )) "sub"
17:57:44.6602.2 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59') )) "sub"
17:57:45.3022.2 msyii\db\Command::querySELECT TO_CHAR(arrived_at, 'YYYY-MM') AS name, COUNT(id) AS visit_count, COALESCE(EXTRACT(epoch FROM SUM(left_at - arrived_at)) / 3600, 0) AS visit_hours FROM "a57be577deb434"."tbl_implement_records" WHERE ("is_draft"=FALSE) AND ("arrived_at" >= '2025-01-01') AND ("arrived_at" <= '2025-12-31 23:59:59') GROUP BY TO_CHAR(arrived_at, 'YYYY-MM')
17:57:44.9432.2 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59') )) "sub"
17:57:45.1552.1 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2026-01-01') AND ("l"."created_at" < '2026-02-01')) "sub" GROUP BY "sub"."new_status"
17:57:44.9612.1 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59') )) "sub"
17:57:45.3402.1 msyii\db\Command::querySELECT GREATEST(CURRENT_DATE - DATE(eip.created_at), 0) AS age_days, gb.id AS dim_key, gb.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id LEFT JOIN "a57be577deb434"."tbl_product_brands" "gb" ON gb.id = prod.product_brand WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY GREATEST(CURRENT_DATE - DATE(eip.created_at), 0), gb.id, gb.name
17:57:44.9582.0 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59') )) "sub"
17:57:45.3372.0 msyii\db\Command::querySELECT GREATEST(CURRENT_DATE - DATE(eip.created_at), 0) AS age_days, gc.id AS dim_key, gc.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id LEFT JOIN "a57be577deb434"."tbl_product_components" "gc" ON gc.id = prod.product_component WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY GREATEST(CURRENT_DATE - DATE(eip.created_at), 0), gc.id, gc.name
17:57:44.6882.0 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59') )) "sub"
17:57:44.6781.9 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_goals" WHERE "goal_year"=2026
17:57:45.0221.9 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59') )) "sub"
17:57:45.0391.8 msyii\db\Command::querySELECT TO_CHAR(bargain_date::date, 'YYYY-MM') AS month_key, EXTRACT(MONTH FROM bargain_date::date) AS month_num, COALESCE(SUM(budget * COALESCE(profit_pct, 0) / 100), 0) AS profit, COALESCE(SUM(budget), 0) AS revenue FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2025-01-01') AND ("bargain_date" <= '2025-12-31') GROUP BY TO_CHAR(bargain_date::date, 'YYYY-MM'), EXTRACT(MONTH FROM bargain_date::date) ORDER BY TO_CHAR(bargain_date::date, 'YYYY-MM')
17:57:44.7191.7 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59') )) "sub"
17:57:44.8791.6 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59') )) "sub"
17:57:44.7331.6 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59') )) "sub"
17:57:44.7941.6 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59') )) "sub"
17:57:44.7461.6 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59') )) "sub"
17:57:44.5091.6 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
17:57:44.7211.6 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59') )) "sub"
17:57:45.2541.6 msyii\db\Command::querySELECT c.name AS source_name, COALESCE(SUM(p.budget), 0) AS cnt FROM "a57be577deb434"."tbl_projects" "p" INNER JOIN "a57be577deb434"."tbl_contacts" "c" ON c.id = p.from_contact WHERE ("p"."created_at" >= '2026-01-01') AND ("p"."created_at" <= '2026-12-31 23:59:59') AND ("p"."project_status"=3) GROUP BY "c"."name" ORDER BY cnt DESC
17:57:44.8311.6 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') )) "sub"
17:57:44.8901.6 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59') )) "sub"
17:57:44.7841.6 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59') )) "sub"
17:57:44.9011.6 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59') )) "sub"
17:57:44.8541.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59') )) "sub"
17:57:45.0371.5 msyii\db\Command::querySELECT TO_CHAR(bargain_date::date, 'YYYY-MM') AS month_key, EXTRACT(MONTH FROM bargain_date::date) AS month_num, COALESCE(SUM(budget * COALESCE(profit_pct, 0) / 100), 0) AS profit, COALESCE(SUM(budget), 0) AS revenue FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2026-01-01') AND ("bargain_date" <= '2026-12-31') GROUP BY TO_CHAR(bargain_date::date, 'YYYY-MM'), EXTRACT(MONTH FROM bargain_date::date) ORDER BY TO_CHAR(bargain_date::date, 'YYYY-MM')
17:57:44.7481.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59') )) "sub"
17:57:44.8781.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59') )) "sub"
17:57:44.8431.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59') )) "sub"
17:57:44.8181.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59') )) "sub"
17:57:44.8421.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59') )) "sub"
17:57:44.8081.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59') )) "sub"
17:57:45.3901.5 msyii\db\Command::querySELECT "prod"."id", gb.name AS brand_name, gt.name AS type_name, gc.name AS component_name, gs.name AS serie_name FROM "a57be577deb434"."tbl_products" "prod" LEFT JOIN "a57be577deb434"."tbl_product_brands" "gb" ON gb.id = prod.product_brand LEFT JOIN "a57be577deb434"."tbl_product_types" "gt" ON gt.id = prod.product_type LEFT JOIN "a57be577deb434"."tbl_product_components" "gc" ON gc.id = prod.product_component LEFT JOIN "a57be577deb434"."tbl_product_series" "gs" ON gs.id = prod.product_serie WHERE "prod"."id" IN (39, 672, 941, 1025, 1224, 1231, 1234, 1238, 1245, 1246, 1372, 1562, 1584, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2080, 2083, 2084, 2085, 2086, 2171, 2242, 2255, 2261, 2262, 2269)
17:57:44.7601.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59') )) "sub"
17:57:45.3471.5 msyii\db\Command::querySELECT "prod"."id", gb.name AS brand_name, gt.name AS type_name, gc.name AS component_name, gs.name AS serie_name FROM "a57be577deb434"."tbl_products" "prod" LEFT JOIN "a57be577deb434"."tbl_product_brands" "gb" ON gb.id = prod.product_brand LEFT JOIN "a57be577deb434"."tbl_product_types" "gt" ON gt.id = prod.product_type LEFT JOIN "a57be577deb434"."tbl_product_components" "gc" ON gc.id = prod.product_component LEFT JOIN "a57be577deb434"."tbl_product_series" "gs" ON gs.id = prod.product_serie WHERE "prod"."id" IN (2269, 2261, 1562, 1584, 2171, 2262, 1372, 2269, 2269, 1372, 2261, 2269, 2242, 2255, 1234, 1224, 941, 1372, 39, 672, 1025, 1231, 1238, 1245, 1246, 1372, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2080, 2083, 2084, 2085, 2086)
17:57:44.8201.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59') )) "sub"
17:57:44.7351.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59') )) "sub"
17:57:44.8061.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59') )) "sub"
17:57:44.7591.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59') )) "sub"
17:57:44.8301.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59') )) "sub"
17:57:44.7961.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59') )) "sub"
17:57:44.8911.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59') )) "sub"
17:57:44.8671.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59') )) "sub"
17:57:44.8661.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59') )) "sub"
17:57:44.9131.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59') )) "sub"
17:57:44.7701.5 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59') )) "sub"
17:57:44.9031.5 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59') )) "sub"
17:57:44.7721.4 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59') )) "sub"
17:57:44.9151.4 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59') )) "sub"
17:57:44.8551.4 msyii\db\Command::querySELECT sum(amount) as amount FROM ((SELECT COALESCE(sum(am.amount), 0) as amount FROM "a57be577deb434"."tbl_erp_other_income_ticket_handlers" "am" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON am.erp_other_income_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND (("sc"."from_project" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (sales_contract_id is null)) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59')) UNION ALL ( SELECT COALESCE(sum(t.amount * am.pct / 100), 0) as amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.from_project = pd.project_id LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON sc.id = t.sales_contract_id WHERE ("t"."status"=2) AND ("pd"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59') )) "sub"
17:57:45.3441.4 msyii\db\Command::querySELECT GREATEST(CURRENT_DATE - DATE(eip.created_at), 0) AS age_days, gs.id AS dim_key, gs.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id LEFT JOIN "a57be577deb434"."tbl_product_series" "gs" ON gs.id = prod.product_serie WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY GREATEST(CURRENT_DATE - DATE(eip.created_at), 0), gs.id, gs.name
17:57:44.7821.4 msyii\db\Command::querySELECT sum(actual_total_amount) as actual_total_amount, sum(total_amount) as total_amount FROM ((SELECT COALESCE(sum(eipss.actual_total_amount), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount), 0) as total_amount FROM "a57be577deb434"."tbl_erp_sales_outbounds" "t" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND (("t"."project_id" NOT IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) OR (t.project_id is null)) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59')) UNION ALL ( SELECT COALESCE(sum(eipss.actual_total_amount * am.pct / 100), 0) as actual_total_amount, COALESCE(sum(eipss.total_amount * am.pct / 100), 0) as total_amount FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" "am" LEFT JOIN "a57be577deb434"."tbl_erp_profit_distributes" "pd" ON am.erp_profit_distribute_id = pd.id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON pd.project_id = t.project_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "eipss" ON eipss.erp_sales_outbound_id = t.id WHERE ("t"."status"=2) AND ("t"."project_id" IN (SELECT t.project_id FROM "a57be577deb434"."tbl_erp_profit_distributes" "t" WHERE ("t"."status"=2) AND (t.project_id IS NOT NULL) GROUP BY "t"."project_id")) AND ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59') )) "sub"
17:57:45.1601.4 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2026-04-01') AND ("l"."created_at" < '2026-05-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.1581.3 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2026-02-01') AND ("l"."created_at" < '2026-03-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2161.3 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-12-01') AND ("l"."created_at" < '2026-01-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.3841.3 msyii\db\Command::querySELECT gc.id AS dim_key, gc.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id LEFT JOIN "a57be577deb434"."tbl_product_components" "gc" ON gc.id = prod.product_component WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY gc.id, gc.name
17:57:45.0811.2 msyii\db\Command::querySELECT COALESCE(SUM(erp_un_settle_amount), 0) AS receivable, COALESCE(SUM(erp_settle_amount), 0) AS settle_amount, COALESCE(SUM(amount), 0) AS total_amount FROM "a57be577deb434"."tbl_sales_contracts"
17:57:45.0781.2 msyii\db\Command::querySELECT COUNT(DISTINCT client_id) AS client_count, COALESCE(SUM(budget), 0) AS revenue FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2025-08-05') AND ("bargain_date" <= '2025-12-31') AND ("client_id" IS NOT NULL)
17:57:44.6311.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-08-05 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59')
17:57:45.3861.2 msyii\db\Command::querySELECT gb.id AS dim_key, gb.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id LEFT JOIN "a57be577deb434"."tbl_product_brands" "gb" ON gb.id = prod.product_brand WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY gb.id, gb.name
17:57:45.3871.1 msyii\db\Command::querySELECT gs.id AS dim_key, gs.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id LEFT JOIN "a57be577deb434"."tbl_product_series" "gs" ON gs.id = prod.product_serie WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY gs.id, gs.name
17:57:45.3461.1 msyii\db\Command::querySELECT GREATEST(CURRENT_DATE - DATE(eip.created_at), 0) AS age_days, prod.id AS dim_key, prod.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY GREATEST(CURRENT_DATE - DATE(eip.created_at), 0), prod.id, prod.name
17:57:45.3831.1 msyii\db\Command::querySELECT gt.id AS dim_key, gt.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id LEFT JOIN "a57be577deb434"."tbl_product_types" "gt" ON gt.id = prod.product_type WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY gt.id, gt.name
17:57:45.2491.1 msyii\db\Command::querySELECT TO_CHAR(occurrence_at, 'YYYY-MM') AS name, COALESCE(SUM(amount), 0) AS total_amount FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (1, 2, 3)) AND ("occurrence_at" >= '2026-01-01') AND ("occurrence_at" <= '2026-12-31 23:59:59') GROUP BY TO_CHAR(occurrence_at, 'YYYY-MM')
17:57:45.3891.0 msyii\db\Command::querySELECT prod.id AS dim_key, prod.name AS dim_name, COALESCE(SUM(eip.inventory), 0) AS total_number, COALESCE(SUM(COALESCE(eip.actual_amount, eip.amount, 0) * eip.inventory), 0) AS total_amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" INNER JOIN "a57be577deb434"."tbl_products" "prod" ON prod.id = eip.product_id WHERE ("eip"."inventory" > 0) AND (("eip"."erp_purchase_inbound_id" IS NOT NULL) OR ("eip"."erp_purchase_gift_id" IS NOT NULL) OR ("eip"."erp_inventory_build_id" IS NOT NULL) OR ("eip"."erp_inventory_disassemble_id" IS NOT NULL) OR ("eip"."erp_inventory_start_id" IS NOT NULL)) GROUP BY prod.id, prod.name
17:57:44.5421.0 msyii\db\Command::querySELECT COALESCE(SUM(budget), 0) AS revenue, COALESCE(SUM(budget * COALESCE(profit_pct, 0) / 100), 0) AS profit FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2025-01-01') AND ("bargain_date" <= '2025-05-29')
17:57:45.0770.9 msyii\db\Command::querySELECT COUNT(DISTINCT client_id) AS client_count, COALESCE(SUM(budget), 0) AS revenue FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2026-01-01') AND ("bargain_date" <= '2026-12-31') AND ("client_id" IS NOT NULL)
17:57:45.1620.9 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2026-05-01') AND ("l"."created_at" < '2026-06-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2140.9 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-10-01') AND ("l"."created_at" < '2025-11-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2090.9 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-04-01') AND ("l"."created_at" < '2025-05-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.0790.8 msyii\db\Command::querySELECT COUNT(DISTINCT client_id) AS client_count, COALESCE(SUM(budget), 0) AS revenue FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2025-01-01') AND ("bargain_date" <= '2025-05-29') AND ("client_id" IS NOT NULL)
17:57:45.2150.8 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-11-01') AND ("l"."created_at" < '2025-12-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2100.8 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-05-01') AND ("l"."created_at" < '2025-06-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2060.8 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-01-01') AND ("l"."created_at" < '2025-02-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2130.8 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-09-01') AND ("l"."created_at" < '2025-10-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2120.8 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-07-01') AND ("l"."created_at" < '2025-08-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2120.8 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-08-01') AND ("l"."created_at" < '2025-09-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2110.8 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-06-01') AND ("l"."created_at" < '2025-07-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2080.7 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-03-01') AND ("l"."created_at" < '2025-04-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.2070.7 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2025-02-01') AND ("l"."created_at" < '2025-03-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.1590.7 msyii\db\Command::querySELECT "sub"."new_status", COUNT(*) AS cnt, COALESCE(SUM(sub.budget), 0) AS total_budget FROM (SELECT DISTINCT "l"."project_id", "l"."new_status", "p"."budget" FROM "a57be577deb434"."tbl_project_status_logs" "l" INNER JOIN "a57be577deb434"."tbl_projects" "p" ON l.project_id = p.id WHERE ("l"."new_status" IN (3, 4, 5)) AND ("l"."created_at" >= '2026-03-01') AND ("l"."created_at" < '2026-04-01')) "sub" GROUP BY "sub"."new_status"
17:57:45.0800.7 msyii\db\Command::querySELECT COALESCE(SUM(budget), 0) AS potential_revenue FROM "a57be577deb434"."tbl_projects" WHERE "project_status" IN (1, 2)
17:57:45.2920.6 msyii\db\Command::querySELECT TO_CHAR(start_at, 'YYYY-MM') AS name, COUNT(id) AS visit_count, COALESCE(EXTRACT(epoch FROM SUM(end_at - start_at)) / 3600, 0) AS visit_hours FROM "a57be577deb434"."tbl_pre_sales" WHERE ("is_draft"=FALSE) AND ("start_at" >= '2025-01-01') AND ("start_at" <= '2025-12-31 23:59:59') GROUP BY TO_CHAR(start_at, 'YYYY-MM')
17:57:44.5150.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
17:57:44.6820.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("start_date" <= '2026-01-01') AND ("end_date" >= '2026-01-01') AND ("is_settle"=TRUE)
17:57:44.6570.3 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-05-29 23:59:59')
17:57:44.6840.3 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-01-01 00:00:00') AND ("t"."created_at" <= '2026-01-31 23:59:59')
17:57:44.9390.3 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-08-08 00:00:00') AND ("t"."created_at" <= '2025-08-31 23:59:59')
17:57:44.7010.3 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-02-01 00:00:00') AND ("t"."created_at" <= '2026-02-28 23:59:59')
17:57:45.0190.3 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-12-01 00:00:00') AND ("t"."created_at" <= '2025-12-31 23:59:59')
17:57:44.9790.3 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-10-01 00:00:00') AND ("t"."created_at" <= '2025-10-31 23:59:59')
17:57:44.7580.3 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-06-01 00:00:00') AND ("t"."created_at" <= '2026-06-30 23:59:59')
17:57:45.0000.3 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-11-01 00:00:00') AND ("t"."created_at" <= '2025-11-30 23:59:59')
17:57:44.9570.3 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-09-01 00:00:00') AND ("t"."created_at" <= '2025-09-30 23:59:59')
17:57:44.6830.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("start_date" <= '2026-12-31') AND ("end_date" >= '2026-12-31') AND ("is_settle"=TRUE)
17:57:44.8050.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-09-01') AND ("is_settle"=TRUE)
17:57:44.9560.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-09-01') AND ("is_settle"=TRUE)
17:57:45.0180.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-12-01') AND ("is_settle"=TRUE)
17:57:44.6830.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-01-01') AND ("is_settle"=TRUE)
17:57:44.9570.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-08-01') AND ("is_settle"=TRUE)
17:57:44.9780.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-10-01') AND ("is_settle"=TRUE)
17:57:44.6810.2 msyii\db\Command::querySELECT "sales_goal_id", COUNT(*) AS member_count FROM "a57be577deb434"."tbl_sales_goal_rels" WHERE "sales_goal_id"=15 GROUP BY "sales_goal_id"
17:57:44.7190.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-03-01 00:00:00') AND ("t"."created_at" <= '2026-03-31 23:59:59')
17:57:45.0190.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-11-01') AND ("is_settle"=TRUE)
17:57:44.9990.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-11-01') AND ("is_settle"=TRUE)
17:57:44.7320.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-04-01 00:00:00') AND ("t"."created_at" <= '2026-04-30 23:59:59')
17:57:44.7940.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-09-01 00:00:00') AND ("t"."created_at" <= '2026-09-30 23:59:59')
17:57:44.7820.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-08-01 00:00:00') AND ("t"."created_at" <= '2026-08-31 23:59:59')
17:57:44.8410.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-01-01 00:00:00') AND ("t"."created_at" <= '2025-01-31 23:59:59')
17:57:44.7700.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-07-01 00:00:00') AND ("t"."created_at" <= '2026-07-31 23:59:59')
17:57:44.9130.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-07-01 00:00:00') AND ("t"."created_at" <= '2025-07-31 23:59:59')
17:57:44.8170.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-11-01 00:00:00') AND ("t"."created_at" <= '2026-11-30 23:59:59')
17:57:44.6840.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-12-01') AND ("is_settle"=TRUE)
17:57:44.8060.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-10-01 00:00:00') AND ("t"."created_at" <= '2026-10-31 23:59:59')
17:57:44.7460.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-05-01 00:00:00') AND ("t"."created_at" <= '2026-05-31 23:59:59')
17:57:44.8650.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-03-01 00:00:00') AND ("t"."created_at" <= '2025-03-31 23:59:59')
17:57:44.8770.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-04-01 00:00:00') AND ("t"."created_at" <= '2025-04-30 23:59:59')
17:57:44.9010.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-06-01 00:00:00') AND ("t"."created_at" <= '2025-06-30 23:59:59')
17:57:44.9790.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-09-01') AND ("is_settle"=TRUE)
17:57:44.8290.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2026-12-01 00:00:00') AND ("t"."created_at" <= '2026-12-31 23:59:59')
17:57:44.8530.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-02-01 00:00:00') AND ("t"."created_at" <= '2025-02-28 23:59:59')
17:57:44.8890.2 msyii\db\Command::querySELECT COALESCE(sum(budget), 0) as budget, COALESCE(sum(cost), 0) as cost, COALESCE(sum(expense), 0) as expense FROM "a57be577deb434"."tbl_erp_user_profits" "t" WHERE ("t"."created_at" >= '2025-05-01 00:00:00') AND ("t"."created_at" <= '2025-05-31 23:59:59')
17:57:44.9120.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-07-01') AND ("is_settle"=TRUE)
17:57:44.7000.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-01-01') AND ("is_settle"=TRUE)
17:57:44.7320.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-04-01') AND ("is_settle"=TRUE)
17:57:45.0000.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-10-01') AND ("is_settle"=TRUE)
17:57:44.7930.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-09-01') AND ("is_settle"=TRUE)
17:57:44.8170.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-11-01') AND ("is_settle"=TRUE)
17:57:44.7180.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-03-01') AND ("is_settle"=TRUE)
17:57:44.9240.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-08-01') AND ("is_settle"=TRUE)
17:57:44.7690.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-07-01') AND ("is_settle"=TRUE)
17:57:44.8650.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-03-01') AND ("is_settle"=TRUE)
17:57:44.7000.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-02-01') AND ("is_settle"=TRUE)
17:57:44.8650.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-02-01') AND ("is_settle"=TRUE)
17:57:44.9010.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-06-01') AND ("is_settle"=TRUE)
17:57:44.8400.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("start_date" <= '2025-01-01') AND ("end_date" >= '2025-01-01') AND ("is_settle"=TRUE)
17:57:44.8290.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-12-01') AND ("is_settle"=TRUE)
17:57:44.8050.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-10-01') AND ("is_settle"=TRUE)
17:57:44.7450.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-05-01') AND ("is_settle"=TRUE)
17:57:44.7580.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-06-01') AND ("is_settle"=TRUE)
17:57:44.8890.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-05-01') AND ("is_settle"=TRUE)
17:57:44.7810.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-08-01') AND ("is_settle"=TRUE)
17:57:44.8530.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-02-01') AND ("is_settle"=TRUE)
17:57:44.8770.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-03-01') AND ("is_settle"=TRUE)
17:57:44.8770.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-04-01') AND ("is_settle"=TRUE)
17:57:44.7580.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-05-01') AND ("is_settle"=TRUE)
17:57:44.9010.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-05-01') AND ("is_settle"=TRUE)
17:57:44.7930.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-08-01') AND ("is_settle"=TRUE)
17:57:44.8290.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-11-01') AND ("is_settle"=TRUE)
17:57:44.8530.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-01-01') AND ("is_settle"=TRUE)
17:57:44.7810.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-07-01') AND ("is_settle"=TRUE)
17:57:44.8890.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-04-01') AND ("is_settle"=TRUE)
17:57:44.8410.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("start_date" <= '2025-12-31') AND ("end_date" >= '2025-12-31') AND ("is_settle"=TRUE)
17:57:44.8410.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-01-01') AND ("is_settle"=TRUE)
17:57:44.7700.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-06-01') AND ("is_settle"=TRUE)
17:57:44.7450.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-04-01') AND ("is_settle"=TRUE)
17:57:44.9130.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2025-06-01') AND ("is_settle"=TRUE)
17:57:44.7320.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-03-01') AND ("is_settle"=TRUE)
17:57:44.7190.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-02-01') AND ("is_settle"=TRUE)
17:57:44.8170.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2026-10-01') AND ("is_settle"=TRUE)
17:57:44.8410.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_settles" WHERE ("date"='2024-12-01') AND ("is_settle"=TRUE)