20:26:37.109 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
20:26:37.109 | trace | yii\base\Module::getModule | Loading module: debug |
20:26:37.110 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
20:26:37.110 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
20:26:37.110 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
20:26:37.110 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:26:37.110 | trace | yii\base\Module::getModule | Loading module: gii |
20:26:37.110 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
20:26:37.110 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
20:26:37.110 | trace | yii\web\Application::handleRequest | Route requested: 'v2/schedule/list' |
20:26:37.110 | trace | yii\base\Module::getModule | Loading module: v2 |
20:26:37.111 | info | yii\web\Session::open | Session started |
20:26:37.111 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
20:26:37.113 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
20:26:37.116 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:26:37.116 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
20:26:37.117 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:26:37.117 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
20:26:37.117 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
20:26:37.118 | trace | yii\base\Controller::runAction | Route to run: v2/schedule/list |
20:26:37.118 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:26:37.119 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
20:26:37.119 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ScheduleController::actionList() |
20:26:37.119 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:26:37.120 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
20:26:37.121 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:26:37.122 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:26:37.122 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_users" WHERE "user_status"='1' ORDER BY "id" |
20:26:37.123 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT
s.*,
CASE WHEN is_complete = true then 3
WHEN is_complete = false and end_at <= NOW() then 2
else 1 END AS sort
FROM "a57be577deb434"."tbl_schedules" "s" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.created_by LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON c.id = s.client_id LEFT JOIN "a57be577deb434"."tbl_schedule_carbon_copy_rels" "ccr" ON ccr.schedule_id = s.id WHERE (1=1) AND (("s"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1017, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5296, 5300, 5311, 5329, 5332, 5360, 5388, 5404, 5420, 5440, 5445, 5446)) OR ("ccr"."user_id"=1000)) AND ("u"."department_id"='9') AND ((("s"."is_public"=1) AND ("s"."created_by" != 1000)) OR ("s"."created_by"=1000) OR ("ccr"."user_id"=1000)) GROUP BY "s"."id" ORDER BY
set_top_at DESC nulls last,
sort ASC,
case when s.is_complete = true then complete_at END desc,
case when s.is_complete = false then end_at END asc,
s.created_at DESC) "c" |
20:26:37.129 | info | yii\db\Command::query | SELECT
s.*,
CASE WHEN is_complete = true then 3
WHEN is_complete = false and end_at <= NOW() then 2
else 1 END AS sort
FROM "a57be577deb434"."tbl_schedules" "s" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.created_by LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON c.id = s.client_id LEFT JOIN "a57be577deb434"."tbl_schedule_carbon_copy_rels" "ccr" ON ccr.schedule_id = s.id WHERE (1=1) AND (("s"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1017, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5296, 5300, 5311, 5329, 5332, 5360, 5388, 5404, 5420, 5440, 5445, 5446)) OR ("ccr"."user_id"=1000)) AND ("u"."department_id"='9') AND ((("s"."is_public"=1) AND ("s"."created_by" != 1000)) OR ("s"."created_by"=1000) OR ("ccr"."user_id"=1000)) GROUP BY "s"."id" ORDER BY
set_top_at DESC nulls last,
sort ASC,
case when s.is_complete = true then complete_at END desc,
case when s.is_complete = false then end_at END asc,
s.created_at DESC LIMIT 10 |
20:26:37.133 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:26:37.133 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
20:26:37.133 | 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/schedule/list', '{"ScheduleSearch":{"department_id":"9","status":""},"Schedules":{"created_by":""},"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"2","posttime":"1750768000","token":"80e2092324fa9f5648b61a6b30cff471","version_code":"1141"}', '{"code":200,"data":{"list":[],"thisUser":null,"pagenation":{"totalcount":0,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-06-24 20:26:37') RETURNING "id" |