| 20:48:42.662 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 20:48:42.662 | trace | yii\base\Module::getModule | Loading module: debug |
| 20:48:42.663 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 20:48:42.664 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 20:48:42.664 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 20:48:42.664 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.665 | info | time tracing start | 1782132522665056000 |
| 20:48:42.665 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 20:48:42.665 | trace | yii\web\Application::handleRequest | Route requested: 'v2/punch-leave/cancel' |
| 20:48:42.665 | trace | yii\base\Module::getModule | Loading module: v2 |
| 20:48:42.666 | info | yii\web\Session::open | Session started |
| 20:48:42.667 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 20:48:42.668 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC' |
| 20:48:42.669 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.670 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.670 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.671 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.671 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 20:48:42.672 | trace | yii\base\Controller::runAction | Route to run: v2/punch-leave/cancel |
| 20:48:42.672 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.674 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 20:48:42.674 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\PunchLeaveController::actionCancel() |
| 20:48:42.674 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_leaves" WHERE "id"='165' |
| 20:48:42.675 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.675 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.675 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.676 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.677 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.678 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.678 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_punch_leave_verify_rels" SET "status"=3 WHERE ("punch_leave_id"=165) AND ("status"=0) |
| 20:48:42.678 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_punch_leave_cancel_verify_rels" WHERE "punch_leave_id"=165 |
| 20:48:42.679 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.679 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.679 | 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\PunchLeaves', 165, 'a:0:{}', '', 1000, '120.33.105.174') |
| 20:48:42.682 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_leave_verify_rels" WHERE "punch_leave_id"=165 ORDER BY "id" |
| 20:48:42.683 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.683 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.683 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_punch_leave_cancel_verify_rels" ("punch_leave_id", "user_id", "status") VALUES (165, 1001, 0) |
| 20:48:42.684 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_leave_cancel_verify_rels" WHERE ("punch_leave_id"=165) AND ("status"=0) ORDER BY "id" |
| 20:48:42.685 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_punch_leaves" SET "status"=5, "next_cancel_verify_user"=1001, "updated_at"='now()' WHERE "id"=165 |
| 20:48:42.686 | 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\PunchLeaves', 165, 'a:2:{s:6:"status";i:5;s:23:"next_cancel_verify_user";i:1001;}', '', 1000, '120.33.105.174') |
| 20:48:42.688 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1013 |
| 20:48:42.688 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_leave_cancel_verify_rels" WHERE ("status"=0) AND ("punch_leave_id"=165) ORDER BY "id" |
| 20:48:42.689 | 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\PunchLeaves', 165, 'a:0:{}', '', 1000, '120.33.105.174') |
| 20:48:42.690 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1013 |
| 20:48:42.691 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.691 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.691 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_leaves" WHERE "id"=165 |
| 20:48:42.693 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1013) |
| 20:48:42.693 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1013, '40', 165, '翁家成 有一个请假申请需要审批', TRUE, '病假') RETURNING "id" |
| 20:48:42.695 | 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', 220945, 'a:11:{s:2:"id";i:220945;s:9:"object_id";i:165;s:11:"object_type";s:2:"40";s:6:"parent";N;s:11:"description";s:43:"翁家成 有一个请假申请需要审批";s:10:"created_by";i:1013;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:6:"病假";}', '', 1000, '120.33.105.174') |
| 20:48:42.697 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.697 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.697 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (165, '40', 220945, 1001) |
| 20:48:42.698 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1001) AND ("id" != 1013) AND (channel_id IS NOT NULL) |
| 20:48:42.699 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1013 |
| 20:48:42.700 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 20:48:42.700 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 20:48:42.701 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 20:48:42.701 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 20:48:42.701 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 20:48:42.701 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 20:48:42.701 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 20:48:42.702 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.702 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.702 | 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 (15, 'status', 165, 40, 1000, 'now()', '["\u66f9\u6c38\u751f"]', '[]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u64a4\u9500\u4e86","d3":"\u8bf7\u5047\u7533\u8bf7","d4":""}') |
| 20:48:42.704 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch" WHERE ("day_at"='2026-03-17') AND ("user_id"=1013) |
| 20:48:42.705 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.706 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.706 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=1013) AND ("status" IN (1, 2, 5)) AND ("day_at"='2026-03-17') AND ("away_type"=1) ORDER BY "away_time" DESC |
| 20:48:42.707 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=1013) AND ("day_at"='2026-03-17') AND ("status" IN (1, 2, 5)) AND ("away_type"=2) ORDER BY "away_time" DESC |
| 20:48:42.708 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=1013) AND ("day_at"='2026-03-17') AND ("status" IN (2, 5)) AND ("away_type"=1) ORDER BY "away_time" DESC |
| 20:48:42.708 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=1013) AND ("day_at"='2026-03-17') AND ("status" IN (2, 5)) AND ("away_type"=2) ORDER BY "away_time" DESC |
| 20:48:42.709 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE ("created_by"=1013) AND ("day_at"='2026-03-17') AND ("status" IN (2, 5)) AND ("repair_type"=1) ORDER BY "verify_at" DESC |
| 20:48:42.710 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE ("created_by"=1013) AND ("day_at"='2026-03-17') AND ("status" IN (2, 5)) AND ("repair_type"=2) ORDER BY "verify_at" DESC |
| 20:48:42.710 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_leaves" WHERE ("created_by"=1013) AND ((("leave_start" <= '2026-03-17') AND ("leave_end" >= '2026-03-17'))) AND ("status" IN (2, 5)) ORDER BY "verify_at" DESC |
| 20:48:42.711 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_travels" WHERE ("created_by"=1013) AND ((("travel_start" < '2026-03-17') AND ("travel_end" > '2026-03-17')) OR (("travel_start"='2026-03-17') AND ("travel_start_type"=1)) OR (("travel_start" != '2026-03-17') AND ("travel_end"='2026-03-17'))) AND ("status" IN (2, 5))) |
| 20:48:42.713 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_travels" WHERE ("created_by"=1013) AND ((("travel_start" < '2026-03-17') AND ("travel_end" > '2026-03-17')) OR (("travel_end"='2026-03-17') AND ("travel_end_type"=2)) OR (("travel_start"='2026-03-17') AND ("travel_start_type"=2)) OR (("travel_start"='2026-03-17') AND ("travel_start_type"=1) AND ("travel_end" != '2026-03-17'))) AND ("status" IN (2, 5))) |
| 20:48:42.713 | info | yii\db\Command::query | SELECT *, overtime_end - overtime_start AS hours_spent FROM "a57be577deb434"."tbl_punch_overtimes" WHERE ("created_by"=1013) AND (("overtime_start" >= '2026-03-17 00:00:00') AND ("overtime_start" <= '2026-03-17 23:59:59')) AND ("status" IN (2, 5)) ORDER BY "verify_at" DESC |
| 20:48:42.714 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_overtimes" WHERE ("created_by"=1013) AND (("overtime_start" >= '2026-03-17 00:00:00') AND ("overtime_start" <= '2026-03-17 23:59:59')) AND ("status"=1)) |
| 20:48:42.715 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=1013) AND ("away_type"=1) AND ("day_at"='2026-03-17') AND ("status"=1)) |
| 20:48:42.715 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_aways" WHERE ("created_by"=1013) AND ("away_type"=2) AND ("day_at"='2026-03-17') AND ("status"=1)) |
| 20:48:42.716 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE ("created_by"=1013) AND ("day_at"='2026-03-17') AND ("status"=1) AND ("repair_type"=1)) |
| 20:48:42.716 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_repairs" WHERE ("created_by"=1013) AND ("day_at"='2026-03-17') AND ("status"=1) AND ("repair_type"=2)) |
| 20:48:42.717 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_leaves" WHERE ("created_by"=1013) AND ((("leave_start" < '2026-03-17') AND ("leave_end" > '2026-03-17')) OR (("leave_start"='2026-03-17') AND ("leave_start_type"=1)) OR ("leave_end"='2026-03-17') OR (("leave_start" <= '2026-03-17') AND ("leave_end" >= '2026-03-17') AND ("leave_start_time" IS NOT NULL))) AND ("status"=1)) |
| 20:48:42.717 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_punch_leaves" WHERE ("created_by"=1013) AND ((("leave_start" < '2026-03-17') AND ("leave_end" > '2026-03-17')) OR (("leave_end"='2026-03-17') AND ("leave_end_type"=2)) OR (("leave_start"='2026-03-17') AND ("leave_start_type"=2)) OR (("leave_start"='2026-03-17') AND ("leave_start_type"=1) AND ("leave_end" != '2026-03-17')) OR (("leave_start" <= '2026-03-17') AND ("leave_end" >= '2026-03-17') AND ("leave_start_time" IS NOT NULL))) AND ("status"=1)) |
| 20:48:42.718 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_travels" WHERE ("created_by"=1013) AND ((("travel_start" < '2026-03-17') AND ("travel_end" > '2026-03-17')) OR (("travel_start"='2026-03-17') AND ("travel_start_type"=1)) OR ("travel_end"='2026-03-17')) AND ("status"=1) ORDER BY "verify_at" DESC |
| 20:48:42.719 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_punch_travels" WHERE ("created_by"=1013) AND ((("travel_start" < '2026-03-17') AND ("travel_end" > '2026-03-17')) OR (("travel_end"='2026-03-17') AND ("travel_end_type"=2)) OR (("travel_start"='2026-03-17') AND ("travel_start_type"=2)) OR (("travel_start"='2026-03-17') AND ("travel_start_type"=1) AND ("travel_end" != '2026-03-17'))) AND ("status"=1) ORDER BY "verify_at" DESC |
| 20:48:42.719 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_punch" SET "work_value"=0, "away_value"=0, "travel_value"=0, "absent_value"=0 WHERE ("day_at"='2026-03-17') AND ("user_id"=1013) |
| 20:48:42.721 | 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', 62732, 'a:0:{}', '', 1000, '120.33.105.174') |
| 20:48:42.723 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:48:42.723 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:48:42.723 | 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', 1000, 0, 273, 'v2/punch-leave/cancel', '{"access_token":"R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC","description":"\u6d4b\u8bd5\u6d4b\u8bd5\u6d4b\u8bd5\u6d4b\u8bd5","device_type":"0","version_code":"273","id":"165","token":"ee8c8700bd154814c84c9d65add372ad","posttime":"1782132522"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u8bf7\u5047\u7533\u8bf7\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"ip":"120.33.105.174","ua":"jinchangxiao\/2.3.173 (XiaomiMi 10; Android 13)"}', FALSE, '2026-06-22 20:48:42', 58496000) RETURNING "id" |