Performance Profiling

Total processing time: 451 ms; Peak memory: 5.827 MB. Show Profiling Timeline

总计29条数据
TimeDurationCategoryInfo
  
17:14:02.54422.9 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=19) AND ("object_id" IN (34106, 24225, 24216, 18786, 14437)) GROUP BY "object_id"
17:14:02.50422.5 msyii\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_location" "lin" ON s.location_in_id = lin.id LEFT JOIN "a57be577deb434"."tbl_location" "lout" ON s.location_out_id = lout.id 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 WHERE (("s"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5300, 5311, 5332, 5360, 5388, 5446, 5449)) OR ("ccr"."user_id"=5016)) AND (("s"."created_by"='5016')) AND ("s"."is_draft"='0') GROUP BY "s"."id", "lin"."id", "lout"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC, s.updated_at DESC nulls last, "s"."created_at" DESC) "c"
17:14:02.57618.9 msyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=19) AND (remind_user_id = 5016 AND is_read = false) AND ("object_id" IN (34106, 24225, 24216, 18786, 14437)) GROUP BY "object_id"
17:14:02.59510.2 msyii\db\Command::querySELECT "work_log_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (1, 2, 3)) AND ("work_log_id" IN (34106, 24225, 24216, 18786, 14437)) GROUP BY "work_log_id"
17:14:02.5394.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id" IN (34106, 24225, 24216, 18786, 14437)
17:14:02.6063.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=5016) AND ("object_type"=19) AND ("visit_date"='2025-09-15')
17:14:02.5263.1 msyii\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_location" "lin" ON s.location_in_id = lin.id LEFT JOIN "a57be577deb434"."tbl_location" "lout" ON s.location_out_id = lout.id 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 WHERE (("s"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5300, 5311, 5332, 5360, 5388, 5446, 5449)) OR ("ccr"."user_id"=5016)) AND (("s"."created_by"='5016')) AND ("s"."is_draft"='0') GROUP BY "s"."id", "lin"."id", "lout"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC, s.updated_at DESC nulls last, "s"."created_at" DESC LIMIT 20
17:14:02.4762.8 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=5016
17:14:02.5002.6 msyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_users" WHERE "user_status"='1' ORDER BY "id"
17:14:02.4802.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016
17:14:02.4732.3 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
17:14:02.5672.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=18) AND ("object_id" IN (34106, 24225, 24216, 18786, 14437))
17:14:02.5372.0 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"=7681
17:14:02.5701.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=101) AND ("object_id" IN (34106, 24225, 24216, 18786, 14437))
17:14:02.6111.4 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 5016, 5, 'vue/work-log/list', '{"WorkLogSearch":{"filterUser":["5016"],"has_client":"","has_project":"","status":"","is_arrive":"","description":"","period":"","filter":"","is_draft":"0"},"Filter":{"name":"end_at","sort":"DESC"},"page":"1","web_access_token":"Ma1CLo37erP-0kiZ7BiRFWIjlwsiNp2I"}', '{"code":2000,"result":{"list":[{"id":34106,"client_id":"","scenario_id":1,"scenario_option_id":67,"end_at":"2024-04-03 11:23:00","created_by":5016,"created_at":"2024-04-03 11:23:41","updated_at":"2024-04-03 11:23:41","start_at":"2024-04-03 11:23:00","description":"","escort":"","is_draft":0,"location_id":"","project_id":"","location_in_id":17073,"location_out_id":17074,"status":1,"indistance":"","outdistance":"","hours_spent":"00:00:00","createdBy":{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","department_id":10,"avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":{},"scenarioOption":{"id":67,"key":67,"name":"\u5546\u673a\u63a8\u52a8"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{},"project":{},"workLogContacts":[],"commentCount":{"object_id":34106,"comment":3},"attachmentRelationships":[],"locationIn":{"id":17073,"lng":"116.28909125434","lat":"39.9604367404514","address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u91d1\u6e90\u65f6\u4ee3\u5546\u52a1\u4e2d\u5fc3","time":"2024-04-03 11:23:00"},"locationOut":{"id":17074,"lng":"116.28909125434","lat":"39.9604367404514","address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u91d1\u6e90\u65f6\u4ee3\u5546\u52a1\u4e2d\u5fc3","time":"2024-04-03 11:23:00"},"files":[],"workLogCarbonCopyRels":[{"id":15404,"work_log_id":34106,"user_id":1000,"user":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/80759bee-0611-3ad4-bb4a-30d802dd0032.png"}}}],"workLogVerifyRels":[{"id":10768,"work_log_id":34106,"user_id":1000,"status":1,"description":"","verify_at":"","user":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/80759bee-0611-3ad4-bb4a-30d802dd0032.png"}}}],"unreadComments":{},"reimbursementCount":{},"hours_spent_display":"0\u5206\u949f","read":1,"total":1,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"bgcolor":"#89c541"},{"id":24225,"client_id":"","scenario_id":3,"scenario_option_id":27,"end_at":"2023-02-27 09:06:00","created_by":5016,"created_at":"2023-02-27 13:45:06","updated_at":"2023-02-27 13:45:06","start_at":"2023-02-27 09:05:00","description":"","escort":"","is_draft":0,"location_id":"","project_id":"","location_in_id":"","location_out_id":"","status":0,"indistance":"","outdistance":"","hours_spent":"00:01:00","createdBy":{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","department_id":10,"avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":{},"scenarioOption":{"id":27,"key":27,"name":"\u5916\u51fa\u529e\u516c"},"scenarios":{"id":3,"key":3,"name":"\u5185\u52e4\u65e5\u5fd7"},"client":{},"project":{},"workLogContacts":[],"commentCount":{"object_id":24225,"comment":7},"attachmentRelationships":[],"locationIn":{},"locationOut":{},"files":[],"workLogCarbonCopyRels":[{"id":8080,"work_log_id":24225,"user_id":1000,"user":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/80759bee-0611-3ad4-bb4a-30d802dd0032.png"}}}],"workLogVerifyRels":[],"unreadComments":{},"reimbursementCount":{},"hours_spent_display":"1\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"bgcolor":"#89c541"},{"id":24216,"client_id":"","scenario_id":1,"scenario_option_id":66,"end_at":"2023-02-26 17:00:00","created_by":5016,"created_at":"2023-02-26 18:47:33","updated_at":"2023-02-26 18:47:33","start_at":"2023-02-26 17:00:00","description":"","escort":"","is_draft":0,"location_id":"","project_id":"","location_in_id":"","location_out_id":"","status":0,"indistance":"","outdistance":"","hours_spent":"00:00:00","createdBy":{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","department_id":10,"avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":{},"scenarioOption":{"id":66,"key":66,"name":"\u5ba2\u60c5\u589e\u8fdb"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{},"project":{},"workLogContacts":[],"commentCount":{"object_id":24216,"comment":4},"attachmentRelationships":[],"locationIn":{},"locationOut":{},"files":[],"workLogCarbonCopyRels":[{"id":8079,"work_log_id":24216,"user_id":1000,"user":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/80759bee-0611-3ad4-bb4a-30d802dd0032.png"}}}],"workLogVerifyRels":[],"unreadComments":{},"reimbursementCount":{},"hours_spent_display":"0\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"bgcolor":"#89c541"},{"id":18786,"client_id":"","scenario_id":3,"scenario_option_id":27,"end_at":"2022-05-12 02:40:00","created_by":5016,"created_at":"2022-05-12 21:43:14","updated_at":"2022-05-12 21:43:14","start_at":"2022-05-12 02:10:00","description":"","escort":"","is_draft":0,"location_id":"","project_id":"","location_in_id":"","location_out_id":"","status":0,"indistance":"","outdistance":"","hours_spent":"00:30:00","createdBy":{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","department_id":10,"avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":{},"scenarioOption":{"id":27,"key":27,"name":"\u5916\u51fa\u529e\u516c"},"scenarios":{"id":3,"key":3,"name":"\u5185\u52e4\u65e5\u5fd7"},"client":{},"project":{},"workLogContacts":[],"commentCount":{"object_id":18786,"comment":9},"attachmentRelationships":[],"locationIn":{},"locationOut":{},"files":[],"workLogCarbonCopyRels":[{"id":8,"work_log_id":18786,"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":{},"reimbursementCount":{},"hours_spent_display":"30\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"bgcolor":"#89c541"},{"id":14437,"client_id":"","scenario_id":3,"scenario_option_id":27,"end_at":"2021-04-01 15:00:00","created_by":5016,"created_at":"2020-10-10 09:21:17","updated_at":"2021-04-01 15:02:41","start_at":"2021-04-01 14:00:00","description":"","escort":"\u6d4b\u8bd5","is_draft":0,"location_id":7681,"project_id":"","location_in_id":7681,"location_out_id":"","status":0,"indistance":"","outdistance":"","hours_spent":"01:00:00","createdBy":{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","department_id":10,"avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":{"id":7681,"geolocation":"(116.289064670139,39.9603819444444)","created_by":5016,"address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5c45\u7136\u4e4b\u5bb6(\u91d1\u6e90\u5e97)","created_at":"2021-04-01 15:02:41","updated_at":"2021-04-01 15:02:00"},"scenarioOption":{"id":27,"key":27,"name":"\u5916\u51fa\u529e\u516c"},"scenarios":{"id":3,"key":3,"name":"\u5185\u52e4\u65e5\u5fd7"},"client":{},"project":{},"workLogContacts":[],"commentCount":{"object_id":14437,"comment":1},"attachmentRelationships":[],"locationIn":{"id":7681,"lng":"116.289064670139","lat":"39.9603819444444","address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5c45\u7136\u4e4b\u5bb6(\u91d1\u6e90\u5e97)","time":"2021-04-01 15:02:00"},"locationOut":{},"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":{},"reimbursementCount":{},"hours_spent_display":"1\u5c0f\u65f6","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"bgcolor":"#89c541"}],"can_create":true,"pagenation":{"totalcount":5,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-09-15 17:14:02') RETURNING "id"
17:14:02.6100.8 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=4, "last_visit_at"='now()' WHERE "id"=56568
17:14:02.5720.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id" IN (34106, 24225, 24216, 18786, 14437)
17:14:02.5740.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id" IN (34106, 24225, 24216, 18786, 14437) ORDER BY "id"
17:14:02.5360.7 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10
17:14:02.5350.5 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5016)
17:14:02.5730.3 msyii\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" IN (1001, 1000)
17:14:02.5340.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5016
17:14:02.5390.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id" IN (67, 27, 66)
17:14:02.5700.3 msyii\db\Command::querySELECT id, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id" IN (17073, 7681)
17:14:02.5390.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenarios" WHERE "id" IN (1, 3)
17:14:02.5740.2 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1001, 1000))
17:14:02.5700.2 msyii\db\Command::querySELECT id, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id"=17074
17:14:02.5750.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
17:14:02.5750.2 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)