21:11:11.565 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
21:11:11.565 | trace | yii\base\Module::getModule | Loading module: debug |
21:11:11.565 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
21:11:11.566 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
21:11:11.566 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
21:11:11.566 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.566 | trace | yii\base\Module::getModule | Loading module: gii |
21:11:11.566 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
21:11:11.566 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
21:11:11.566 | trace | yii\web\Application::handleRequest | Route requested: 'v2/punch-repair/save-edit' |
21:11:11.566 | trace | yii\base\Module::getModule | Loading module: v2 |
21:11:11.566 | info | yii\web\Session::open | Session started |
21:11:11.567 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
21:11:11.569 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd' |
21:11:11.572 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.572 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.572 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.572 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.572 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
21:11:11.574 | trace | yii\base\Controller::runAction | Route to run: v2/punch-repair/save-edit |
21:11:11.574 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.575 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
21:11:11.575 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\PunchRepairController::actionSaveEdit() |
21:11:11.575 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE "id"='232' |
21:11:11.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.577 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'attachmentFiles' in 'app\models\PunchRepairs'. |
21:11:11.577 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\PunchRepairs'. |
21:11:11.577 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5360) |
21:11:11.578 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1011) |
21:11:11.579 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.579 | 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_object_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
21:11:11.586 | 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_object_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
21:11:11.595 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.595 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
21:11:11.595 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'repair_time', 232, 38, 1000, 'now()', '["2025-02-28 23:00"]', '["2025-02-28 18:00"]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u8865\u5361\u65f6\u95f4","d4":["2025-02-28 18:00 <b>\u53d8\u4e3a<\/b> 2025-02-28 23:00"]}') |
21:11:11.604 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5360) |
21:11:11.604 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1011) |
21:11:11.604 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_punch_repairs" SET "repair_type"=2, "repair_time"='2025-02-28 23:00:00' WHERE "id"=232 |
21:11:11.606 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.606 | 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_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
21:11:11.611 | 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_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
21:11:11.619 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.619 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
21:11:11.619 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\PunchRepairs', 232, 'a:1:{s:11:"repair_time";s:19:"2025-02-28 23:00:00";}', '', 1000, '117.176.186.63') |
21:11:11.626 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=201) AND ("object_id"=232) |
21:11:11.627 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=201) AND ("object_id"=232) |
21:11:11.628 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repair_verify_rels" WHERE "punch_repair_id"=232 ORDER BY "id" |
21:11:11.629 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.629 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.629 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repair_carbon_copy_rels" WHERE "punch_repair_id"=232 |
21:11:11.630 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_punch_repair_carbon_copy_rels" WHERE "punch_repair_id"=232 |
21:11:11.630 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_punch_repair_verify_rels" WHERE "punch_repair_id"=232 |
21:11:11.631 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_punch_repair_verify_rels" ("punch_repair_id", "user_id", "status") VALUES (232, 1011, 0) |
21:11:11.638 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_punch_repair_cancel_verify_rels" WHERE "punch_repair_id"=232 |
21:11:11.639 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repair_verify_rels" WHERE ("punch_repair_id"=232) AND ("status"=0) ORDER BY "id" |
21:11:11.639 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_punch_repairs" SET "status"=1, "next_verify_user"=1011, "verify_at"=NULL, "updated_at"='now()', "cancel_description"='' WHERE "id"=232 |
21:11:11.640 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\PunchRepairs', 232, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:29:"2025-03-03 10:16:24.236197+08";}', '', 1000, '117.176.186.63') |
21:11:11.641 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE "id"=232 |
21:11:11.642 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repair_carbon_copy_rels" WHERE "punch_repair_id"=232 |
21:11:11.642 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.642 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.642 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE "id"=232 |
21:11:11.643 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
21:11:11.644 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1000, '38', 232, '曹永生 重置了这个补卡申请', TRUE, '忘记打卡') RETURNING "id" |
21:11:11.648 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Comments', 170283, 'a:11:{s:2:"id";i:170283;s:9:"object_id";i:232;s:11:"object_type";s:2:"38";s:6:"parent";N;s:11:"description";s:37:"曹永生 重置了这个补卡申请";s:10:"created_by";i:1000;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:12:"忘记打卡";}', '', 1000, '117.176.186.63') |
21:11:11.649 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 1000) AND (channel_id IS NOT NULL) |
21:11:11.649 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5360 |
21:11:11.650 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repair_verify_rels" WHERE ("status"=0) AND ("punch_repair_id"=232) ORDER BY "id" |
21:11:11.650 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE "id"=232 |
21:11:11.650 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
21:11:11.651 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1000, '38', 232, '曹永生 有一个补卡申请需要审批', TRUE, '忘记打卡') RETURNING "id" |
21:11:11.652 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Comments', 170284, 'a:11:{s:2:"id";i:170284;s:9:"object_id";i:232;s:11:"object_type";s:2:"38";s:6:"parent";N;s:11:"description";s:43:"曹永生 有一个补卡申请需要审批";s:10:"created_by";i:1000;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:12:"忘记打卡";}', '', 1000, '117.176.186.63') |
21:11:11.653 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.653 | 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_unread_comments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
21:11:11.655 | 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_unread_comments'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
21:11:11.664 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.664 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
21:11:11.665 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (232, '38', 170284, 1011) |
21:11:11.670 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1011) AND ("id" != 1000) AND (channel_id IS NOT NULL) |
21:11:11.671 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
21:11:11.677 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
21:11:11.677 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
21:11:11.677 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
21:11:11.678 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
21:11:11.678 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
21:11:11.678 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
21:11:11.678 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch" WHERE ("day_at"='2025-02-28') AND ("user_id"=5360) |
21:11:11.680 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.680 | 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_punch'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
21:11:11.687 | 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_punch'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
21:11:11.697 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.697 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
21:11:11.697 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=5360) AND ("status" IN (1, 2, 5)) AND ("day_at"='2025-02-28') AND ("away_type"=1) ORDER BY "away_time" DESC |
21:11:11.698 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=5360) AND ("day_at"='2025-02-28') AND ("status" IN (1, 2, 5)) AND ("away_type"=2) ORDER BY "away_time" DESC |
21:11:11.698 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=5360) AND ("day_at"='2025-02-28') AND ("status" IN (2, 5)) AND ("away_type"=1) ORDER BY "away_time" DESC |
21:11:11.699 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=5360) AND ("day_at"='2025-02-28') AND ("status" IN (2, 5)) AND ("away_type"=2) ORDER BY "away_time" DESC |
21:11:11.699 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE ("created_by"=5360) AND ("day_at"='2025-02-28') AND ("status" IN (2, 5)) AND ("repair_type"=1) ORDER BY "verify_at" DESC |
21:11:11.700 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE ("created_by"=5360) AND ("day_at"='2025-02-28') AND ("status" IN (2, 5)) AND ("repair_type"=2) ORDER BY "verify_at" DESC |
21:11:11.700 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_leaves" WHERE ("created_by"=5360) AND ((("leave_start" < '2025-02-28') AND ("leave_end" > '2025-02-28')) OR (("leave_start"='2025-02-28') AND ("leave_start_type"=1)) OR (("leave_start" != '2025-02-28') AND ("leave_end"='2025-02-28'))) AND ("status" IN (2, 5)) ORDER BY "verify_at" DESC |
21:11:11.701 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_leaves" WHERE ("created_by"=5360) AND ((("leave_start" < '2025-02-28') AND ("leave_end" > '2025-02-28')) OR (("leave_end"='2025-02-28') AND ("leave_end_type"=2)) OR (("leave_start"='2025-02-28') AND ("leave_start_type"=2)) OR (("leave_start"='2025-02-28') AND ("leave_start_type"=1) AND ("leave_end" != '2025-02-28'))) AND ("status" IN (2, 5)) ORDER BY "verify_at" DESC |
21:11:11.701 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_travels" WHERE ("created_by"=5360) AND ((("travel_start" < '2025-02-28') AND ("travel_end" > '2025-02-28')) OR (("travel_start"='2025-02-28') AND ("travel_start_type"=1)) OR (("travel_start" != '2025-02-28') AND ("travel_end"='2025-02-28'))) AND ("status" IN (2, 5))) |
21:11:11.702 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_travels" WHERE ("created_by"=5360) AND ((("travel_start" < '2025-02-28') AND ("travel_end" > '2025-02-28')) OR (("travel_end"='2025-02-28') AND ("travel_end_type"=2)) OR (("travel_start"='2025-02-28') AND ("travel_start_type"=2)) OR (("travel_start"='2025-02-28') AND ("travel_start_type"=1) AND ("travel_end" != '2025-02-28'))) AND ("status" IN (2, 5))) |
21:11:11.703 | info | yii\db\Command::query | SELECT *, overtime_end - overtime_start AS hours_spent FROM "a57be577deb434"."tbl_punch_overtimes" WHERE ("created_by"=5360) AND (("overtime_start" >= '2025-02-28 00:00:00') AND ("overtime_start" <= '2025-02-28 23:59:59')) AND ("status" IN (2, 5)) ORDER BY "verify_at" DESC |
21:11:11.703 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_overtimes" WHERE ("created_by"=5360) AND (("overtime_start" >= '2025-02-28 00:00:00') AND ("overtime_start" <= '2025-02-28 23:59:59')) AND ("status"=1)) |
21:11:11.704 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=5360) AND ("away_type"=1) AND ("day_at"='2025-02-28') AND ("status"=1)) |
21:11:11.704 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=5360) AND ("away_type"=2) AND ("day_at"='2025-02-28') AND ("status"=1)) |
21:11:11.704 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE ("created_by"=5360) AND ("day_at"='2025-02-28') AND ("status"=1) AND ("repair_type"=1)) |
21:11:11.705 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE ("created_by"=5360) AND ("day_at"='2025-02-28') AND ("status"=1) AND ("repair_type"=2)) |
21:11:11.705 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_leaves" WHERE ("created_by"=5360) AND ((("leave_start" < '2025-02-28') AND ("leave_end" > '2025-02-28')) OR (("leave_start"='2025-02-28') AND ("leave_start_type"=1)) OR ("leave_end"='2025-02-28')) AND ("status"=1)) |
21:11:11.705 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_leaves" WHERE ("created_by"=5360) AND ((("leave_start" < '2025-02-28') AND ("leave_end" > '2025-02-28')) OR (("leave_end"='2025-02-28') AND ("leave_end_type"=2)) OR (("leave_start"='2025-02-28') AND ("leave_start_type"=2)) OR (("leave_start"='2025-02-28') AND ("leave_start_type"=1) AND ("leave_end" != '2025-02-28'))) AND ("status"=1)) |
21:11:11.706 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_travels" WHERE ("created_by"=5360) AND ((("travel_start" < '2025-02-28') AND ("travel_end" > '2025-02-28')) OR (("travel_start"='2025-02-28') AND ("travel_start_type"=1)) OR ("travel_end"='2025-02-28')) AND ("status"=1) ORDER BY "verify_at" DESC |
21:11:11.706 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_travels" WHERE ("created_by"=5360) AND ((("travel_start" < '2025-02-28') AND ("travel_end" > '2025-02-28')) OR (("travel_end"='2025-02-28') AND ("travel_end_type"=2)) OR (("travel_start"='2025-02-28') AND ("travel_start_type"=2)) OR (("travel_start"='2025-02-28') AND ("travel_start_type"=1) AND ("travel_end" != '2025-02-28'))) AND ("status"=1) ORDER BY "verify_at" DESC |
21:11:11.707 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_punch" SET "out_at"=NULL, "out_status"=NULL, "out_is_absent"=TRUE, "out_is_repair"=FALSE, "out_is_repair_status"=1, "work_value"=0.5, "in_value"=0, "out_value"=NULL, "away_value"=0, "leave_value"=0, "travel_value"=0, "absent_value"=0.5 WHERE ("day_at"='2025-02-28') AND ("user_id"=5360) |
21:11:11.708 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Punch', 57246, 'a:3:{s:6:"out_at";s:22:"2025-02-28 18:00:00+08";s:10:"work_value";d:0.5;s:12:"absent_value";d:0.5;}', '', 1000, '117.176.186.63') |
21:11:11.709 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
21:11:11.709 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
21:11:11.709 | 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/punch-repair/save-edit', '{"PunchRepairs":{"attachmentFiles":"","day_at":"2025-02-28","form_punchRepairCarbonCopyRels":"","form_punchRepairVerifyRels":["1011"],"id":"232","repair_time":"2025-02-28 23:00:00+0800","repair_type":"2","title":"\u5fd8\u8bb0\u6253\u5361"},"access_token":"Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd","device_type":"2","posttime":"1751893888","token":"b07c15fae5a56f940d7c656886971a1b","version_code":"1141"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u8865\u5361\u7533\u8bf7\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-07-07 21:11:11') RETURNING "id" |