03:57:32.600 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
03:57:32.600 | trace | yii\base\Module::getModule | Loading module: debug |
03:57:32.601 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
03:57:32.601 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
03:57:32.601 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
03:57:32.601 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.601 | trace | yii\base\Module::getModule | Loading module: gii |
03:57:32.601 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
03:57:32.601 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
03:57:32.601 | trace | yii\web\Application::handleRequest | Route requested: 'vue/analysis/sales-goal-project-list' |
03:57:32.601 | trace | yii\base\Module::getModule | Loading module: vue |
03:57:32.602 | info | yii\web\Session::open | Session started |
03:57:32.603 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
03:57:32.603 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
03:57:32.607 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.607 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
03:57:32.608 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.608 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
03:57:32.608 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
03:57:32.610 | trace | yii\base\Controller::runAction | Route to run: vue/analysis/sales-goal-project-list |
03:57:32.610 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.611 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
03:57:32.611 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\AnalysisController::actionSalesGoalProjectList() |
03:57:32.611 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.612 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.613 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.613 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
03:57:32.614 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT p.*,
(p.budget / 100 * p.profit_pct) as profits,
now() - status_updated_at as remain,
now() - progress_updated_at as progress_remain,
now() - forecast_updated_at as forecast_remain,
extract(epoch from (now() - max(sl.end_at))) / 86400 AS lost_contact_days,
max(sl.end_at) as last_contact,
extract(epoch from (now() - max(arrive.end_at))) / 86400 AS last_arrive_days,
max(arrive.end_at) as last_arrive,
case when p.end_at IS NOT NULL THEN p.end_at - p.created_at ELSE now() - p.created_at END as duration,
(SELECT sum(amount) FROM a57be577deb434.tbl_invoices i WHERE i.project_id = p.id) as issued_invoices FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_remind_receivers" "prr" ON prr.project_id = p.id LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_clients" "usedclient" ON p.used_client = usedclient.id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.sales_rep LEFT JOIN "a57be577deb434"."tbl_work_logs" "arrive" ON (arrive.project_id = p.id) AND ("arrive"."scenario_id"=1) AND ("arrive"."is_draft"=FALSE) AND ("arrive"."location_in_id" IS NOT NULL) AND ("arrive"."location_out_id" IS NOT NULL) AND ("arrive"."client_id" IS NOT NULL) LEFT JOIN "a57be577deb434"."tbl_work_logs" "sl" ON sl.project_id = p.id LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr" ON ttr.object_id = p.id AND ttr.term_id = 10 LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr2" ON ttr2.object_id = p.id AND ttr2.term_id = 13 LEFT JOIN "a57be577deb434"."tbl_project_architects" "pa" ON "pa"."project_id" = "p"."id" LEFT JOIN "a57be577deb434"."tbl_engineer_group_relationships" "egr" ON egr.engineer_id = pa.engineer_id WHERE ("c"."deleted"=FALSE) AND ("p"."bargain_date" >= '2025-01-01') AND (p.bargain_date < TIMESTAMP '2025-12-31' + INTERVAL '1 second') AND (1=0) AND ("p"."created_by" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) AND ("p"."bargain_date" >= '2025-01-01 00:00:00') AND ("p"."bargain_date" <= '2025-12-31 23:59:59') GROUP BY "p"."id" ORDER BY "p"."bargain_date" DESC) "c" |
03:57:32.622 | info | yii\db\Command::query | SELECT p.*,
(p.budget / 100 * p.profit_pct) as profits,
now() - status_updated_at as remain,
now() - progress_updated_at as progress_remain,
now() - forecast_updated_at as forecast_remain,
extract(epoch from (now() - max(sl.end_at))) / 86400 AS lost_contact_days,
max(sl.end_at) as last_contact,
extract(epoch from (now() - max(arrive.end_at))) / 86400 AS last_arrive_days,
max(arrive.end_at) as last_arrive,
case when p.end_at IS NOT NULL THEN p.end_at - p.created_at ELSE now() - p.created_at END as duration,
(SELECT sum(amount) FROM a57be577deb434.tbl_invoices i WHERE i.project_id = p.id) as issued_invoices FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_remind_receivers" "prr" ON prr.project_id = p.id LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_clients" "usedclient" ON p.used_client = usedclient.id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.sales_rep LEFT JOIN "a57be577deb434"."tbl_work_logs" "arrive" ON (arrive.project_id = p.id) AND ("arrive"."scenario_id"=1) AND ("arrive"."is_draft"=FALSE) AND ("arrive"."location_in_id" IS NOT NULL) AND ("arrive"."location_out_id" IS NOT NULL) AND ("arrive"."client_id" IS NOT NULL) LEFT JOIN "a57be577deb434"."tbl_work_logs" "sl" ON sl.project_id = p.id LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr" ON ttr.object_id = p.id AND ttr.term_id = 10 LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr2" ON ttr2.object_id = p.id AND ttr2.term_id = 13 LEFT JOIN "a57be577deb434"."tbl_project_architects" "pa" ON "pa"."project_id" = "p"."id" LEFT JOIN "a57be577deb434"."tbl_engineer_group_relationships" "egr" ON egr.engineer_id = pa.engineer_id WHERE ("c"."deleted"=FALSE) AND ("p"."bargain_date" >= '2025-01-01') AND (p.bargain_date < TIMESTAMP '2025-12-31' + INTERVAL '1 second') AND (1=0) AND ("p"."created_by" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) AND ("p"."bargain_date" >= '2025-01-01 00:00:00') AND ("p"."bargain_date" <= '2025-12-31 23:59:59') GROUP BY "p"."id" ORDER BY "p"."bargain_date" DESC LIMIT 20 |
03:57:32.630 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.630 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
03:57:32.631 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=23) AND ("visit_date"='2025-08-10') |
03:57:32.634 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.634 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
03:57:32.635 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=12, "last_visit_at"='now()' WHERE "id"=55005 |
03:57:32.636 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/analysis/sales-goal-project-list', '[]', '{"code":2000,"result":{"list":[],"thisUser":"","can_create":true,"can_create_work_log":true,"can_create_schedule":true,"pagenation":{"totalcount":0,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-10 03:57:32') RETURNING "id" |
03:57:32.637 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:57:32.637 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |