| 14:32:17.849 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 14:32:17.849 | trace | yii\base\Module::getModule | Loading module: debug |
| 14:32:17.850 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 14:32:17.850 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 14:32:17.851 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 14:32:17.851 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:17.852 | info | time tracing start | 1783405937852140032 |
| 14:32:17.852 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 14:32:17.852 | trace | yii\web\Application::handleRequest | Route requested: 'vue/client/list-document' |
| 14:32:17.852 | trace | yii\base\Module::getModule | Loading module: vue |
| 14:32:17.853 | info | yii\web\Session::open | Session started |
| 14:32:17.854 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:32:17.854 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 14:32:17.856 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:17.857 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:32:17.857 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:32:17.858 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:17.859 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:32:17.859 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 14:32:17.860 | trace | yii\base\Controller::runAction | Route to run: vue/client/list-document |
| 14:32:17.860 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:17.862 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 14:32:17.862 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ClientController::actionListDocument() |
| 14:32:17.863 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3303' |
| 14:32:17.863 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:17.864 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:32:17.870 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:17.870 | 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_client_documents'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:32:17.877 | 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_client_documents'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:32:17.889 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:32:17.889 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:32:17.890 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT cd.* FROM "a57be577deb434"."tbl_client_documents" "cd" WHERE "client_id"=3303 GROUP BY "cd"."id" ORDER BY "created_at" DESC) "c" |
| 14:32:17.907 | info | yii\db\Command::query | SELECT cd.* FROM "a57be577deb434"."tbl_client_documents" "cd" WHERE "client_id"=3303 GROUP BY "cd"."id" ORDER BY "created_at" DESC LIMIT 20 |
| 14:32:17.909 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011 |
| 14:32:17.910 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1011) |
| 14:32:17.910 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=3 |
| 14:32:17.911 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (23277, 22227) |
| 14:32:17.913 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=104) AND ("object_id" IN (689, 663)) GROUP BY "object_id" |
| 14:32:17.958 | info | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=104) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id" IN (689, 663)) GROUP BY "object_id" |
| 14:32:17.995 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3303 |
| 14:32:17.996 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateClientDocument |
| 14:32:17.996 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 14:32:17.996 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 14:32:17.996 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
| 14:32:17.996 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: ProjectManager |
| 14:32:17.996 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 14:32:17.996 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: deleteClientDocument |
| 14:32:17.996 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 14:32:17.996 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:17.998 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:18.000 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:18.000 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:32:18.001 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/client/list-document', '{"page":"1","client_id":"3303","web_access_token":"ukNwOz-BjUcQL9I3n8iWo2JcLwCMuHVk"}', '{"code":2000,"result":{"list":[{"id":689,"attachment_id":23277,"client_id":3303,"title":"42400\u5408\u540c\u6a21\u7248-20241217","description":"","created_by":1011,"created_at":"2024-12-18 09:59:35","updated_at":"2024-12-18 09:59:35","project_id":null,"case_id":null,"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","department_id":3,"avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"},"department":{"id":3,"key":3,"name":"\u5546\u52a1\u90e8"}},"attachment":{"id":23277,"key":23277,"name":"35dccfbd-ea16-3347-9c0f-e5d2e068d442","extension":"docx","path":"\/vue\/attachment\/preview\/35dccfbd-ea16-3347-9c0f-e5d2e068d442\/XSZYO68700.docx","orig_name":"XSZYO68700.docx"},"commentCount":{},"unreadComments":null,"client":{"id":3303,"key":3303,"name":"\u5317\u4eac\u795e\u5dde\u90a6\u90a6\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8(\u8fc7\u5355)"},"project":null,"case":null,"unread":0,"can_update":true,"can_delete":true},{"id":663,"attachment_id":22227,"client_id":3303,"title":"\u5408\u540c\u6a21\u7248-305280","description":"","created_by":1011,"created_at":"2024-10-25 17:54:51","updated_at":"2024-10-25 17:54:51","project_id":null,"case_id":null,"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","department_id":3,"avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"},"department":{"id":3,"key":3,"name":"\u5546\u52a1\u90e8"}},"attachment":{"id":22227,"key":22227,"name":"3dcfaea0-c39d-3858-9785-0c8c5983a5a6","extension":"docx","path":"\/vue\/attachment\/preview\/3dcfaea0-c39d-3858-9785-0c8c5983a5a6\/XSZYO68316.docx","orig_name":"XSZYO68316.docx"},"commentCount":{},"unreadComments":null,"client":{"id":3303,"key":3303,"name":"\u5317\u4eac\u795e\u5dde\u90a6\u90a6\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8(\u8fc7\u5355)"},"project":null,"case":null,"unread":0,"can_update":true,"can_delete":true}],"can_create":true,"pagenation":{"totalcount":2,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"39.156.194.178","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-07-07 14:32:17', 148904960) RETURNING "id" |
| 14:32:18.004 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:32:18.004 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |