22:34:00.722 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
22:34:00.722 | trace | yii\base\Module::getModule | Loading module: debug |
22:34:00.722 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
22:34:00.722 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
22:34:00.723 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
22:34:00.723 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:34:00.723 | trace | yii\base\Module::getModule | Loading module: gii |
22:34:00.723 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
22:34:00.723 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
22:34:00.723 | trace | yii\web\Application::handleRequest | Route requested: 'v2/user/get-edit' |
22:34:00.723 | trace | yii\base\Module::getModule | Loading module: v2 |
22:34:00.723 | info | yii\web\Session::open | Session started |
22:34:00.724 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
22:34:00.726 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
22:34:00.729 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:34:00.729 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:34:00.729 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:34:00.729 | 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_users'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
22:34:00.736 | 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_users'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
22:34:00.744 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:34:00.744 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
22:34:00.744 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
22:34:00.745 | trace | yii\base\Controller::runAction | Route to run: v2/user/get-edit |
22:34:00.745 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\UserController::actionGetEdit() |
22:34:00.745 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
22:34:00.746 | info | yii\db\Command::query | SELECT "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10 |
22:34:00.746 | info | yii\db\Command::query | SELECT "id" AS "key", "name" FROM "a57be577deb434"."tbl_department_positions" WHERE "id"=22 |
22:34:00.747 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_auth_assignments" WHERE "user_id"=1000 |
22:34:00.747 | info | yii\db\Command::query | SELECT "id" AS "key", "name", "display_name" FROM "a57be577deb434"."tbl_auth_items" WHERE ("type"='1') AND ("name" IN ('软件开发', 'Admin')) |
22:34:00.748 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_user_meta" WHERE "user_id"=1000 |
22:34:00.748 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:34:00.749 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:34:00.749 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 2, 1141, 'v2/user/get-edit', '{"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"2","posttime":"1750775680","token":"1c9969562ff1781b4bf66343988fb9ff","version_code":"1141"}', '{"code":200,"data":{"model":{"id":1000,"email":"caoyongsheng@toast.com.cn","name":"\u66f9\u6c38\u751f","user_status":"1","pinyin_shortcut":"cys","sex":"M","birth_date":"1986-01-01","entry_date":"2016-07-04","department_id":10,"department_position_id":22,"mobile":"13810260729","telephone":"88864628","created_at":"2017-02-06 12:39:24","updated_at":"2025-05-08 09:58:49","id_number":"372328197810220612","native_place":"\u535a\u5174","graduate_school":"\u6ee8\u5dde\u5e08\u8303\u4e13\u79d1\u5b66\u6821","specialty":"\u6570\u5b66\u6559\u80b2(\u8ba1\u7b97\u673a)","education":"\u4e13\u79d1","telephone_area_code":"010","telephone_extension_number":"813","leave_date":null,"pinyin1":"cao","pinyin2":"yong","pinyin3":"sheng","pinyin4":null,"namecut1":"\u66f9","namecut2":"\u6c38","namecut3":"\u751f","namecut4":null,"budget_count":"0","profit_count":"0","bargain_count":"0","opportunity_budget_count":"0","opportunity_count":"0","work_log_score":"0","e_implement_count":"0","e_budget_count":"0","e_profit_count":"0","e_client_count":"0","e_project_count":"0","e_point_count":"0","visit_resource_sync":false,"client_lock":false,"view_public":false,"client_remind_alarm_before":null,"work_on_remind":false,"work_off_remind":true,"check_client_same":true,"calendar_view_type":7,"search_all_client":true,"department":{"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"},"departmentPosition":{"key":22,"name":"\u5f00\u53d1\u603b\u76d1"},"userRoles":[{"key":77,"name":"Admin","display_name":"\u7cfb\u7edf\u7ba1\u7406\u5458"},{"key":101,"name":"\u8f6f\u4ef6\u5f00\u53d1","display_name":"\u8f6f\u4ef6\u5f00\u53d1"}],"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"options":[{"key":"Users[sex]","name":"sex","value":[{"key":"M","name":"\u7537"},{"key":"F","name":"\u5973"}]}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-06-24 22:34:00') RETURNING "id" |