Database Queries

总计36条数据
TimeDurationTypeQuery
  
09:59:49.9850.6 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='ONv_OQ6eSOxFL2I62K1e82WGipv8fS1S'

09:59:49.9860.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

09:59:49.9870.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"='1652'

09:59:49.9880.3 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

09:59:49.9880.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

09:59:49.9890.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"=106

09:59:49.9890.5 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=982

09:59:49.9900.4 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=1018

09:59:49.9900.6 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"=106 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

09:59:49.9910.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=106)

09:59:49.9920.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

09:59:49.9920.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

09:59:49.9920.1 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10

09:59:49.99320.3 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=101) AND ("object_id"=1652) GROUP BY "object_id"

09:59:50.01318.3 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"=1652) GROUP BY "object_id"

09:59:50.0320.4 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1652 GROUP BY "parent_id"

09:59:50.0320.4 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=1) AND ("parent_id"=1652) GROUP BY "parent_id"

09:59:50.03612.5 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"=1652) GROUP BY "s"."id" ORDER BY "s"."status", "s"."target_completed_at", "s"."created_at" DESC

09:59:50.0490.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

09:59:50.0490.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

09:59:50.0490.2 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"=106

09:59:50.0500.2 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=982

09:59:50.0500.2 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=1018

09:59:50.0500.5 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"=106 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

09:59:50.0510.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=106)

09:59:50.0510.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

09:59:50.0510.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

09:59:50.0520.1 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10

09:59:50.05222.5 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=101) AND ("object_id" IN (1654, 1653)) GROUP BY "object_id"

09:59:50.07518.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" IN (1654, 1653)) GROUP BY "object_id"

09:59:50.0930.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1652

09:59:50.0940.4 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id" IN (1654, 1653) GROUP BY "parent_id"

09:59:50.0940.4 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=1) AND ("parent_id" IN (1654, 1653)) GROUP BY "parent_id"

09:59:50.0950.4 msSELECTSELECT SUM(weight) FROM "a57be577deb434"."tbl_tasks" WHERE ("task_group_id"=106) AND (parent_id is null)

09:59:50.0950.8 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"=106) OR ("u"."id"=1000) 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

