Database Queries

总计69条数据
TimeDurationTypeQuery
  
10:17:24.9679.6 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm'

10:17:24.9926.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:17:25.0076.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"='1844'

10:17:25.0190.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_groups" WHERE "id"=106

10:17:25.0211.8 msUPDATEUPDATE "a57be577deb434"."tbl_tasks" SET "status"=0, "completed_at"=NULL, "updated_at"='now()' WHERE "id"=1844

10:17:25.0243.4 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Tasks', 1844, 'a:2:{s:6:"status";i:1;s:12:"completed_at";s:28:"2026-07-09 10:05:15.40829+08";}', '', 1000, '223.104.39.15')

10:17:25.0272.0 msUPDATEUPDATE "a57be577deb434"."tbl_tasks" SET "status"=0 WHERE ("parent_id"=1844) AND ("status"=2)

10:17:25.0290.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1844

10:17:25.0300.6 msUPDATEUPDATE "a57be577deb434"."tbl_tasks" SET "status"=0 WHERE ("parent_id"=1845) AND ("status"=2)

10:17:25.0310.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1845

10:17:25.0321.3 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Tasks', 1845, 'a:0:{}', '', 1000, '223.104.39.15')

10:17:25.0341.1 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Tasks', 1844, 'a:0:{}', '', 1000, '223.104.39.15')

10:17:25.0350.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1830

10:17:25.0360.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1830

10:17:25.0371.2 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Tasks', 1844, 'a:0:{}', '', 1000, '223.104.39.15')

10:17:25.0381.1 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Tasks', 1830, 'a:0:{}', '', 1000, '223.104.39.15')

10:17:25.0400.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_groups" WHERE "id"=106

10:17:25.0401.1 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Tasks', 1830, 'a:0:{}', '', 1000, '223.104.39.15')

10:17:25.0420.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_groups" WHERE "id"=106

10:17:25.0420.6 msSELECTSELECT SUM(weight) FROM "a57be577deb434"."tbl_tasks" WHERE ("task_group_id"=106) AND ("status"=1)

10:17:25.0430.6 msSELECTSELECT "status", "progress" FROM "a57be577deb434"."tbl_tasks" WHERE ("task_group_id"=106) AND (parent_id is null)

10:17:25.0441.1 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\TaskGroups', 106, 'a:0:{}', '', 1000, '223.104.39.15')

10:17:25.0450.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1844

10:17:25.0460.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:17:25.0470.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:17:25.0470.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:17:25.0480.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:17:25.0493.6 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (12, 'status', 1844, 101, NULL, NULL, 1000, 'now()', '["\u66f9\u6c38\u751f"]', '[]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u6062\u590d\u4e86","d3":"\u6e05\u5355","d4":[""]}'), (2, 'status', 106, 102, 1844, 101, 1000, 'now()', '["\u66f9\u6c38\u751f"]', '[]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u6062\u590d\u4e86","d3":"\u6e05\u5355","d4":[]}'), (2, 'status', 1830, 101, 1844, 101, 1000, 'now()', '["\u66f9\u6c38\u751f"]', '[]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u6062\u590d\u4e86","d3":"\u6e05\u5355","d4":[]}')

10:17:25.0530.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"='1844'

10:17:25.0540.3 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:17:25.0540.6 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

10:17:25.0550.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"=106

10:17:25.0560.8 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=982

10:17:25.0570.7 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=1018

10:17:25.0580.9 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

10:17:25.0600.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=106)

10:17:25.0600.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_user_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=106)

10:17:25.0610.3 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:17:25.0610.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

10:17:25.0620.5 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10

10:17:25.06244.5 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=101) AND ("object_id"=1844) GROUP BY "object_id"

10:17:25.10731.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"=1844) GROUP BY "object_id"

10:17:25.1390.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1830

10:17:25.1400.7 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1844 GROUP BY "parent_id"

10:17:25.1410.6 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=1) AND ("parent_id"=1844) GROUP BY "parent_id"

10:17:25.1480.4 msSELECTSELECT "id", "parent_id" FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1844

10:17:25.1490.3 msSELECTSELECT "id", "parent_id" FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1830

10:17:25.15018.4 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"=1844) GROUP BY "s"."id" ORDER BY "s"."status", "s"."target_completed_at", "s"."created_at" DESC

10:17:25.1690.5 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:17:25.1700.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

10:17:25.1700.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

10:17:25.1710.3 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "a57be577deb434"."tbl_clients" WHERE "id"=982

10:17:25.1710.3 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=1018

10:17:25.1720.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

10:17:25.1730.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=106)

10:17:25.1730.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_user_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=106)

10:17:25.1730.3 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

10:17:25.1740.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

10:17:25.1740.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10

