20:30:57.829 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
20:30:57.829 | trace | yii\base\Module::getModule | Loading module: debug |
20:30:57.830 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
20:30:57.830 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
20:30:57.830 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
20:30:57.830 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:30:57.830 | trace | yii\base\Module::getModule | Loading module: gii |
20:30:57.830 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
20:30:57.830 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
20:30:57.830 | trace | yii\web\Application::handleRequest | Route requested: 'v2/schedule/list' |
20:30:57.830 | trace | yii\base\Module::getModule | Loading module: v2 |
20:30:57.831 | info | yii\web\Session::open | Session started |
20:30:57.831 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
20:30:57.833 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
20:30:57.836 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:30:57.836 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
20:30:57.836 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:30:57.837 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
20:30:57.837 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
20:30:57.838 | trace | yii\base\Controller::runAction | Route to run: v2/schedule/list |
20:30:57.838 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:30:57.839 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
20:30:57.839 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ScheduleController::actionList() |
20:30:57.839 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:30:57.839 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
20:30:57.840 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:30:57.840 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:30:57.841 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_users" WHERE "user_status"='1' ORDER BY "id" |
20:30:57.842 | 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"='8') 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:30:57.847 | 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"='8') 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:30:57.850 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
20:30:57.850 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
20:30:57.851 | 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":"8","status":""},"Schedules":{"created_by":"5446"},"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"2","posttime":"1750768256","token":"c3c952abcd0ceed519bbbe52d65b2d51","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:30:57') RETURNING "id" |