| Time | Duration | Type | Query |
|---|---|---|---|
| 13:26:19.920 | 0.9 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC' |
| 13:26:19.923 | 0.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 13:26:19.927 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='9249' |
| 13:26:19.928 | 2.9 ms | SELECT | SELECT 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" |
| 13:26:19.932 | 3.0 ms | SELECT | 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 LIMIT 10 |
| 13:26:19.936 | 0.4 ms | SELECT | SELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=982 |
| 13:26:19.937 | 0.3 ms | SELECT | SELECT "id", "case_status", "client_id", "project_id" FROM "a57be577deb434"."tbl_cases" WHERE "id"=9249 |
| 13:26:19.937 | 0.3 ms | SELECT | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=982 |
| 13:26:19.938 | 0.3 ms | SELECT | SELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=4161 |
| 13:26:19.938 | 0.2 ms | SELECT | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_contacts" WHERE "id"=3915 |
| 13:26:19.938 | 0.2 ms | SELECT | SELECT "id", "id" AS "key", "type" AS "name" FROM "a57be577deb434"."tbl_implement_types" WHERE "id"=4 |
| 13:26:19.939 | 0.3 ms | SELECT | SELECT "id", "id" AS "key", "method" AS "name" FROM "a57be577deb434"."tbl_implement_methods" WHERE "id"=1 |
| 13:26:19.939 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=982 |
| 13:26:19.940 | 0.3 ms | SELECT | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 13:26:19.940 | 0.3 ms | SELECT | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1015 |
| 13:26:19.941 | 0.3 ms | SELECT | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1015) |
| 13:26:19.941 | 0.2 ms | SELECT | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=2 |
| 13:26:19.942 | 0.9 ms | SELECT | SELECT *, "product_type_id" AS "key" FROM "a57be577deb434"."tbl_implement_product_types" WHERE "implement_id"=7535 |
| 13:26:19.943 | 3.1 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=5) AND ("object_id"=7535) |
| 13:26:19.946 | 3.1 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=24) AND ("object_id"=7535) |
| 13:26:19.949 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=240 |
| 13:26:19.950 | 0.3 ms | SELECT | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=33 |
| 13:26:19.951 | 0.2 ms | SELECT | SELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_service_type" WHERE "id"=1 |
| 13:26:19.951 | 46.4 ms | SELECT | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=5) AND ("object_id"=7535) GROUP BY "object_id" |
| 13:26:19.998 | 31.9 ms | SELECT | SELECT "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"=7535) GROUP BY "object_id" |
| 13:26:20.032 | 2.2 ms | SELECT | SELECT "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" |
| 13:26:20.035 | 2.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "implement_record_id"=7535 ORDER BY array_position(array[0,1,2,3,5,6,4], status::integer) |
| 13:26:20.042 | 2.7 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1000, 6, 178, 'v2/implement/list', '{"page":"1","pagesize":"10","id":"9249","posttime":"1782451579","access_token":"R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC","device_type":"6","version_code":"178","token":"a660122224dc1b378f690f0abafad76c"}', '{"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":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":"39.156.194.178","ua":"jinchangxiao\/1.0.42 (HUAWEI Mate 60 BRA-AL00; HarmonyOS 6.1.0)"}', FALSE, '2026-06-26 13:26:20', 124777216) RETURNING "id" |