Performance Profiling

Total processing time: 161 ms; Peak memory: 5.764 MB. Show Profiling Timeline

总计37条数据
TimeDurationCategoryInfo
  
10:04:02.06526.3 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=5) AND ("object_id"=7461) GROUP BY "object_id"
10:04:02.09217.5 msyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=5) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=7461) GROUP BY "object_id"
10:04:02.0553.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=5) AND ("object_id"=7461)
10:04:02.0343.7 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"=9155 GROUP BY "i"."id" ORDER BY "is_draft" DESC, "i"."has_following_work" DESC, "i"."left_at" DESC) "c"
10:04:02.1233.6 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', 1000, 2, 1161, 'v2/implement/list', '{"access_token":"wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm","device_type":"2","id":"9155","posttime":"1784167424","token":"bfd21ee12e9b6f64779ab1c7071af3fe","version_code":"1161"}', '{"code":200,"data":{"list":[{"id":7461,"client_id":2128,"contact_id":4829,"implement_type":2,"implement_method":1,"arrived_at":"2026-02-02 10:45:00","left_at":"2026-02-02 15:04:00","address":null,"has_following_work":false,"description":"\u5b9e\u65bd\u76ee\u6807\uff1atc\u5c0f\u673a\u5907\u4efd\u8c03\u8bd5\uff0c\u5bb9\u707e\u7ba1\u9053\u8c03\u8bd5\n\u5b8c\u6210\u60c5\u51b5\uff1a\u7981\u7528cv\u5907\u4efd\uff0c\u5c0f\u673a\u5907\u4efd\u6062\u590d\u3002\u7ba1\u9053\u7b49\u5f85\u5ba2\u6237\u5ba1\u6838\u540e\u68c0\u67e5\u60c5\u51b5\n\u95ee\u9898\u63cf\u8ff0\uff1a\u65e0\n\u4ea7\u751f\u8d39\u7528\uff1a\u4ea4\u901a\u8d39103.09\u5143","created_by":5085,"created_at":"2026-02-02 10:45:56","updated_at":"2026-02-03 21:14:21","satisfaction_id":null,"implement_address":null,"following_work_content":null,"location_id":null,"client_address":null,"is_draft":0,"service_id":233,"case_id":9155,"location_in_id":21071,"location_out_id":21072,"ticket_no":"IM260202001001","client_document_id":null,"client_document_file":null,"indistance":"29.176529479924","outdistance":"3.3501950495127","hours_spent":"04:19:00","client":{"id":2128,"key":2128,"name":"\u5317\u4eac\u79d1\u6280\u6709\u9650\u516c\u53f8","sales_rep":5087,"logo":null},"case":{"id":9155,"case_status":5,"client_id":2128,"project_id":3695,"client":{"id":2128,"key":2128,"name":"\u5317\u4eac\u79d1\u6280\u6709\u9650\u516c\u53f8"},"project":{"id":3695,"key":3695,"name":"\u5907\u4efd\u7cfb\u7edf\u56fd\u4ea7\u5316\u66ff\u4ee3-K"}},"contact":{"id":4829,"key":4829,"name":"\u4efb\u52c7\u6797"},"implementType":{"id":2,"key":2,"name":"\u552e\u540e\u670d\u52a1"},"implementMethod":{"id":1,"key":1,"name":"\u73b0\u573a\u5b9e\u65bd"},"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"createdBy":{"id":5085,"key":5085,"name":"\u970d\u4e1c\u9633","sex":"M","department_id":2,"avatar":{"id":51,"user_id":5085,"name":"\/files\/cdn\/a57be577deb434\/avatar\/7423f9b0-25ce-3351-871b-15d81c0dcf0f.jpg"},"department":{"id":2,"key":2,"name":"\u6280\u672f\u90e8"}},"implementProductTypes":[{"id":69,"implement_id":7461,"product_type_id":69,"name":"\u5907\u4efd","description":null,"key":69}],"location":null,"locationIn":{"id":21071,"key":21071,"lng":"116.160645","lat":"39.811039","address":"\u5317\u4eac\u5e02\u4e30\u53f0\u533a\u98de\u822a\u8def1\u53f7\u9760\u8fd1\u822a\u5929\u4e09\u9662","time":"2026-02-02 10:45:55"},"locationOut":{"id":21072,"key":21072,"lng":"116.160541","lat":"39.811268","address":"\u5317\u4eac\u5e02\u4e30\u53f0\u533a\u98de\u822a\u8def1-8\u53f7\u9760\u8fd1\u822a\u5929\u4e09\u9662","time":"2026-02-02 15:04:12"},"clientAddress":null,"attachmentRelationships":[],"files":[],"service":{"id":233,"serial_no":"ZH01","title":"\u7efc\u5408\u670d\u52a1\u534a\u5929","brand_id":33,"type_id":1,"points":25,"points_off_time":25,"points_holiday":25,"description":"\u7efc\u5408\u670d\u52a1","created_by":1013,"created_at":"2018-11-26 16:21:22","updated_at":"2026-02-26 11:06:00","is_delete":false,"sort":11,"is_stop":false,"brand":{"id":33,"key":33,"name":"Toast"},"type":{"id":1,"key":1,"name":"\u5b89\u88c5\u670d\u52a1"}},"commentCount":{"object_id":7461,"comment":1},"unreadComments":null,"reimbursementCount":{"implement_record_id":7461,"count":"103.09"},"clientDocument":null,"reimbursements":[{"id":8851,"status":2,"amount":"103.09","occurrence_at":"2026-02-02 10:45:00","settle_accounts_at":"","settle_accounts_by":null,"description":"\u4ea4\u901a\u8d39","created_by":5085,"created_at":"2026-03-09 10:49:52","updated_at":"2026-04-22 15:46:13","refuse_description":null,"client_id":2128,"project_id":3695,"next_verify_user":null,"is_resubmited":false,"work_log_id":null,"pre_sales_id":null,"implement_record_id":7461,"have_invoice":true,"type":{"id":184,"name":"\u4ea4\u901a\u8d39"},"costType":{"id":134691,"object_id":8851,"taxonomy_id":349,"term_id":18,"value":null,"object_type":7,"extra_int":null,"in_amount":null,"out_amount":null,"taxonomy":{"id":349,"name":"\u51fa\u79df\u8f66\u8d39","term_id":18,"description":"\u53d1\u751f\u5728\u5de5\u4f5c\u5730\u7684\u51fa\u79df\u8f66\u8d39\u3002","sort":3,"created_by":1000,"created_at":"2018-11-26 15:42:33","updated_at":"2025-08-12 17:36:34","is_delete":false,"approve_verify_user":null,"approve_carbon_copy_user":null,"parent_id":184,"is_system":false,"serial_no":"660129"}},"createdBy":{"id":5085,"key":5085,"name":"\u970d\u4e1c\u9633","sex":"M","department_id":2,"avatar":{"id":51,"user_id":5085,"name":"\/files\/cdn\/a57be577deb434\/avatar\/7423f9b0-25ce-3351-871b-15d81c0dcf0f.jpg"}}}],"hours_spent_display":"4.32\u5c0f\u65f6","point_display":25,"can_create_items":true,"can_update":true,"can_delete":true,"can_complete":false,"can_create_reimbursement":false,"unread":0,"can_location_in":false,"can_location_out":false}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":10},"can_create":false},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"111.9.5.127","ua":"jinchangxiao\/2.3.158 (iPhone 12 mini; iOS 26.2; Scale\/3.00)"}', FALSE, '2026-07-16 10:04:02', 153084928) RETURNING "id"
10:04:02.0593.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=24) AND ("object_id"=7461)
10:04:02.1102.8 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"=7461) GROUP BY "implement_record_id"
10:04:02.0242.7 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm'
10:04:02.0382.6 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"=9155 GROUP BY "i"."id" ORDER BY "is_draft" DESC, "i"."has_following_work" DESC, "i"."left_at" DESC LIMIT 10
10:04:02.1132.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "implement_record_id"=7461 ORDER BY array_position(array[0,1,2,3,5,6,4], status::integer)
10:04:02.0531.3 msyii\db\Command::querySELECT id, id as key, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id"=21071
10:04:02.0511.1 msyii\db\Command::querySELECT *, "product_type_id" AS "key" FROM "a57be577deb434"."tbl_implement_product_types" WHERE "implement_id"=7461
10:04:02.0420.9 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128
10:04:02.0480.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128
10:04:02.0620.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=233
10:04:02.1160.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=8851
10:04:02.0450.6 msyii\db\Command::querySELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=3695
10:04:02.0280.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
10:04:02.0460.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_contacts" WHERE "id"=4829
10:04:02.1170.5 msyii\db\Command::querySELECT "id", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=15) AND ("id" IN (184, 349))
10:04:02.0640.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=33
10:04:02.0510.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=2
10:04:02.0500.5 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5085)
10:04:02.0320.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='9155'
10:04:02.0460.4 msyii\db\Command::querySELECT "id", "id" AS "key", "type" AS "name" FROM "a57be577deb434"."tbl_implement_types" WHERE "id"=2
10:04:02.0640.4 msyii\db\Command::querySELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_service_type" WHERE "id"=1
10:04:02.0470.4 msyii\db\Command::querySELECT "id", "id" AS "key", "method" AS "name" FROM "a57be577deb434"."tbl_implement_methods" WHERE "id"=1
10:04:02.0540.4 msyii\db\Command::querySELECT id, id as key, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id"=21072
10:04:02.0490.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5085
10:04:02.1180.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=349
10:04:02.0240.3 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
10:04:02.1170.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("term_id"=18) AND ("object_type"=7) AND ("object_id"=8851)
10:04:02.0430.3 msyii\db\Command::querySELECT "id", "case_status", "client_id", "project_id" FROM "a57be577deb434"."tbl_cases" WHERE "id"=9155
10:04:02.1180.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5085
10:04:02.0440.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128
10:04:02.0480.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=5087
10:04:02.1190.3 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5085)