Log Messages

总计120条数据
TimeLevelCategoryMessage
 
21:11:11.565traceyii\base\Application::bootstrapBootstrap with yii\log\Dispatcher
21:11:11.565traceyii\base\Module::getModuleLoading module: debug
21:11:11.565traceyii\base\Application::bootstrapBootstrap with yii\debug\Module::bootstrap()
21:11:11.566traceyii\redis\Connection::openOpening redis DB connection: redis.server.local:6379, database=1
21:11:11.566traceyii\redis\Connection::executeCommandExecuting Redis Command: SELECT
21:11:11.566traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.566traceyii\base\Module::getModuleLoading module: gii
21:11:11.566traceyii\base\Application::bootstrapBootstrap with yii\gii\Module::bootstrap()
21:11:11.566traceyii\web\UrlManager::parseRequestNo matching URL rules. Using default URL parsing logic.
21:11:11.566traceyii\web\Application::handleRequestRoute requested: 'v2/punch-repair/save-edit'
21:11:11.566traceyii\base\Module::getModuleLoading module: v2
21:11:11.566infoyii\web\Session::openSession started
21:11:11.567infoyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
21:11:11.569infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd'
21:11:11.572traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.572traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.572traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.572traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.572infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
21:11:11.574traceyii\base\Controller::runActionRoute to run: v2/punch-repair/save-edit
21:11:11.574traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.575traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: Admin
21:11:11.575traceyii\base\InlineAction::runWithParamsRunning action: app\modules\v2\controllers\PunchRepairController::actionSaveEdit()
21:11:11.575infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE "id"='232'
21:11:11.576traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.576traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.576traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.576traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.577traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'attachmentFiles' in 'app\models\PunchRepairs'.
21:11:11.577traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'id' in 'app\models\PunchRepairs'.
21:11:11.577infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5360)
21:11:11.578infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1011)
21:11:11.579traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.579infoyii\db\Command::querySELECT 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.586infoyii\db\Command::queryselect 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.595traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.595traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
21:11:11.595infoyii\db\Command::executeINSERT 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.604infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5360)
21:11:11.604infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1011)
21:11:11.604infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_punch_repairs" SET "repair_type"=2, "repair_time"='2025-02-28 23:00:00' WHERE "id"=232
21:11:11.606traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.606infoyii\db\Command::querySELECT 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.611infoyii\db\Command::queryselect 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.619traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.619traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
21:11:11.619infoyii\db\Command::executeINSERT 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.626infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=201) AND ("object_id"=232)
21:11:11.627infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=201) AND ("object_id"=232)
21:11:11.628infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch_repair_verify_rels" WHERE "punch_repair_id"=232 ORDER BY "id"
21:11:11.629traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.629traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.629infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch_repair_carbon_copy_rels" WHERE "punch_repair_id"=232
21:11:11.630infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_punch_repair_carbon_copy_rels" WHERE "punch_repair_id"=232
21:11:11.630infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_punch_repair_verify_rels" WHERE "punch_repair_id"=232
21:11:11.631infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_punch_repair_verify_rels" ("punch_repair_id", "user_id", "status") VALUES (232, 1011, 0)
21:11:11.638infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_punch_repair_cancel_verify_rels" WHERE "punch_repair_id"=232
21:11:11.639infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch_repair_verify_rels" WHERE ("punch_repair_id"=232) AND ("status"=0) ORDER BY "id"
21:11:11.639infoyii\db\Command::executeUPDATE "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.640infoyii\db\Command::executeINSERT 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.641infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE "id"=232
21:11:11.642infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch_repair_carbon_copy_rels" WHERE "punch_repair_id"=232
21:11:11.642traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.642traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.642infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE "id"=232
21:11:11.643infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000)
21:11:11.644infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1000, '38', 232, '曹永生 重置了这个补卡申请', TRUE, '忘记打卡') RETURNING "id"
21:11:11.648infoyii\db\Command::executeINSERT 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.649infoyii\db\Command::querySELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 1000) AND (channel_id IS NOT NULL)
21:11:11.649infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5360
21:11:11.650infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch_repair_verify_rels" WHERE ("status"=0) AND ("punch_repair_id"=232) ORDER BY "id"
21:11:11.650infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE "id"=232
21:11:11.650infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000)
21:11:11.651infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1000, '38', 232, '曹永生 有一个补卡申请需要审批', TRUE, '忘记打卡') RETURNING "id"
21:11:11.652infoyii\db\Command::executeINSERT 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.653traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.653infoyii\db\Command::querySELECT 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.655infoyii\db\Command::queryselect 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.664traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.664traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
21:11:11.665infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (232, '38', 170284, 1011)
21:11:11.670infoyii\db\Command::querySELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1011) AND ("id" != 1000) AND (channel_id IS NOT NULL)
21:11:11.671infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
21:11:11.677traceyii\redis\Connection::executeCommandExecuting Redis Command: INCR
21:11:11.677traceyii\redis\Connection::executeCommandExecuting Redis Command: HSET
21:11:11.677traceyii\redis\Connection::executeCommandExecuting Redis Command: LPUSH
21:11:11.678traceyii\redis\Connection::executeCommandExecuting Redis Command: INCR
21:11:11.678traceyii\redis\Connection::executeCommandExecuting Redis Command: HSET
21:11:11.678traceyii\redis\Connection::executeCommandExecuting Redis Command: LPUSH
21:11:11.678infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_punch" WHERE ("day_at"='2025-02-28') AND ("user_id"=5360)
21:11:11.680traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.680infoyii\db\Command::querySELECT 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.687infoyii\db\Command::queryselect 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.697traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.697traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
21:11:11.697infoyii\db\Command::querySELECT * 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.698infoyii\db\Command::querySELECT * 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.698infoyii\db\Command::querySELECT * 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.699infoyii\db\Command::querySELECT * 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.699infoyii\db\Command::querySELECT * 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.700infoyii\db\Command::querySELECT * 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.700infoyii\db\Command::querySELECT * 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.701infoyii\db\Command::querySELECT * 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.701infoyii\db\Command::querySELECT 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.702infoyii\db\Command::querySELECT 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.703infoyii\db\Command::querySELECT *, 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.703infoyii\db\Command::querySELECT 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.704infoyii\db\Command::querySELECT 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.704infoyii\db\Command::querySELECT 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.704infoyii\db\Command::querySELECT 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.705infoyii\db\Command::querySELECT 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.705infoyii\db\Command::querySELECT 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.705infoyii\db\Command::querySELECT 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.706infoyii\db\Command::querySELECT * 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.706infoyii\db\Command::querySELECT * 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.707infoyii\db\Command::executeUPDATE "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.708infoyii\db\Command::executeINSERT 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.709traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
21:11:11.709traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
21:11:11.709infoyii\db\Command::queryINSERT 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"