| 20:19:42.545 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 20:19:42.545 | trace | yii\base\Module::getModule | Loading module: debug |
| 20:19:42.546 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 20:19:42.546 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 20:19:42.546 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 20:19:42.547 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.547 | info | time tracing start | 1780921182547260928 |
| 20:19:42.547 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 20:19:42.547 | trace | yii\web\Application::handleRequest | Route requested: 'v2/task/of-client' |
| 20:19:42.547 | trace | yii\base\Module::getModule | Loading module: v2 |
| 20:19:42.548 | info | yii\web\Session::open | Session started |
| 20:19:42.548 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 20:19:42.549 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC' |
| 20:19:42.550 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.550 | 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 = 'vw_user_login'
and d.nspname = 'global'
ORDER BY
a.attnum; |
| 20:19:42.557 | 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='vw_user_login'
and ns.nspname='global'
order by
fns.nspname, fc.relname, a.attnum |
| 20:19:42.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:19:42.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 20:19:42.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.578 | 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; |
| 20:19:42.585 | 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 |
| 20:19:42.615 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:19:42.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 20:19:42.616 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 20:19:42.617 | trace | yii\base\Controller::runAction | Route to run: v2/task/of-client |
| 20:19:42.617 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\TaskController::actionOfClient() |
| 20:19:42.617 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3082') AND ("deleted"=FALSE) |
| 20:19:42.618 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.618 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:19:42.618 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.618 | 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_task_groups'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 20:19:42.623 | 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_task_groups'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 20:19:42.648 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:19:42.649 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 20:19:42.650 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT s.*, COALESCE(s.weight, 0) AS weight, target_completed_at - now() as remain FROM "a57be577deb434"."tbl_task_groups" "s" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_task_group_user_relationships" "turs" ON s.id = turs.task_group_id LEFT JOIN "a57be577deb434"."tbl_task_group_head_of_relationships" "thrs" ON s.id = thrs.task_group_id LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.head_of WHERE (true) AND ("s"."client_id"=3082) GROUP BY "s"."id" ORDER BY "s"."created_at" DESC) "c" |
| 20:19:42.655 | info | yii\db\Command::query | SELECT s.*, COALESCE(s.weight, 0) AS weight, target_completed_at - now() as remain FROM "a57be577deb434"."tbl_task_groups" "s" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_task_group_user_relationships" "turs" ON s.id = turs.task_group_id LEFT JOIN "a57be577deb434"."tbl_task_group_head_of_relationships" "thrs" ON s.id = thrs.task_group_id LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.head_of WHERE (true) AND ("s"."client_id"=3082) GROUP BY "s"."id" ORDER BY "s"."created_at" DESC LIMIT 10 |
| 20:19:42.659 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3082 |
| 20:19:42.663 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1001) AND ("task_group_id"=205) |
| 20:19:42.664 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 20:19:42.664 | 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"=1001) |
| 20:19:42.664 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=102) AND ("object_id"=205) GROUP BY "object_id" |
| 20:19:42.706 | info | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=102) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id"=205) GROUP BY "object_id" |
| 20:19:42.728 | info | yii\db\Command::query | SELECT "remain_task"."task_group_id", count(*) as remain FROM "a57be577deb434"."tbl_tasks" "remain_task" WHERE ("status" != 1) AND (NOT EXISTS (SELECT 1 FROM a57be577deb434.tbl_tasks child_task WHERE child_task.parent_id = remain_task.id)) AND ("task_group_id"=205) GROUP BY "remain_task"."task_group_id" |
| 20:19:42.729 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 20:19:42.729 | 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"=1001) |
| 20:19:42.730 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4 |
| 20:19:42.730 | info | yii\db\Command::query | SELECT "user_id", "task_group_id" FROM "a57be577deb434"."tbl_task_group_user_relationships" "c" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON "u"."id" = "c"."user_id" WHERE "c"."task_group_id"=205 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 |
| 20:19:42.731 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.731 | 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_task_group_user_relationships'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 20:19:42.735 | 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_task_group_user_relationships'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 20:19:42.751 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:19:42.751 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 20:19:42.751 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (5250, 5016, 5085, 5332) |
| 20:19:42.752 | 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" IN (5085, 5250, 5016, 5332)) |
| 20:19:42.753 | info | yii\db\Command::query | SELECT "user_id", "task_group_id" FROM "a57be577deb434"."tbl_task_group_head_of_relationships" "c" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON "u"."id" = "c"."user_id" WHERE "c"."task_group_id"=205 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 |
| 20:19:42.753 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.753 | 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_task_group_head_of_relationships'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 20:19:42.757 | 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_task_group_head_of_relationships'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 20:19:42.774 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:19:42.775 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 20:19:42.775 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=5016 |
| 20:19:42.775 | 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"=5016) |
| 20:19:42.776 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_task_group_user_relationships" WHERE "task_group_id"=205 |
| 20:19:42.776 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (5085, 5250, 5332, 5016) |
| 20:19:42.777 | 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" IN (5085, 5250, 5016, 5332)) |
| 20:19:42.777 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE "task_group_id"=205 |
| 20:19:42.777 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=5016 |
| 20:19:42.778 | 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"=5016) |
| 20:19:42.778 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_tasks" WHERE (parent_id is null) AND ("task_group_id"=205) |
| 20:19:42.779 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.781 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateTask |
| 20:19:42.781 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 20:19:42.781 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 20:19:42.781 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
| 20:19:42.781 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: ProjectManager |
| 20:19:42.781 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
| 20:19:42.781 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
| 20:19:42.781 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.783 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.789 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: deleteTask |
| 20:19:42.789 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 20:19:42.789 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 20:19:42.789 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
| 20:19:42.789 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: ProjectManager |
| 20:19:42.789 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
| 20:19:42.789 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
| 20:19:42.790 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:19:42.791 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:19:42.791 | 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", "duration") VALUES (200, 'a57be577deb434', 1001, 7, 176, 'v2/task/of-client', '{"id":"3082","page":"1","pagesize":"10","posttime":"1780921182","access_token":"lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC","device_type":"7","version_code":"176","token":"63ea535a00b1797708450d779ac6735e"}', '{"code":200,"data":{"list":[{"id":205,"title":"\u5443\u5443\u5443\u5443\u5443","description":"","client_id":3082,"head_of":1001,"status":0,"target_completed_at":"","completed_at":"","created_by":1001,"created_at":"2026-06-08 20:02:25","updated_at":"2026-06-08 20:05:28","situation":"www","start_at":"","project_id":null,"complete_description":null,"progress":0,"weight":0,"remain":null,"client":{"id":3082,"key":3082,"name":"\u5317\u4eac\u6c49\u738b\u9e4f\u82af\u79d1\u6280\u6709\u9650\u516c\u53f8","sales_rep":1013},"isHeadOf":null,"headOf":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"commentCount":null,"unreadComments":null,"remainCount":null,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"taskGroupHeadOfRelationships":[{"user_id":5016,"task_group_id":205,"user":{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"}}}],"project":null,"taskGroupUsers":[{"id":5085,"key":5085,"name":"\u970d\u4e1c\u9633","sex":"M","avatar":{"id":51,"user_id":5085,"name":"\/files\/cdn\/a57be577deb434\/avatar\/7423f9b0-25ce-3351-871b-15d81c0dcf0f.jpg"}},{"id":5250,"key":5250,"name":"\u8463\u8363","sex":"M","avatar":{"id":157,"user_id":5250,"name":"\/files\/cdn\/a57be577deb434\/avatar\/10f9a0d9-7ea7-3910-9465-6ece76a0dae4.png"}},{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"}},{"id":5332,"key":5332,"name":"\u970d\u536b\u8d85","sex":"M","avatar":{"id":148,"user_id":5332,"name":"\/files\/cdn\/a57be577deb434\/avatar\/3a3eda91-ddc9-3633-8071-70a4c3d7180c.png"}}],"taskGroupHeads":[{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"}}],"tasks":[],"remain_time":"","target_completed_at_display":"","unread":0,"can_update":true,"can_delete":true,"can_complete":true,"can_stop":true,"can_recover":false,"bgcolor":"#FF7300","status_display":"\u8fdb\u884c\u4e2d","overdue_task":0}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"125.78.86.146","ua":"jinchangxiao\/1.0.40 (emulator emulator; HarmonyOS 6.1.0)"}', FALSE, '2026-06-08 20:19:42', 243898112) RETURNING "id" |