17:50:22.603 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
17:50:22.603 | trace | yii\base\Module::getModule | Loading module: debug |
17:50:22.603 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
17:50:22.603 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
17:50:22.603 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
17:50:22.603 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:50:22.604 | trace | yii\base\Module::getModule | Loading module: gii |
17:50:22.604 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
17:50:22.604 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
17:50:22.604 | trace | yii\web\Application::handleRequest | Route requested: 'vue/dashboard/get-main' |
17:50:22.604 | trace | yii\base\Module::getModule | Loading module: vue |
17:50:22.605 | info | yii\web\Session::open | Session started |
17:50:22.606 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
17:50:22.606 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
17:50:22.610 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:50:22.610 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:50:22.610 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:50:22.610 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:50:22.610 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:50:22.612 | trace | yii\base\Controller::runAction | Route to run: vue/dashboard/get-main |
17:50:22.612 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\DashboardController::actionGetMain() |
17:50:22.612 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:50:22.614 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:50:22.615 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001) |
17:50:22.617 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:50:22.617 | info | yii\db\Command::query | SELECT
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_user_meta'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:50:22.622 | info | yii\db\Command::query | select
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_user_meta'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:50:22.630 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:50:22.631 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:50:22.633 | info | yii\db\Command::query | SELECT
(
(CASE WHEN srsb.budget_base > 0 THEN floor(u.budget_count * 10 / srsb.budget_base) ELSE 0 END)
+
(CASE WHEN srsb.profit_base > 0 THEN floor(u.profit_count * 10 / srsb.profit_base) ELSE 0 END)
+
(CASE WHEN srsb.bargain_base > 0 THEN floor(u.bargain_count * 10 / srsb.bargain_base) ELSE 0 END)
+
(CASE WHEN srsb.opportunity_budget_base > 0 THEN floor(u.opportunity_budget_count * 10 / srsb.opportunity_budget_base) ELSE 0 END)
+
(CASE WHEN srsb.opportunity_base > 0 THEN floor(u.opportunity_count * 10 / srsb.opportunity_base) ELSE 0 END)
+
work_log_score
) as score
FROM "a57be577deb434"."tbl_users" "u" LEFT JOIN "a57be577deb434"."tbl_auth_assignments" "aa" ON u.id = aa.user_id LEFT JOIN "a57be577deb434"."tbl_sales_rep_score_bases" "srsb" ON 1 = 1 WHERE "u"."id"=1001 GROUP BY "u"."id", "srsb"."id" |
17:50:22.637 | info | yii\db\Command::query | SELECT
(
(CASE WHEN esb.e_implement_base > 0 THEN floor(u.e_implement_count * 20 / esb.e_implement_base) ELSE 0 END)
+
(CASE WHEN esb.e_budget_base > 0 THEN floor(u.e_budget_count * 20 / esb.e_budget_base) ELSE 0 END)
+
(CASE WHEN esb.e_profit_base > 0 THEN floor(u.e_profit_count * 15 / esb.e_profit_base) ELSE 0 END)
+
(CASE WHEN esb.e_client_base > 0 THEN floor(u.e_client_count * 15 / esb.e_client_base) ELSE 0 END)
+
(CASE WHEN esb.e_project_base > 0 THEN floor(u.e_project_count * 15 / esb.e_project_base) ELSE 0 END)
+
(CASE WHEN esb.e_point_base > 0 THEN floor(u.e_point_count * 15 / esb.e_point_base) ELSE 0 END)
) as score
FROM "a57be577deb434"."tbl_users" "u" LEFT JOIN "a57be577deb434"."tbl_auth_assignments" "aa" ON u.id = aa.user_id LEFT JOIN "a57be577deb434"."tbl_engineer_score_bases" "esb" ON 1 = 1 WHERE "u"."id"=1001 GROUP BY "u"."id", "esb"."id" |
17:50:22.640 | info | yii\db\Command::query | SELECT * FROM "global"."tbl_enterprises" WHERE "id"=2 |
17:50:22.640 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:50:22.640 | info | yii\db\Command::query | SELECT
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_enterprises'
and d.nspname = 'global'
ORDER BY
a.attnum; |
17:50:22.644 | info | yii\db\Command::query | select
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_enterprises'
and ns.nspname='global'
order by
fns.nspname, fc.relname, a.attnum |
17:50:22.652 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:50:22.652 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:50:22.655 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:50:22.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:50:22.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:50:22.655 | 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/dashboard/get-main', '{"web_access_token":"SXPCUp7Z_YgHJ45TnvuyG1o7l8nwuHKC"}', '{"code":2000,"result":{"deployment":"saas","logo":"\/files\/cdn\/a57be577deb434\/2021\/01\/51931101-63c0-36db-8e97-e68282eef06c.png","user":{"id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png","access_token":"LpLquexa4MxJRClJNdb9gPVa_MzadLnu","version":"3.0.41","enterpriseName":"\u5317\u4eac\u62d3\u5b9e\u79d1\u6280\u6709\u9650\u516c\u53f8","userName":"\u5218\u4eba\u8bda","role":"\u89d2\u8272: \u7cfb\u7edf\u7ba1\u7406\u5458, \u5de5\u7a0b\u5e08, \u5ba2\u6237\u7ecf\u7406","day":"2025-06-25 \u661f\u671f\u4e09","week":"2025\u5e7406\u670825\u65e5 \u7b2c26\u5468","is_sales":true,"score":"15","is_engineer":true,"e_score":"0","is_account_manager":true,"expiry_date":"2325-12-31 00:00:00","will_expired":false,"currentfascalyear_from":"2025-01-01 00:00:00","currentfascalyear_to":"2025-12-31 23:59:59","is_expired":true,"lunarDay":"\u521d\u4e00","lunarMonth":"\u516d\u6708","lunarYear":"\u4e59\u5df3\u5e74","clientCheckSame":true,"tax_start_at":"2024-08-01 00:00"},"can_visit_account":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-06-25 17:50:22') RETURNING "id" |
17:50:22.657 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:50:22.657 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |