Performance Profiling

Total processing time: 73 ms; Peak memory: 5.209 MB. Show Profiling Timeline

总计28条数据
TimeDurationCategoryInfo
  
17:06:42.49117.9 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=5) AND ("object_id"=6665) GROUP BY "object_id"
17:06:42.50915.6 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"=6665) GROUP BY "object_id"
17:06:42.4662.8 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd'
17:06:42.4742.3 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"=8259 GROUP BY "i"."id" ORDER BY "is_draft" DESC, "i"."has_following_work" DESC, "i"."left_at" DESC) "c"
17:06:42.5322.1 msyii\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, 6, 166, 'v2/implement/list', '{"page":"1","pagesize":"10","id":"8259","posttime":"1751879202","access_token":"Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd","device_type":"6","version_code":"166","token":"58a66a03de916b77c0fe626b0cd95b42"}', '{"code":200,"data":{"list":[{"id":6665,"client_id":1663,"contact_id":5920,"implement_type":2,"implement_method":3,"arrived_at":"2025-03-17 17:30:00","left_at":"2025-03-17 18:10:00","address":null,"has_following_work":false,"description":"\u5b9e\u65bd\u76ee\u6807\uff1a\u4e24\u53f0\u9632\u706b\u5899\u75c5\u6bd2\u5e93\u66f4\u65b0\u4e0d\u4e00\u81f4\n\u5b8c\u6210\u72b6\u6001\uff1a\u8c03\u8bd5\u9632\u706b\u5899\u75c5\u6bd2\u5e93\u66f4\u65b0\u65f6\u95f4\u53ca\u7b56\u7565\uff0c\u914d\u7f6e\u75c5\u6bd2\u5e93\u540c\u6b65\u72b6\u6001\uff0c\u5b8c\u6210\n\u95ee\u9898\u63cf\u8ff0\uff1a\u65e0","created_by":1022,"created_at":"2025-03-17 18:10:01","updated_at":"2025-03-17 18:10:01","satisfaction_id":null,"implement_address":null,"following_work_content":null,"location_id":null,"client_address":null,"is_draft":0,"service_id":233,"case_id":8259,"location_in_id":null,"location_out_id":null,"ticket_no":"IM250317010001","client_document_id":null,"client_document_file":null,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:40:00","client":{"id":1663,"key":1663,"name":"\u5317\u4eac\u8f66\u4e4b\u5bb6\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8\u3010\u6c7d\u8f66\u4e4b\u5bb6-\u5317\u4eac\u76ae\u5c14\u5e03\u83b1\u5c3c\u8f6f\u4ef6\u6709\u9650\u516c\u53f8-\u5317\u4eac\u9f50\u5c14\u5e03\u83b1\u7279\u79d1\u6280\u6709\u9650\u516c\u53f8-\u5317\u4eac\u8f66\u667a\u8d62\u79d1\u6280\u6709\u9650\u516c\u53f8\u3011","sales_rep":5300,"logo":null},"case":{"id":8259,"case_status":4,"client_id":1663,"project_id":null,"client":{"id":1663,"key":1663,"name":"\u5317\u4eac\u8f66\u4e4b\u5bb6\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8\u3010\u6c7d\u8f66\u4e4b\u5bb6-\u5317\u4eac\u76ae\u5c14\u5e03\u83b1\u5c3c\u8f6f\u4ef6\u6709\u9650\u516c\u53f8-\u5317\u4eac\u9f50\u5c14\u5e03\u83b1\u7279\u79d1\u6280\u6709\u9650\u516c\u53f8-\u5317\u4eac\u8f66\u667a\u8d62\u79d1\u6280\u6709\u9650\u516c\u53f8\u3011"},"project":null},"contact":{"id":5920,"key":5920,"name":"\u97e9\u65ed"},"implementType":{"id":2,"key":2,"name":"\u552e\u540e\u670d\u52a1"},"implementMethod":{"id":3,"key":3,"name":"\u8fdc\u7a0b\u5b9e\u65bd"},"salesRep":{"id":5300,"key":5300,"name":"\u82cf\u6e05\u4e91"},"createdBy":{"id":1022,"key":1022,"name":"\u5f90\u7855","sex":"M","department_id":2,"avatar":{"id":6,"user_id":1022,"name":"\/files\/cdn\/a57be577deb434\/avatar\/2b5ec94d-d83c-38b4-ac3a-38720c369f91.png"},"department":{"id":2,"key":2,"name":"\u6280\u672f\u90e8"}},"implementProductTypes":[{"id":5,"implement_id":6665,"product_type_id":5,"name":"\u5b89\u5168\u8bbe\u5907","description":null,"key":5}],"location":null,"locationIn":null,"locationOut":null,"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\u3002","created_by":1013,"created_at":"2018-11-26 16:21:22","updated_at":"2021-01-12 16:45:09","is_delete":false,"sort":11,"brand":{"id":33,"key":33,"name":"Toast"},"type":{"id":1,"key":1,"name":"\u5b89\u88c5\u670d\u52a1"}},"commentCount":{"object_id":6665,"comment":1},"unreadComments":null,"reimbursementCount":null,"clientDocument":null,"reimbursements":[],"hours_spent_display":"0.67\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":""}]}', FALSE, '2025-07-07 17:06:42') RETURNING "id"
17:06:42.4641.9 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
17:06:42.5271.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "implement_record_id"=6665 ORDER BY array_position(array[0,1,2,3,4], status::integer)
17:06:42.4771.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"=8259 GROUP BY "i"."id" ORDER BY "is_draft" DESC, "i"."has_following_work" DESC, "i"."left_at" DESC LIMIT 10
17:06:42.5251.4 msyii\db\Command::querySELECT "implement_record_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" != 4) AND ("status" != 0) AND ("implement_record_id"=6665) GROUP BY "implement_record_id"
17:06:42.4871.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=5) AND ("object_id"=6665)
17:06:42.4881.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=24) AND ("object_id"=6665)
17:06:42.4701.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
17:06:42.4860.8 msyii\db\Command::querySELECT *, "product_type_id" AS "key" FROM "a57be577deb434"."tbl_implement_product_types" WHERE "implement_id"=6665
17:06:42.4830.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1663
17:06:42.4890.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=233
17:06:42.4720.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='8259'
17:06:42.4800.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=1663
17:06:42.4820.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_contacts" WHERE "id"=5920
17:06:42.4850.4 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1022)
17:06:42.4900.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=33
17:06:42.4910.3 msyii\db\Command::querySELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_service_type" WHERE "id"=1
17:06:42.4850.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=2
17:06:42.4830.3 msyii\db\Command::querySELECT "id", "id" AS "key", "method" AS "name" FROM "a57be577deb434"."tbl_implement_methods" WHERE "id"=3
17:06:42.4820.3 msyii\db\Command::querySELECT "id", "id" AS "key", "type" AS "name" FROM "a57be577deb434"."tbl_implement_types" WHERE "id"=2
17:06:42.4810.2 msyii\db\Command::querySELECT "id", "case_status", "client_id", "project_id" FROM "a57be577deb434"."tbl_cases" WHERE "id"=8259
17:06:42.4840.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1022
17:06:42.4820.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=1663
17:06:42.4840.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=5300