10:17:25.17535.1 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=101) AND ("object_id"=1845) GROUP BY "object_id"

10:17:25.21018.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"=1845) GROUP BY "object_id"

10:17:25.2290.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1844

10:17:25.2300.6 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1845 GROUP BY "parent_id"

10:17:25.2310.6 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=1) AND ("parent_id"=1845) GROUP BY "parent_id"

10:17:25.2320.3 msSELECTSELECT "id", "parent_id" FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1845

10:17:25.2320.2 msSELECTSELECT "id", "parent_id" FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1844

10:17:25.2330.3 msSELECTSELECT "id", "parent_id" FROM "a57be577deb434"."tbl_tasks" WHERE "id"=1830

10:17:25.2330.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

10:17:25.23654.4 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, 1161, 'v2/task/close', '{"access_token":"wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm","device_type":"2","id":"1844","posttime":"1783563392","token":"25f4a74461f9cb7291f5ad0140598102","type":"0","version_code":"1161"}', '{"code":200,"data":{"model":{"id":1844,"task_group_id":106,"title":"\u54c8\u54c8\u54c8\u54c8","description":null,"client_id":null,"head_of":1000,"status":0,"target_completed_at":"","completed_at":"","created_by":1000,"created_at":"2026-07-03 11:08:00","updated_at":"2026-07-09 10:17:25","is_important":0,"complete_description":"\u4f1a\u4e0d\u4f1a","weight":null,"tree_path":"1830.1844","progress":0,"start_at":"","end_at":"","parent_id":1830,"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 00:00: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":622,"task_group_id":106,"user_id":1000},{"id":623,"task_group_id":106,"user_id":5250},{"id":624,"task_group_id":106,"user_id":5461},{"id":625,"task_group_id":106,"user_id":5064}],"isHeadOf":{"id":622,"task_group_id":106,"user_id":1000},"isMember":{"id":2649,"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":1844,"comment":3},"unreadComments":null,"parent":{"id":1830,"task_group_id":106,"title":"\u54c8\u54c8\u54c8","description":null,"client_id":null,"head_of":1000,"status":0,"target_completed_at":"","completed_at":"","created_by":1000,"created_at":"2026-07-01 19:02:08","updated_at":"2026-07-01 19:02:08","is_important":0,"complete_description":null,"weight":null,"tree_path":"1830","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":{"parent_id":1844,"count":1},"childDoneCount":null,"index":2,"remain_time":"","target_completed_at_display":"","unread":0,"can_update":true,"can_delete":true,"can_create":true,"can_select":true,"bgcolor":"#FF7300","is_important_display":"\u666e\u901a","status_display":"\u8fdb\u884c\u4e2d","root_id":1830,"showTime":[],"child":[{"id":1845,"task_group_id":106,"title":"\u597d\u51e0\u5e74","description":null,"client_id":null,"head_of":1000,"status":0,"target_completed_at":"","completed_at":"","created_by":1000,"created_at":"2026-07-03 11:08:07","updated_at":"2026-07-03 11:08:07","is_important":0,"complete_description":null,"weight":null,"tree_path":"1830.1844.1845","progress":0,"start_at":"","end_at":"","parent_id":1844,"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 00:00: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":622,"task_group_id":106,"user_id":1000},{"id":623,"task_group_id":106,"user_id":5250},{"id":624,"task_group_id":106,"user_id":5461},{"id":625,"task_group_id":106,"user_id":5064}],"isHeadOf":{"id":622,"task_group_id":106,"user_id":1000},"isMember":{"id":2649,"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":1844,"task_group_id":106,"title":"\u54c8\u54c8\u54c8\u54c8","description":null,"client_id":null,"head_of":1000,"status":0,"target_completed_at":"","completed_at":"","created_by":1000,"created_at":"2026-07-03 11:08:00","updated_at":"2026-07-09 10:17:25","is_important":0,"complete_description":"\u4f1a\u4e0d\u4f1a","weight":null,"tree_path":"1830.1844","progress":0,"start_at":"","end_at":"","parent_id":1830,"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":3,"remain_time":"","target_completed_at_display":"","unread":0,"can_update":true,"can_delete":true,"can_create":false,"can_select":true,"bgcolor":"#FF7300","is_important_display":"\u666e\u901a","status_display":"\u8fdb\u884c\u4e2d","root_id":1830,"showTime":[],"child":[],"start_at_out_day":"","end_at_out_day":""}],"start_at_out_day":"","end_at_out_day":""},"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"}]}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"223.104.39.15","ua":"jinchangxiao\/2.3.158 (iPhone 12; iOS 26.5; Scale\/3.00)"}', FALSE, '2026-07-09 10:17:25', 274212096) RETURNING "id"