Database Queries

总计38条数据
TimeDurationTypeQuery
  
16:52:43.3172.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC'

16:52:43.3220.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

16:52:43.3241.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"='1535'

16:52:43.3282.3 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

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

16:52:43.3310.4 msSELECTSELECT "id", "id" AS "key", "title" AS "name", "project_id", "client_id", "head_of", "status", "target_completed_at", "start_at" FROM "a57be577deb434"."tbl_task_groups" WHERE "id"=187

16:52:43.3321.0 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=1956

16:52:43.3330.3 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=1972

16:52:43.3341.0 msSELECTSELECT "c".* 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"=187 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

16:52:43.3350.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=187)

16:52:43.3360.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_user_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=187)

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

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

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

16:52:43.33836.3 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=101) AND ("object_id"=1535) GROUP BY "object_id"

16:52:43.37441.7 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=101) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=1535) GROUP BY "object_id"

16:52:43.4160.7 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1535 GROUP BY "parent_id"

16:52:43.4170.7 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=1) AND ("parent_id"=1535) GROUP BY "parent_id"

16:52:43.42317.9 msSELECTSELECT s.* FROM "a57be577deb434"."tbl_tasks" "s" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.head_of LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE WHERE (true) AND (("tree_path" @> (SELECT array_agg(DISTINCT s.tree_path) FROM "a57be577deb434"."tbl_tasks" "s" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.head_of LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE WHERE (true) AND (s.tree_path is not null)))) AND ("parent_id"=1535) GROUP BY "s"."id" ORDER BY "s"."status", "s"."target_completed_at", "s"."created_at" DESC

16:52:43.4410.4 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011

16:52:43.4420.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1011)

16:52:43.4430.3 msSELECTSELECT "id", "id" AS "key", "title" AS "name", "project_id", "client_id", "head_of", "status", "target_completed_at", "start_at" FROM "a57be577deb434"."tbl_task_groups" WHERE "id"=187

16:52:43.4430.3 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=1956

16:52:43.4440.2 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=1972

16:52:43.4440.7 msSELECTSELECT "c".* 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"=187 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

16:52:43.4450.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=187)

16:52:43.4450.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_user_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=187)

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

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

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

16:52:43.44738.9 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=101) AND ("object_id"=1581) GROUP BY "object_id"

16:52:43.48822.5 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=101) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=1581) GROUP BY "object_id"

16:52:43.5110.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1535

16:52:43.5110.4 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1581 GROUP BY "parent_id"

16:52:43.5120.4 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=1) AND ("parent_id"=1581) GROUP BY "parent_id"

16:52:43.5120.4 msSELECTSELECT SUM(weight) FROM "a57be577deb434"."tbl_tasks" WHERE ("task_group_id"=187) AND (parent_id is null)

16:52:43.5130.7 msSELECTSELECT "u"."id" AS "key", "u"."name" FROM "a57be577deb434"."tbl_users" "u" LEFT JOIN "a57be577deb434"."tbl_task_group_user_relationships" "turs" ON u.id = turs.user_id WHERE ("turs"."task_group_id"=187) OR ("u"."id" IN (1011, 1001)) GROUP BY "u"."id" 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

