Database Queries

总计12条数据
TimeDurationTypeQuery
  
17:21:58.8114.1 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc'

17:21:58.8181.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004

17:21:58.8231.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='2094') AND ("deleted"=FALSE) AND (("sales_rep" IN (1004, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5072, 5033, 5359, 5409, 5412, 5229, 1005, 5304, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1004)))

17:21:58.8281.7 msSELECTSELECT COUNT(*) FROM (SELECT cd.* FROM "a57be577deb434"."tbl_client_documents" "cd" WHERE "client_id"='2094' GROUP BY "cd"."id" ORDER BY "created_at" DESC) "c"

17:21:58.8310.6 msSELECTSELECT cd.* FROM "a57be577deb434"."tbl_client_documents" "cd" WHERE "client_id"='2094' GROUP BY "cd"."id" ORDER BY "created_at" DESC LIMIT 10

17:21:58.8320.3 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011

17:21:58.8330.5 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1011)

17:21:58.8341.1 msSELECTSELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (14288, 14287)

17:21:58.83522.5 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=104) AND ("object_id" IN (340, 339)) GROUP BY "object_id"

17:21:58.85821.4 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=104) AND (remind_user_id = 1004 AND is_read = false) AND ("object_id" IN (340, 339)) GROUP BY "object_id"

17:21:58.8790.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2094

17:21:58.8811.5 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1004, 2, 1141, 'v2/client/list-document', '{"access_token":"NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc","device_type":"2","id":"2094","page":"1","posttime":"1752398464","token":"3c4b10916ba7ae8eba027d87f520fbc0","version_code":"1141"}', '{"code":200,"data":{"list":[{"id":340,"attachment_id":14288,"client_id":2094,"title":"\u6d6a\u6f6e-\u4fe1\u521b\u670d\u52a1\u5668\u62a5\u4ef7\u5355","description":"\u98de\u817e","created_by":1011,"created_at":"2023-08-09 15:17:49","updated_at":"2023-08-09 15:17:49","project_id":null,"case_id":null,"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}},"attachment":{"id":14288,"key":14288,"name":"\/files\/protected\/var\/www\/html\/web\/files\/protected\/a57be577deb434\/2023\/08\/289dcad4-c114-3a8a-8c22-2f45a04d1904.xlsx","extension":"xlsx","orig_name":"\u6d6a\u6f6e\u98de\u817e\u670d\u52a1\u5668\u62a5\u4ef7.xlsx"},"commentCount":null,"unreadComments":null,"client":{"id":2094,"key":2094,"name":"\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240(\u5317\u4eac\u4e2d\u5929\u950b\u5b89\u5168\u9632\u62a4\u6280\u672f\u6709\u9650\u516c\u53f8)"},"project":null,"case":null,"unread":0},{"id":339,"attachment_id":14287,"client_id":2094,"title":"\u5b9d\u5fb7-\u4fe1\u521b\u670d\u52a1\u5668\u62a5\u4ef7\u5355","description":"","created_by":1011,"created_at":"2023-08-09 15:17:21","updated_at":"2023-08-09 15:18:03","project_id":null,"case_id":null,"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}},"attachment":{"id":14287,"key":14287,"name":"\/files\/protected\/var\/www\/html\/web\/files\/protected\/a57be577deb434\/2023\/08\/80f34f7f-f4f1-37c1-9f8c-e2a8ab01552a.xlsx","extension":"xlsx","orig_name":"2023\u5e748\u67089\u65e5\u62a5\u4ef7(1).xlsx"},"commentCount":null,"unreadComments":null,"client":{"id":2094,"key":2094,"name":"\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240(\u5317\u4eac\u4e2d\u5929\u950b\u5b89\u5168\u9632\u62a4\u6280\u672f\u6709\u9650\u516c\u53f8)"},"project":null,"case":null,"unread":0}],"pagenation":{"totalcount":2,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-13 17:21:58') RETURNING "id"