11:02:44.864 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
11:02:44.864 | trace | yii\base\Module::getModule | Loading module: debug |
11:02:44.864 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
11:02:44.864 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
11:02:44.864 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
11:02:44.864 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.865 | trace | yii\base\Module::getModule | Loading module: gii |
11:02:44.865 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
11:02:44.865 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
11:02:44.865 | trace | yii\web\Application::handleRequest | Route requested: 'v2/case/get-new' |
11:02:44.865 | trace | yii\base\Module::getModule | Loading module: v2 |
11:02:44.866 | info | yii\web\Session::open | Session started |
11:02:44.867 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
11:02:44.869 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd' |
11:02:44.871 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.872 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:02:44.872 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.872 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:02:44.872 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
11:02:44.874 | trace | yii\base\Controller::runAction | Route to run: v2/case/get-new |
11:02:44.874 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.875 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
11:02:44.875 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\CaseController::actionGetNew() |
11:02:44.875 | info | yii\db\Command::query | SELECT "user_id" FROM "a57be577deb434"."tbl_user_role_change_logs" "urcl" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON urcl.user_id = u.id WHERE ("role_name"='Engineer') AND (((start_from < end_at) or end_at is null)) AND (tsrange(start_from::TIMESTAMP, end_at::TIMESTAMP, '[)') && '[2025-07-04 11:02:44, 2025-07-04 11:02:44]'::tsrange) GROUP BY "user_id", "pinyin1", "namecut1", "pinyin2", "namecut2", "pinyin3", "namecut3", "pinyin4", "namecut4" ORDER BY
pinyin1 nulls first, namecut1 nulls first,
pinyin2 nulls first, namecut2 nulls first,
pinyin3 nulls first, namecut3 nulls first,
pinyin4 nulls first, namecut4 nulls first |
11:02:44.876 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.876 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:02:44.876 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.877 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.878 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_engineer_group_relationships" WHERE "engineer_id" IN (1017, 5085, 1001, 5248, 1015, 1022, 5296, 1023) |
11:02:44.878 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.878 | 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_engineer_group_relationships'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:02:44.882 | 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_engineer_group_relationships'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:02:44.891 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:02:44.891 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
11:02:44.894 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_engineer_groups" WHERE "id"=1 |
11:02:44.895 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.895 | 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_engineer_groups'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:02:44.898 | 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_engineer_groups'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:02:44.908 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:02:44.908 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
11:02:44.908 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:02:44.908 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:02:44.908 | 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/case/get-new', '{"access_token":"Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd","device_type":"2","posttime":"1751598208","token":"a72afc27bc8a47fe0d35f54988562f60","version_code":"1141"}', '{"code":200,"data":{"options":[{"key":"Cases[case_type]","name":"Case\u7c7b\u578b","value":[{"key":1,"name":"\u552e\u524d\u54a8\u8be2"},{"key":2,"name":"\u5b9e\u65bd\u670d\u52a1"}]},{"key":"Cases[spent_time]","name":"\u8ba1\u5212\u7528\u65f6","value":[{"key":"1 hour","name":"1\u5c0f\u65f6"},{"key":"2 hour","name":"2\u5c0f\u65f6"},{"key":"3 hour","name":"3\u5c0f\u65f6"},{"key":"4 hour","name":"4\u5c0f\u65f6"},{"key":"5 hour","name":"5\u5c0f\u65f6"},{"key":"6 hour","name":"6\u5c0f\u65f6"},{"key":"7 hour","name":"7\u5c0f\u65f6"},{"key":"8 hour","name":"8\u5c0f\u65f6"},{"key":"9 hour","name":"9\u5c0f\u65f6"},{"key":"10 hour","name":"10\u5c0f\u65f6"},{"key":"11 hour","name":"11\u5c0f\u65f6"},{"key":"12 hour","name":"12\u5c0f\u65f6"},{"key":"24 hour","name":"1\u5929"},{"key":"48 hour","name":"2\u5929"},{"key":"72 hour","name":"3\u5929"},{"key":"96 hour","name":"4\u5929"},{"key":"120 hour","name":"5\u5929"}]},{"key":"Cases[alarm_before]","name":"\u63d0\u9192\u65f6\u95f4","value":[{"key":"","name":"\u65e0"},{"key":"00:05:00","name":"\u63d0\u524d5\u5206\u949f"},{"key":"00:15:00","name":"\u63d0\u524d15\u5206\u949f"},{"key":"00:30:00","name":"\u63d0\u524d30\u5206\u949f"},{"key":"01:00:00","name":"\u63d0\u524d1\u5c0f\u65f6"},{"key":"02:00:00","name":"\u63d0\u524d2\u5c0f\u65f6"},{"key":"24:00:00","name":"\u63d0\u524d1\u5929"},{"key":"48:00:00","name":"\u63d0\u524d2\u5929"},{"key":"168:00:00","name":"\u63d0\u524d7\u5929"}]},{"key":"Cases[last_engineer]","name":"\u5de5\u7a0b\u5e08","value":[{"key":1017,"name":"\u8f66\u660e\u98de (\u5168\u4f53)"},{"key":5085,"name":"\u970d\u4e1c\u9633 (\u5168\u4f53)"},{"key":1001,"name":"\u5218\u4eba\u8bda (\u5168\u4f53)"},{"key":5248,"name":"\u6587\u4f73\u9f99 (\u5168\u4f53)"},{"key":1015,"name":"\u5434\u660a (\u5168\u4f53)"},{"key":1022,"name":"\u5f90\u7855 (\u5168\u4f53)"},{"key":5296,"name":"\u8d75\u5b87 (\u5168\u4f53)"},{"key":1023,"name":"\u5468\u5b50\u5065 (\u5168\u4f53)"}]}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-04 11:02:44') RETURNING "id" |