Performance Profiling

Total processing time: 129 ms; Peak memory: 5.648 MB. Show Profiling Timeline

总计29条数据
TimeDurationCategoryInfo
  
16:03:00.58732.2 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=5) AND ("object_id"=7535) GROUP BY "object_id"
16:03:00.61921.6 msyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=5) AND (remind_user_id = 1015 AND is_read = false) AND ("object_id"=7535) GROUP BY "object_id"
16:03:00.5636.8 msyii\db\Command::querySELECT "id", "case_status", "client_id", "project_id" FROM "a57be577deb434"."tbl_cases" WHERE "id"=9249
16:03:00.5516.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=982
16:03:00.5423.8 msyii\db\Command::querySELECT COUNT(*) FROM (SELECT i.*, i.left_at - i.arrived_at AS hours_spent FROM "a57be577deb434"."tbl_implement_records" "i" LEFT JOIN "a57be577deb434"."tbl_cases" "c" ON c.id = i.case_id WHERE "case_id"=9249 GROUP BY "i"."id" ORDER BY "is_draft" DESC, "i"."has_following_work" DESC, "i"."left_at" DESC) "c"
16:03:00.5463.7 msyii\db\Command::querySELECT i.*, i.left_at - i.arrived_at AS hours_spent FROM "a57be577deb434"."tbl_implement_records" "i" LEFT JOIN "a57be577deb434"."tbl_cases" "c" ON c.id = i.case_id WHERE "case_id"=9249 GROUP BY "i"."id" ORDER BY "is_draft" DESC, "i"."has_following_work" DESC, "i"."left_at" DESC LIMIT 10
16:03:00.5793.0 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=5) AND ("object_id"=7535)
16:03:00.5822.9 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=24) AND ("object_id"=7535)
16:03:00.6502.4 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1015, 0, 276, 'v2/implement/list', '{"access_token":"Q_7DD5LA0njCol9o5skCibRkap3ZqeYZ","device_type":"0","version_code":"276","id":"9249","page":"1","token":"f7f6cad89c57144d628baf009ee78374","posttime":"1784102580"}', '{"code":200,"data":{"list":[{"id":7535,"client_id":982,"contact_id":3915,"implement_type":4,"implement_method":1,"arrived_at":"2026-04-07 13:46:00","left_at":"2026-04-07 15:46:00","address":null,"has_following_work":false,"description":"\u5b9e\u65bd\u603b\u7ed3\u8bed\u97f3\u8f93\u5165\u5185\u5bb9\u7b80\u5355\u5a1c\u5a1c\u653e\u7ea0\u7eb7\u89e3\u51b3\u5c31\u51cf\u80a5\u5c31\u5a1c\u5a1c\u5bb6\u5c06\u65a4\u65a4\u8ba1\u8f83\u51cf\u80a5\u540e\u653e\u5047\u7ecf\u6d4e\u7ea0\u7eb7\u5427","created_by":1015,"created_at":"2026-04-07 15:47:16","updated_at":"2026-04-22 16:13:18","satisfaction_id":null,"implement_address":null,"following_work_content":"","location_id":null,"client_address":null,"is_draft":0,"service_id":240,"case_id":9249,"location_in_id":null,"location_out_id":null,"ticket_no":"IM260407001001","client_document_id":null,"client_document_file":null,"indistance":999999999,"outdistance":999999999,"hours_spent":"02:00:00","client":{"id":982,"key":982,"name":"\u4e2d\u56fd\u4fe1\u606f\u5b89\u5168\u7814\u7a76\u6240","sales_rep":1001,"logo":null},"case":{"id":9249,"case_status":3,"client_id":982,"project_id":4161,"client":{"id":982,"key":982,"name":"\u4e2d\u56fd\u4fe1\u606f\u5b89\u5168\u7814\u7a76\u6240"},"project":{"id":4161,"key":4161,"name":"3535"}},"contact":{"id":3915,"key":3915,"name":"\u5218\u5fae"},"implementType":{"id":4,"key":4,"name":"\u552e\u524d\u6d4b\u8bd5"},"implementMethod":{"id":1,"key":1,"name":"\u73b0\u573a\u5b9e\u65bd"},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda"},"createdBy":{"id":1015,"key":1015,"name":"\u5434\u660a","sex":"M","department_id":2,"avatar":{"id":12,"user_id":1015,"name":"\/files\/cdn\/a57be577deb434\/avatar\/d69b398a-5951-36e9-a92e-992fe938db26.jpg"},"department":{"id":2,"key":2,"name":"\u6280\u672f\u90e8"}},"implementProductTypes":[{"id":7,"implement_id":7535,"product_type_id":7,"name":"\u8f6f\u4ef6","description":null,"key":7},{"id":10,"implement_id":7535,"product_type_id":10,"name":"\u56fe\u5f62\u5de5\u4f5c\u7ad9","description":null,"key":10}],"location":null,"locationIn":null,"locationOut":null,"clientAddress":null,"attachmentRelationships":[],"files":[],"service":{"id":240,"serial_no":"ZH03","title":"\u7efc\u5408\u670d\u52a1\u5927\u534a\u5929","brand_id":33,"type_id":1,"points":38,"points_off_time":38,"points_holiday":38,"description":"\u7efc\u5408\u670d\u52a1","created_by":1013,"created_at":"2020-04-17 10:47:35","updated_at":"2026-04-22 16:13:03","is_delete":false,"sort":4,"is_stop":true,"brand":{"id":33,"key":33,"name":"Toast"},"type":{"id":1,"key":1,"name":"\u5b89\u88c5\u670d\u52a1"}},"commentCount":null,"unreadComments":null,"reimbursementCount":null,"clientDocument":null,"reimbursements":[],"hours_spent_display":"2\u5c0f\u65f6","point_display":38,"can_create_items":true,"can_update":true,"can_delete":false,"can_complete":false,"can_create_reimbursement":true,"unread":0,"can_location_in":false,"can_location_out":false}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"39.156.194.178","ua":"jinchangxiao\/2.3.176 (HUAWEIVOG-AL00; Android 10)"}', FALSE, '2026-07-15 16:03:00', 121523200) RETURNING "id"
16:03:00.6442.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "implement_record_id"=7535 ORDER BY array_position(array[0,1,2,3,5,6,4], status::integer)
16:03:00.6412.2 msyii\db\Command::querySELECT "implement_record_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (1, 2, 3)) AND ("implement_record_id"=7535) GROUP BY "implement_record_id"
16:03:00.5781.0 msyii\db\Command::querySELECT *, "product_type_id" AS "key" FROM "a57be577deb434"."tbl_implement_product_types" WHERE "implement_id"=7535
16:03:00.5320.9 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='Q_7DD5LA0njCol9o5skCibRkap3ZqeYZ'
16:03:00.5350.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1015
16:03:00.5750.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=982
16:03:00.5740.4 msyii\db\Command::querySELECT "id", "id" AS "key", "type" AS "name" FROM "a57be577deb434"."tbl_implement_types" WHERE "id"=4
16:03:00.5850.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=240
16:03:00.5390.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='9249'
16:03:00.5750.4 msyii\db\Command::querySELECT "id", "id" AS "key", "method" AS "name" FROM "a57be577deb434"."tbl_implement_methods" WHERE "id"=1
16:03:00.5320.3 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
16:03:00.5730.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=982
16:03:00.5770.3 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1015)
16:03:00.5730.3 msyii\db\Command::querySELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=4161
16:03:00.5760.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1015
16:03:00.5860.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=33
16:03:00.5760.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
16:03:00.5770.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=2
16:03:00.5740.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_contacts" WHERE "id"=3915
16:03:00.5870.2 msyii\db\Command::querySELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_service_type" WHERE "id"=1