Database Queries

总计30条数据
TimeDurationTypeQuery
  
10:19:11.5123.1 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC'

10:19:11.5180.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:19:11.5190.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='2128') AND ("deleted"=FALSE)

10:19:11.5222.6 msSELECTSELECT COUNT(*) FROM (SELECT s.*, COALESCE(s.weight, 0) AS weight, target_completed_at - now() as remain FROM "a57be577deb434"."tbl_task_groups" "s" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_task_group_user_relationships" "turs" ON s.id = turs.task_group_id LEFT JOIN "a57be577deb434"."tbl_task_group_head_of_relationships" "thrs" ON s.id = thrs.task_group_id LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.head_of WHERE (true) AND ("s"."client_id"=2128) GROUP BY "s"."id" ORDER BY "s"."created_at" DESC) "c"

10:19:11.5264.2 msSELECTSELECT s.*, COALESCE(s.weight, 0) AS weight, target_completed_at - now() as remain FROM "a57be577deb434"."tbl_task_groups" "s" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_task_group_user_relationships" "turs" ON s.id = turs.task_group_id LEFT JOIN "a57be577deb434"."tbl_task_group_head_of_relationships" "thrs" ON s.id = thrs.task_group_id LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.head_of WHERE (true) AND ("s"."client_id"=2128) GROUP BY "s"."id" ORDER BY "s"."created_at" DESC LIMIT 10

10:19:11.5322.6 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128

10:19:11.5350.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=202)

10:19:11.5350.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

10:19:11.5360.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5064)

10:19:11.53631.7 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=102) AND ("object_id"=202) GROUP BY "object_id"

10:19:11.56835.1 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=102) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=202) GROUP BY "object_id"

10:19:11.6040.6 msSELECTSELECT "task_group_id", count(*) as remain FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=0) AND (parent_id is null) AND ("task_group_id"=202) GROUP BY "task_group_id"

10:19:11.6050.3 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

10:19:11.6060.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5064)

10:19:11.6060.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10

10:19:11.6060.7 msSELECTSELECT "user_id", "task_group_id" FROM "a57be577deb434"."tbl_task_group_user_relationships" "c" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON "u"."id" = "c"."user_id" WHERE "c"."task_group_id"=202 ORDER BY pinyin1 nulls first, namecut1 nulls first, pinyin2 nulls first, namecut2 nulls first, pinyin3 nulls first, namecut3 nulls first, pinyin4 nulls first, namecut4 nulls first

10:19:11.6100.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

10:19:11.6110.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

10:19:11.6110.6 msSELECTSELECT "user_id", "task_group_id" FROM "a57be577deb434"."tbl_task_group_head_of_relationships" "c" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON "u"."id" = "c"."user_id" WHERE "c"."task_group_id"=202 ORDER BY pinyin1 nulls first, namecut1 nulls first, pinyin2 nulls first, namecut2 nulls first, pinyin3 nulls first, namecut3 nulls first, pinyin4 nulls first, namecut4 nulls first

10:19:11.6120.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

10:19:11.6120.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

10:19:11.6130.2 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=3854

10:19:11.6130.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_user_relationships" WHERE "task_group_id"=202

10:19:11.6130.7 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

10:19:11.6140.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

10:19:11.6150.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE "task_group_id"=202

10:19:11.6150.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

10:19:11.6150.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

10:19:11.6160.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE (parent_id is null) AND ("task_group_id"=202)

10:19:11.6221.9 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1000, 2, 1159, 'v2/task/of-client', '{"access_token":"R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC","device_type":"2","id":"2128","page":"1","posttime":"1780539520","token":"07bdc824e77c4d5592868273ae1cca3b","version_code":"1159"}', '{"code":200,"data":{"list":[{"id":202,"title":"\u5907\u4efd\u9879\u76ee\u4e8c\u671f","description":"","client_id":2128,"head_of":5064,"status":0,"target_completed_at":"","completed_at":"","created_by":5064,"created_at":"2026-05-21 17:45:16","updated_at":"2026-05-21 17:45:16","situation":"\u7a0e\u8d4b\u5927\u662f\u5927\u975e","start_at":"","project_id":3854,"complete_description":null,"progress":0,"weight":0,"remain":null,"client":{"id":2128,"key":2128,"name":"\u5317\u4eac\u79d1\u6280\u6709\u9650\u516c\u53f8","sales_rep":5087},"isHeadOf":null,"headOf":{"id":5064,"key":5064,"name":"\u59da\u96ea\u7eaf","sex":"F","avatar":{"id":38,"user_id":5064,"name":"\/files\/cdn\/a57be577deb434\/avatar\/5bec09dc-1f7a-3542-89a2-cedfefb3fded.png"}},"commentCount":{"object_id":202,"comment":4},"unreadComments":null,"remainCount":null,"createdBy":{"id":5064,"key":5064,"name":"\u59da\u96ea\u7eaf","sex":"F","department_id":10,"avatar":{"id":38,"user_id":5064,"name":"\/files\/cdn\/a57be577deb434\/avatar\/5bec09dc-1f7a-3542-89a2-cedfefb3fded.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"taskGroupHeadOfRelationships":[{"user_id":1001,"task_group_id":202,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}}}],"project":{"id":3854,"key":3854,"name":"\u5907\u4efd\u9879\u76ee\u4e8c\u671f"},"taskGroupUsers":[{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}}],"taskGroupHeads":[{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}}],"tasks":[],"remain_time":"","target_completed_at_display":"","unread":0,"can_update":true,"can_delete":true,"can_complete":true,"can_stop":true,"can_recover":false,"bgcolor":"#FF7300","status_display":"\u8fdb\u884c\u4e2d","overdue_task":0}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"223.104.42.221","ua":"jinchangxiao\/2.3.156 (iPhone 12; iOS 26.5; Scale\/3.00)"}', FALSE, '2026-06-04 10:19:11', 147194880) RETURNING "id"