16:52:43.5152.1 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/get-edit', '{"access_token":"R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC","device_type":"2","id":"1535","posttime":"1780908800","token":"829734d0677459031a2a0adfb3681887","version_code":"1159"}', '{"code":200,"data":{"model":{"id":1535,"task_group_id":187,"title":"\u8d2d\u4e70\u6807\u4e66","description":"","client_id":null,"head_of":1001,"status":0,"target_completed_at":"2024-05-11 00:00:00","completed_at":"","created_by":1001,"created_at":"2024-05-10 13:57:33","updated_at":"2026-04-02 17:07:53","is_important":0,"complete_description":null,"weight":55,"tree_path":"1535","progress":55,"start_at":"2024-05-10 00:00:00","end_at":"2024-05-11 00:00:00","parent_id":null,"is_end_out":false,"is_start_out":false,"is_child_end_out":false,"is_child_start_out":false,"end_out_value":null,"start_out_value":null,"child_end_out_value":null,"child_start_out_value":null,"headOf":{"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"}},"taskGroup":{"id":187,"key":187,"name":"\u5ea6\u5c0f\u6ee1\u5b89\u5168\u6295\u6807\u9879\u76ee-\u62d3\u5b9e\u79d1\u6280","project_id":1972,"client_id":1956,"head_of":1001,"status":0,"target_completed_at":"2024-05-31 00:00:00","start_at":"","client":{"id":1956,"key":1956,"name":"\u5ea6\u5c0f\u6ee1\u79d1\u6280(\u5317\u4eac)\u6709\u9650\u516c\u53f8","sales_rep":null,"logo":null},"project":{"id":1972,"key":1972,"name":"Fire-eye\u7f51\u7edc\u90ae\u4ef6\u6c99\u7bb1\u7cfb\u7edf\u91c7\u8d2d"},"taskGroupHeadOfRelationships":[{"id":513,"task_group_id":187,"user_id":1011},{"id":512,"task_group_id":187,"user_id":1001}],"isHeadOf":null,"isMember":null,"bgcolor":"#FF7300","status_display":"\u8fdb\u884c\u4e2d"},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":{"object_id":1535,"comment":3},"unreadComments":null,"parent":null,"childCount":{"parent_id":1535,"count":1},"childDoneCount":null,"index":1,"remain_time":"\u8d85\u65f6758\u592917\u5c0f\u65f6","target_completed_at_display":"","unread":0,"can_update":true,"can_delete":true,"can_create":false,"can_select":false,"bgcolor":"#FF7300","is_important_display":"\u666e\u901a","status_display":"\u8fdb\u884c\u4e2d","root_id":"","showTime":{"time_name":"\u622a\u6b62\u65f6\u95f4","time_display":"2024\u5e7405\u670811\u65e5","description":""},"child":[{"id":1581,"task_group_id":187,"title":"\u8ba2\u5355","description":"","client_id":null,"head_of":1011,"status":0,"target_completed_at":"","completed_at":"","created_by":1001,"created_at":"2026-04-02 17:07:44","updated_at":"2026-04-02 17:07:44","is_important":0,"complete_description":null,"weight":0,"tree_path":"1535.1581","progress":55,"start_at":"","end_at":"","parent_id":1535,"is_end_out":false,"is_start_out":false,"is_child_end_out":false,"is_child_start_out":false,"end_out_value":null,"start_out_value":null,"child_end_out_value":null,"child_start_out_value":null,"headOf":{"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"}},"taskGroup":{"id":187,"key":187,"name":"\u5ea6\u5c0f\u6ee1\u5b89\u5168\u6295\u6807\u9879\u76ee-\u62d3\u5b9e\u79d1\u6280","project_id":1972,"client_id":1956,"head_of":1001,"status":0,"target_completed_at":"2024-05-31 00:00:00","start_at":"","client":{"id":1956,"key":1956,"name":"\u5ea6\u5c0f\u6ee1\u79d1\u6280(\u5317\u4eac)\u6709\u9650\u516c\u53f8","sales_rep":null,"logo":null},"project":{"id":1972,"key":1972,"name":"Fire-eye\u7f51\u7edc\u90ae\u4ef6\u6c99\u7bb1\u7cfb\u7edf\u91c7\u8d2d"},"taskGroupHeadOfRelationships":[{"id":513,"task_group_id":187,"user_id":1011},{"id":512,"task_group_id":187,"user_id":1001}],"isHeadOf":null,"isMember":null,"bgcolor":"#FF7300","status_display":"\u8fdb\u884c\u4e2d"},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":{"object_id":1581,"comment":1},"unreadComments":null,"parent":{"id":1535,"task_group_id":187,"title":"\u8d2d\u4e70\u6807\u4e66","description":"","client_id":null,"head_of":1001,"status":0,"target_completed_at":"2024-05-11 00:00:00","completed_at":"","created_by":1001,"created_at":"2024-05-10 13:57:33","updated_at":"2026-04-02 17:07:53","is_important":0,"complete_description":null,"weight":55,"tree_path":"1535","progress":55,"start_at":"2024-05-10 00:00:00","end_at":"2024-05-11 00:00:00","parent_id":null,"is_end_out":false,"is_start_out":false,"is_child_end_out":false,"is_child_start_out":false,"end_out_value":null,"start_out_value":null,"child_end_out_value":null,"child_start_out_value":null},"childCount":null,"childDoneCount":null,"index":2,"remain_time":"","target_completed_at_display":"","unread":0,"can_update":true,"can_delete":true,"can_create":false,"can_select":false,"bgcolor":"#FF7300","is_important_display":"\u666e\u901a","status_display":"\u8fdb\u884c\u4e2d","root_id":1535,"showTime":[],"child":[],"start_at_out_day":"","end_at_out_day":""}],"start_at_out_day":"","end_at_out_day":"","max_weight":45},"options":[{"key":"Tasks[head_of]","name":"\u6210\u5458","value":[{"key":1011,"name":"\u97e9\u96c5\u82b3"},{"key":1001,"name":"\u5218\u4eba\u8bda"},{"key":5360,"name":"\u5f20\u7ea2\u82b3"},{"key":5015,"name":"\u5f20\u96ea\u677e"}]},{"key":"Tasks[is_important]","name":"\u91cd\u8981\u6027","value":[{"key":"0","name":"\u666e\u901a"},{"key":"1","name":"\u91cd\u8981"}]}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"117.136.0.52","ua":"jinchangxiao\/2.3.156 (iPhone 12; iOS 26.5; Scale\/3.00)"}', FALSE, '2026-06-08 16:52:43', 199751680) RETURNING "id"