Database Queries

总计15条数据
TimeDurationTypeQuery
  
16:13:19.9622.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

16:13:19.9661.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

16:13:19.9691.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='399'

16:13:19.9701.0 msSELECTSELECT COUNT(*) FROM (SELECT cd.* FROM "a57be577deb434"."tbl_client_documents" "cd" WHERE "client_id"=399 GROUP BY "cd"."id" ORDER BY "created_at" DESC) "c"

16:13:19.9720.4 msSELECTSELECT cd.* FROM "a57be577deb434"."tbl_client_documents" "cd" WHERE "client_id"=399 GROUP BY "cd"."id" ORDER BY "created_at" DESC LIMIT 20

16:13:19.9730.3 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

16:13:19.9740.7 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

16:13:19.9750.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4

16:13:19.9752.9 msSELECTSELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=1357

16:13:19.97820.6 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=104) AND ("object_id"=7) GROUP BY "object_id"

16:13:19.99917.5 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=104) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id"=7) GROUP BY "object_id"

16:13:20.0170.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=399

16:13:20.0193.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=10) AND ("visit_date"='2025-09-16')

16:13:20.0230.9 msUPDATEUPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=18, "last_visit_at"='now()' WHERE "id"=56605

16:13:20.0241.1 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/client/list-document', '{"page":"1","client_id":"399","web_access_token":"sXjqURNBCao5nldOR3zGEIU34GY49pIi"}', '{"code":2000,"result":{"list":[{"id":7,"attachment_id":1357,"client_id":399,"title":"\u6d6a\u6f6e\u5b58\u50a8\u62a5\u4ef7\u5355","description":"","created_by":1001,"created_at":"2018-06-27 10:23:03","updated_at":"2018-06-27 10:23:03","project_id":null,"case_id":null,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"attachment":{"id":1357,"key":1357,"name":"a27dc3fd-9536-34ac-8bd7-8bfe36eecd30","extension":"xlsx","path":"\/vue\/attachment\/preview\/a27dc3fd-9536-34ac-8bd7-8bfe36eecd30\/\u62d3\u5b9e\u79d1\u6280\u62a5\u4ef7\u5355_20170608 \u589e\u52a05270M4.xlsx","orig_name":"\u62d3\u5b9e\u79d1\u6280\u62a5\u4ef7\u5355_20170608 \u589e\u52a05270M4.xlsx"},"commentCount":{},"unreadComments":null,"client":{"id":399,"key":399,"name":"\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240\u4e2d\u76fe(\u8fc7\u5355\u516c\u53f8)"},"project":null,"case":null,"unread":0,"can_update":true,"can_delete":true}],"can_create":true,"pagenation":{"totalcount":1,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-09-16 16:13:20') RETURNING "id"