Database Queries

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

16:56:22.8420.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

16:56:22.8420.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"='1672'

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

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

16:56:22.8440.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"=202

16:56:22.8440.2 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128

16:56:22.8450.2 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=3854

16:56:22.8450.4 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"=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

16:56:22.8450.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=202)

16:56:22.8460.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_user_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=202)

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

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

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

16:56:22.84720.4 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=101) AND ("object_id"=1672) GROUP BY "object_id"

16:56:22.86718.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"=1672) GROUP BY "object_id"

16:56:22.8860.4 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1672 GROUP BY "parent_id"

16:56:22.8860.3 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=1) AND ("parent_id"=1672) GROUP BY "parent_id"

16:56:22.89015.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"=1672) GROUP BY "s"."id" ORDER BY "s"."status", "s"."target_completed_at", "s"."created_at" DESC

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

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

16:56:22.9070.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"=202

16:56:22.9070.3 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128

16:56:22.9080.2 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=3854

16:56:22.9081.1 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"=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

16:56:22.9090.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=202)

16:56:22.9100.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_user_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=202)

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

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

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

16:56:22.91135.9 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=101) AND ("object_id"=1673) GROUP BY "object_id"

16:56:22.94725.2 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"=1673) GROUP BY "object_id"

16:56:22.9730.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1672

16:56:22.9730.5 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1673 GROUP BY "parent_id"

16:56:22.9740.5 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=1) AND ("parent_id"=1673) GROUP BY "parent_id"

16:56:22.9750.6 msSELECTSELECT SUM(weight) FROM "a57be577deb434"."tbl_tasks" WHERE ("task_group_id"=202) AND (parent_id is null)

16:56:22.9760.9 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"=202) OR ("u"."id"=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:56:22.9781.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":"1672","posttime":"1780908928","token":"e2853a0a011a45ed44d533818aeff335","version_code":"1159"}', '{"code":200,"data":{"model":{"id":1672,"task_group_id":202,"title":"\u6d4b\u8bd51","description":null,"client_id":null,"head_of":1001,"status":0,"target_completed_at":"","completed_at":"","created_by":1001,"created_at":"2026-06-04 20:37:15","updated_at":"2026-06-04 20:37:15","is_important":0,"complete_description":null,"weight":null,"tree_path":"1672","progress":0,"start_at":"","end_at":"","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":202,"key":202,"name":"\u5907\u4efd\u9879\u76ee\u4e8c\u671f","project_id":3854,"client_id":2128,"head_of":5064,"status":0,"target_completed_at":"","start_at":"","client":{"id":2128,"key":2128,"name":"\u5317\u4eac\u79d1\u6280\u6709\u9650\u516c\u53f8","sales_rep":5087,"logo":null},"project":{"id":3854,"key":3854,"name":"\u5907\u4efd\u9879\u76ee\u4e8c\u671f"},"taskGroupHeadOfRelationships":[{"id":547,"task_group_id":202,"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":null,"unreadComments":null,"parent":null,"childCount":{"parent_id":1672,"count":1},"childDoneCount":null,"index":1,"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":"","showTime":[],"child":[{"id":1673,"task_group_id":202,"title":"\u6d4b\u8bd5111","description":null,"client_id":null,"head_of":1001,"status":0,"target_completed_at":"","completed_at":"","created_by":1001,"created_at":"2026-06-04 20:37:24","updated_at":"2026-06-04 20:37:24","is_important":0,"complete_description":null,"weight":null,"tree_path":"1672.1673","progress":0,"start_at":"","end_at":"","parent_id":1672,"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":202,"key":202,"name":"\u5907\u4efd\u9879\u76ee\u4e8c\u671f","project_id":3854,"client_id":2128,"head_of":5064,"status":0,"target_completed_at":"","start_at":"","client":{"id":2128,"key":2128,"name":"\u5317\u4eac\u79d1\u6280\u6709\u9650\u516c\u53f8","sales_rep":5087,"logo":null},"project":{"id":3854,"key":3854,"name":"\u5907\u4efd\u9879\u76ee\u4e8c\u671f"},"taskGroupHeadOfRelationships":[{"id":547,"task_group_id":202,"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":null,"unreadComments":null,"parent":{"id":1672,"task_group_id":202,"title":"\u6d4b\u8bd51","description":null,"client_id":null,"head_of":1001,"status":0,"target_completed_at":"","completed_at":"","created_by":1001,"created_at":"2026-06-04 20:37:15","updated_at":"2026-06-04 20:37:15","is_important":0,"complete_description":null,"weight":null,"tree_path":"1672","progress":0,"start_at":"","end_at":"","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":1672,"showTime":[],"child":[],"start_at_out_day":"","end_at_out_day":""}],"start_at_out_day":"","end_at_out_day":"","max_weight":100},"options":[{"key":"Tasks[head_of]","name":"\u6210\u5458","value":[{"key":1001,"name":"\u5218\u4eba\u8bda"}]},{"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:56:22', 138863104) RETURNING "id"