Log Messages

总计56条数据
TimeLevelCategoryMessage
 
14:02:17.328traceyii\base\Application::bootstrapBootstrap with yii\log\Dispatcher
14:02:17.328traceyii\base\Module::getModuleLoading module: debug
14:02:17.328traceyii\base\Application::bootstrapBootstrap with yii\debug\Module::bootstrap()
14:02:17.329traceyii\redis\Connection::openOpening redis DB connection: redis.server.local:6379, database=1
14:02:17.329traceyii\redis\Connection::executeCommandExecuting Redis Command: SELECT
14:02:17.329traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
14:02:17.329traceyii\base\Module::getModuleLoading module: gii
14:02:17.329traceyii\base\Application::bootstrapBootstrap with yii\gii\Module::bootstrap()
14:02:17.329traceyii\web\UrlManager::parseRequestNo matching URL rules. Using default URL parsing logic.
14:02:17.329traceyii\web\Application::handleRequestRoute requested: 'v2/work-log/list'
14:02:17.329traceyii\base\Module::getModuleLoading module: v2
14:02:17.330infoyii\web\Session::openSession started
14:02:17.330infoyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
14:02:17.332infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH'
14:02:17.335traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
14:02:17.335traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
14:02:17.335traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
14:02:17.336traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
14:02:17.336infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
14:02:17.337traceyii\base\Controller::runActionRoute to run: v2/work-log/list
14:02:17.337traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
14:02:17.338traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: Admin
14:02:17.338traceyii\base\InlineAction::runWithParamsRunning action: app\modules\v2\controllers\WorkLogController::actionList()
14:02:17.338traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
14:02:17.338traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
14:02:17.339traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
14:02:17.339traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
14:02:17.340infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_users" WHERE "user_status"='1' ORDER BY "id"
14:02:17.341infoyii\db\Command::querySELECT COUNT(*) FROM (SELECT s.*, s.end_at - s.start_at AS hours_spent FROM "a57be577deb434"."tbl_work_logs" "s" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON "p"."id" = "s"."project_id" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON "u"."id" = "s"."created_by" LEFT JOIN "a57be577deb434"."tbl_work_log_verify_rels" "rvr" ON rvr.work_log_id = s.id LEFT JOIN "a57be577deb434"."tbl_work_log_carbon_copy_rels" "ccr" ON ccr.work_log_id = s.id LEFT JOIN "a57be577deb434"."tbl_work_log_scenario_options" "wlso" ON "wlso"."id" = "s"."scenario_option_id" WHERE ((lower(client.name) LIKE '%test%') OR ("client"."pinyin_shortcut" LIKE '%test%') OR (lower(p.project_title) LIKE '%test%') OR (lower(s.description) LIKE '%test%') OR (lower(wlso.name) LIKE '%test%')) 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 ("s"."created_by"='1000') AND ("u"."department_id"='10') GROUP BY "s"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC, "s"."updated_at" DESC) "c"
14:02:17.354infoyii\db\Command::querySELECT s.*, s.end_at - s.start_at AS hours_spent FROM "a57be577deb434"."tbl_work_logs" "s" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON "p"."id" = "s"."project_id" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON "u"."id" = "s"."created_by" LEFT JOIN "a57be577deb434"."tbl_work_log_verify_rels" "rvr" ON rvr.work_log_id = s.id LEFT JOIN "a57be577deb434"."tbl_work_log_carbon_copy_rels" "ccr" ON ccr.work_log_id = s.id LEFT JOIN "a57be577deb434"."tbl_work_log_scenario_options" "wlso" ON "wlso"."id" = "s"."scenario_option_id" WHERE ((lower(client.name) LIKE '%test%') OR ("client"."pinyin_shortcut" LIKE '%test%') OR (lower(p.project_title) LIKE '%test%') OR (lower(s.description) LIKE '%test%') OR (lower(wlso.name) LIKE '%test%')) 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 ("s"."created_by"='1000') AND ("u"."department_id"='10') GROUP BY "s"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC, "s"."updated_at" DESC LIMIT 10
14:02:17.361infoyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
14:02:17.362infoyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)
14:02:17.362infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10
14:02:17.363infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id" IN (71, 27)
14:02:17.363infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenarios" WHERE "id" IN (1, 3)
14:02:17.363infoyii\db\Command::querySELECT "id", "id" AS "key", "name", "client_class", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=149
14:02:17.364infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=1005
14:02:17.364infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_classes" WHERE "id"=80
14:02:17.364infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id" IN (32301, 18781)
14:02:17.367infoyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=19) AND ("object_id" IN (32301, 18781)) GROUP BY "object_id"
14:02:17.386infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=18) AND ("object_id" IN (32301, 18781))
14:02:17.388infoyii\db\Command::querySELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=24699
14:02:17.388infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=101) AND ("object_id" IN (32301, 18781))
14:02:17.390infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id" IN (32301, 18781)
14:02:17.391infoyii\db\Command::querySELECT "id", "id" AS "key", CASE WHEN user_status = '-1' THEN name || '(已离职)' ELSE name END AS name, "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
14:02:17.391infoyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)
14:02:17.391infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id" IN (32301, 18781) ORDER BY "id"
14:02:17.392infoyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
14:02:17.393infoyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)
14:02:17.393infoyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=19) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id" IN (32301, 18781)) GROUP BY "object_id"
14:02:17.409infoyii\db\Command::querySELECT "work_log_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" != 4) AND ("status" != 0) AND ("work_log_id" IN (32301, 18781)) GROUP BY "work_log_id"
14:02:17.410infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "work_log_id" IN (32301, 18781)
14:02:17.412infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000))
14:02:17.415traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
14:02:17.415traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
14:02:17.415infoyii\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/work-log/list', '{"WorkLogSearch":{"filterDepartment":"10","filterUser":"1000","keyword":"test","scenario_id":"","scenario_option_id":"","status":""},"access_token":"oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH","device_type":"2","posttime":"1752213760","token":"77b6a622888784eca32e4dba048ef9fa","version_code":"1141"}', '{"code":200,"data":{"list":[{"id":32301,"client_id":149,"scenario_id":1,"scenario_option_id":71,"end_at":"2023-12-07 10:00:00","created_by":1000,"created_at":"2023-12-07 11:04:04","updated_at":"2025-05-09 11:21:50","start_at":"2023-12-07 08:00:00","description":"test","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":1,"indistance":999999999,"outdistance":999999999,"hours_spent":"02:00:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/aebf8dd5-5fe2-3ead-a020-c095fe4101e4.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":71,"key":71,"name":"\u62dc\u8bbf\u5ba2\u6237"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":149,"key":149,"name":"\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240(\u6cd5\u8bc1\u90e8)\uff08\u71d5\u4eac\uff09","client_class":80,"logo":null,"sales_rep":1005,"salesRep":{"id":1005,"key":1005,"name":"\u8d75\u6657\u7131"},"clientClass":{"id":80,"key":80,"name":"\u7a33\u5b9a\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":32301,"comment":3},"attachmentRelationships":[{"id":33056,"object_type":18,"object_id":32301,"attachment_id":24699,"attachment":{"id":24699,"key":24699,"name":"717eb031-dc39-32a8-81d0-b58c6b8718e5","extension":"jpg","path":"\/v2\/attachment\/view\/oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH\/717eb031-dc39-32a8-81d0-b58c6b8718e5\/Screenshot_20250508_100019_com.jinchangxiao.bms.jpg","orig_name":"Screenshot_20250508_100019_com.jinchangxiao.bms.jpg"}}],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[{"id":14284,"work_log_id":32301,"user_id":1000,"status":1,"description":null,"verify_at":"","user":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/aebf8dd5-5fe2-3ead-a020-c095fe4101e4.png"}}}],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"2\u5c0f\u65f6","read":1,"total":1,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":18781,"client_id":null,"scenario_id":3,"scenario_option_id":27,"end_at":"2022-05-12 20:00:00","created_by":1000,"created_at":"2022-05-12 21:24:20","updated_at":"2022-07-13 18:09:33","start_at":"2022-05-12 19:00:00","description":"test","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"01:00:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/aebf8dd5-5fe2-3ead-a020-c095fe4101e4.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":27,"key":27,"name":"\u5916\u51fa\u529e\u516c"},"scenarios":{"id":3,"key":3,"name":"\u5185\u52e4\u65e5\u5fd7"},"client":null,"project":null,"workLogContacts":[],"commentCount":{"object_id":18781,"comment":3},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[{"id":660,"work_log_id":18781,"user_id":1001,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}}],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"1\u5c0f\u65f6","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false}],"pagenation":{"totalcount":2,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-11 14:02:17') RETURNING "id"