09:59:50.0971.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, 1158, 'v2/task/get-edit', '{"access_token":"ONv_OQ6eSOxFL2I62K1e82WGipv8fS1S","device_type":"2","id":"1652","posttime":"1780279168","token":"7d446a776391d2bb1bfcee12d5fa099c","version_code":"1158"}', '{"code":200,"data":{"model":{"id":1652,"task_group_id":106,"title":"\u4e5d\u516b\u4e5d\u516b","description":"\u516b\u4f70\u4f34\u80e1\u6912\u7c89","client_id":null,"head_of":1000,"status":1,"target_completed_at":"2026-06-30 00:00:00","completed_at":"2026-05-31 17:04:34","created_by":1000,"created_at":"2026-05-31 17:01:33","updated_at":"2026-05-31 17:04:34","is_important":0,"complete_description":"\u4f60\u51cf\u80a5\u51cf\u80a5","weight":25,"tree_path":"1652","progress":50,"start_at":"2026-05-31 00:00:00","end_at":"2026-06-30 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":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/\/avatar\/618545c1-a2ce-3918-9d51-25924baf6d6f.jpg"}},"taskGroup":{"id":106,"key":106,"name":"2020\u5e742\u6708\u5f00\u53d1\u90e8\u4efb\u52a1","project_id":1018,"client_id":982,"head_of":1000,"status":0,"target_completed_at":"2027-03-01 23:59:00","start_at":"2020-02-10 00:00:00","client":{"id":982,"key":982,"name":"\u4e2d\u56fd\u4fe1\u606f\u5b89\u5168\u7814\u7a76\u6240","sales_rep":1001,"logo":null},"project":{"id":1018,"key":1018,"name":"\u89c6\u9891\u534f\u4f5c\u53ca\u5373\u65f6\u901a\u8baf\u878d\u5408\u65b9\u6848"},"taskGroupHeadOfRelationships":[{"id":544,"task_group_id":106,"user_id":1000},{"id":546,"task_group_id":106,"user_id":5250},{"id":545,"task_group_id":106,"user_id":5461},{"id":543,"task_group_id":106,"user_id":5064}],"isHeadOf":{"id":544,"task_group_id":106,"user_id":1000},"bgcolor":"#FF7300","status_display":"\u8fdb\u884c\u4e2d"},"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/\/avatar\/618545c1-a2ce-3918-9d51-25924baf6d6f.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"commentCount":{"object_id":1652,"comment":3},"unreadComments":null,"parent":null,"childCount":{"parent_id":1652,"count":2},"childDoneCount":{"parent_id":1652,"count":1},"index":1,"remain_time":"","target_completed_at_display":"","unread":0,"can_update":true,"can_delete":true,"can_create":false,"can_select":true,"bgcolor":"#21943A","is_important_display":"\u666e\u901a","status_display":"\u5df2\u5b8c\u6210","root_id":"","showTime":{"time_name":"\u5b8c\u6210\u65f6\u95f4","time_display":"2026\u5e7405\u670831\u65e5","description":""},"child":[{"id":1654,"task_group_id":106,"title":"www","description":"","client_id":null,"head_of":1000,"status":1,"target_completed_at":"","completed_at":"2026-05-31 17:04:24","created_by":1000,"created_at":"2026-05-31 17:02:57","updated_at":"2026-05-31 17:04:24","is_important":0,"complete_description":"\u8111\u673a\u63a5\u53e3","weight":0,"tree_path":"1652.1654","progress":100,"start_at":"","end_at":"","parent_id":1652,"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":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/\/avatar\/618545c1-a2ce-3918-9d51-25924baf6d6f.jpg"}},"taskGroup":{"id":106,"key":106,"name":"2020\u5e742\u6708\u5f00\u53d1\u90e8\u4efb\u52a1","project_id":1018,"client_id":982,"head_of":1000,"status":0,"target_completed_at":"2027-03-01 23:59:00","start_at":"2020-02-10 00:00:00","client":{"id":982,"key":982,"name":"\u4e2d\u56fd\u4fe1\u606f\u5b89\u5168\u7814\u7a76\u6240","sales_rep":1001,"logo":null},"project":{"id":1018,"key":1018,"name":"\u89c6\u9891\u534f\u4f5c\u53ca\u5373\u65f6\u901a\u8baf\u878d\u5408\u65b9\u6848"},"taskGroupHeadOfRelationships":[{"id":544,"task_group_id":106,"user_id":1000},{"id":546,"task_group_id":106,"user_id":5250},{"id":545,"task_group_id":106,"user_id":5461},{"id":543,"task_group_id":106,"user_id":5064}],"isHeadOf":{"id":544,"task_group_id":106,"user_id":1000},"bgcolor":"#FF7300","status_display":"\u8fdb\u884c\u4e2d"},"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/\/avatar\/618545c1-a2ce-3918-9d51-25924baf6d6f.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"commentCount":{"object_id":1654,"comment":1},"unreadComments":null,"parent":{"id":1652,"task_group_id":106,"title":"\u4e5d\u516b\u4e5d\u516b","description":"\u516b\u4f70\u4f34\u80e1\u6912\u7c89","client_id":null,"head_of":1000,"status":1,"target_completed_at":"2026-06-30 00:00:00","completed_at":"2026-05-31 17:04:34","created_by":1000,"created_at":"2026-05-31 17:01:33","updated_at":"2026-05-31 17:04:34","is_important":0,"complete_description":"\u4f60\u51cf\u80a5\u51cf\u80a5","weight":25,"tree_path":"1652","progress":50,"start_at":"2026-05-31 00:00:00","end_at":"2026-06-30 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":true,"bgcolor":"#21943A","is_important_display":"\u666e\u901a","status_display":"\u5df2\u5b8c\u6210","root_id":1652,"showTime":{"time_name":"\u5b8c\u6210\u65f6\u95f4","time_display":"2026\u5e7405\u670831\u65e5","description":""},"child":[],"start_at_out_day":"","end_at_out_day":""},{"id":1653,"task_group_id":106,"title":"\u94b1\u94b1\u94b1","description":"","client_id":null,"head_of":1000,"status":2,"target_completed_at":"2026-06-08 00:00:00","completed_at":"","created_by":1000,"created_at":"2026-05-31 17:02:32","updated_at":"2026-05-31 17:02:32","is_important":0,"complete_description":null,"weight":0,"tree_path":"1652.1653","progress":0,"start_at":"2026-05-31 00:00:00","end_at":"2026-06-08 00:00:00","parent_id":1652,"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":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/\/avatar\/618545c1-a2ce-3918-9d51-25924baf6d6f.jpg"}},"taskGroup":{"id":106,"key":106,"name":"2020\u5e742\u6708\u5f00\u53d1\u90e8\u4efb\u52a1","project_id":1018,"client_id":982,"head_of":1000,"status":0,"target_completed_at":"2027-03-01 23:59:00","start_at":"2020-02-10 00:00:00","client":{"id":982,"key":982,"name":"\u4e2d\u56fd\u4fe1\u606f\u5b89\u5168\u7814\u7a76\u6240","sales_rep":1001,"logo":null},"project":{"id":1018,"key":1018,"name":"\u89c6\u9891\u534f\u4f5c\u53ca\u5373\u65f6\u901a\u8baf\u878d\u5408\u65b9\u6848"},"taskGroupHeadOfRelationships":[{"id":544,"task_group_id":106,"user_id":1000},{"id":546,"task_group_id":106,"user_id":5250},{"id":545,"task_group_id":106,"user_id":5461},{"id":543,"task_group_id":106,"user_id":5064}],"isHeadOf":{"id":544,"task_group_id":106,"user_id":1000},"bgcolor":"#FF7300","status_display":"\u8fdb\u884c\u4e2d"},"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/\/avatar\/618545c1-a2ce-3918-9d51-25924baf6d6f.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"commentCount":null,"unreadComments":null,"parent":{"id":1652,"task_group_id":106,"title":"\u4e5d\u516b\u4e5d\u516b","description":"\u516b\u4f70\u4f34\u80e1\u6912\u7c89","client_id":null,"head_of":1000,"status":1,"target_completed_at":"2026-06-30 00:00:00","completed_at":"2026-05-31 17:04:34","created_by":1000,"created_at":"2026-05-31 17:01:33","updated_at":"2026-05-31 17:04:34","is_important":0,"complete_description":"\u4f60\u51cf\u80a5\u51cf\u80a5","weight":25,"tree_path":"1652","progress":50,"start_at":"2026-05-31 00:00:00","end_at":"2026-06-30 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":"#414141","is_important_display":"\u666e\u901a","status_display":"\u5df2\u4e2d\u6b62","root_id":1652,"showTime":[],"child":[],"start_at_out_day":"","end_at_out_day":""}],"start_at_out_day":"","end_at_out_day":"","max_weight":0},"options":[{"key":"Tasks[head_of]","name":"\u6210\u5458","value":[{"key":1000,"name":"\u66f9\u6c38\u751f"},{"key":5250,"name":"\u8463\u8363"},{"key":5461,"name":"\u8096\u5e05"},{"key":5064,"name":"\u59da\u96ea\u7eaf"}]},{"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.176.186.93","ua":"jinchangxiao\/2.3.155 (iPhone 12 mini; iOS 26.2; Scale\/3.00)"}', FALSE, '2026-06-01 09:59:50', 113872128) RETURNING "id"