Database Queries

总计11条数据
TimeDurationTypeQuery
  
13:59:57.3032.6 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='c1glbS3oPWuii9fAd_nsZY9pK1ntZvhw'

13:59:57.3071.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5446

13:59:57.30817.4 msSELECTSELECT COUNT(*) FROM "a57be577deb434"."tbl_unread_comments" "uc" LEFT JOIN "a57be577deb434"."tbl_comments" "c" ON (c.id = uc.comment_id) AND (uc.remind_user_id = 5446) WHERE ("uc"."remind_user_id"=5446) AND ("uc"."is_read"=FALSE) AND ("c"."is_system"=FALSE)

13:59:57.32616.4 msSELECTSELECT COUNT(*) FROM "a57be577deb434"."tbl_unread_comments" "uc" LEFT JOIN "a57be577deb434"."tbl_comments" "c" ON (c.id = uc.comment_id) AND (uc.remind_user_id = 5446) WHERE ("uc"."remind_user_id"=5446) AND ("uc"."is_read"=FALSE) AND ("c"."is_system"=TRUE)

13:59:57.34342.6 msSELECTSELECT COUNT(*) FROM (SELECT c.*, uc.remind_user_id, CASE WHEN c.created_by = 5446 OR uc.is_read = true THEN true ElSE false END as is_read FROM "a57be577deb434"."tbl_comments" "c" LEFT JOIN "a57be577deb434"."tbl_unread_comments" "uc" ON (c.id = uc.comment_id) AND (uc.remind_user_id = 5446) WHERE (("uc"."remind_user_id"=5446) OR ("c"."created_by"=5446)) AND ("c"."is_system"='false') ORDER BY "is_read", "c"."created_at" DESC) "c"

13:59:57.38570.2 msSELECTSELECT c.*, uc.remind_user_id, CASE WHEN c.created_by = 5446 OR uc.is_read = true THEN true ElSE false END as is_read FROM "a57be577deb434"."tbl_comments" "c" LEFT JOIN "a57be577deb434"."tbl_unread_comments" "uc" ON (c.id = uc.comment_id) AND (uc.remind_user_id = 5446) WHERE (("uc"."remind_user_id"=5446) OR ("c"."created_by"=5446)) AND ("c"."is_system"='false') ORDER BY "is_read", "c"."created_at" DESC LIMIT 100

13:59:57.4564.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=310) AND ("object_id" IN (183092, 177540))

13:59:57.4611.7 msSELECTSELECT "id", "id" AS "key", "name", "extension", "path" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (26771, 26772)

13:59:57.4630.3 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1013, 1001)

13:59:57.4640.5 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1013, 1001))

13:59:57.4651.4 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 5446, 6, 169, 'v2/announcement/comment-notice', '{"page":"1","is_system":"false","posttime":"1756792797","access_token":"c1glbS3oPWuii9fAd_nsZY9pK1ntZvhw","device_type":"6","version_code":"169","token":"40a416c08bf8ce1e84c5398ae10818fa"}', '{"code":200,"data":{"announcementCount":3,"unreadCommentCount":0,"list":[{"id":183092,"object_id":1988,"object_type":"37","parent":null,"description":"<mention data-id=\"5446\">@\u5218\u5a1f<\/mention>\u200b\u8865\u507f\u91d1\u5df2\u6c47\u6b3e\u3002","created_by":1013,"created_at":"2025-07-11 10:07:27","reply_to":null,"is_system":false,"for_user":null,"description2":"","remind_user_id":5446,"is_read":true,"replyTo":null,"attachmentRelationships":[{"id":35642,"object_type":310,"object_id":183092,"attachment_id":26771,"attachment":{"id":26771,"key":26771,"name":"\/files\/protected\/var\/www\/html\/web\/files\/protected\/a57be577deb434\/2025\/07\/1cff4212-3480-325e-8e22-d71d9c4ff34b.png","extension":"png"}},{"id":35643,"object_type":310,"object_id":183092,"attachment_id":26772,"attachment":{"id":26772,"key":26772,"name":"\/files\/protected\/var\/www\/html\/web\/files\/protected\/a57be577deb434\/2025\/07\/46cfd0c8-5da5-3862-808a-aca4c7c129db.png","extension":"png"}}],"forUser":null,"createdBy":{"id":1013,"key":1013,"name":"\u7fc1\u5bb6\u6210","sex":"M","avatar":{"id":34,"user_id":1013,"name":"\/files\/cdn\/a57be577deb434\/avatar\/25ef1fe7-8dda-3daa-b8ea-9fabd0a47439.png"}},"can_delete":false,"title":"\u7fc1\u5bb6\u6210\u7ed9\u4f60\u7684\u7559\u8a00"},{"id":177540,"object_id":111,"object_type":"40","parent":null,"description":"\u52a0\u4e2a\u5934\u50cf","created_by":1001,"created_at":"2025-05-28 10:17:17","reply_to":null,"is_system":false,"for_user":null,"description2":"","remind_user_id":5446,"is_read":true,"replyTo":null,"attachmentRelationships":[],"forUser":null,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"can_delete":false,"title":"\u5218\u4eba\u8bda\u7ed9\u4f60\u7684\u7559\u8a00"}],"pagenation":{"totalcount":2,"thispage":1,"pagesize":100}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-09-02 13:59:57') RETURNING "id"