Database Queries

总计21条数据
TimeDurationTypeQuery
  
11:36:59.5290.6 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC'

11:36:59.5310.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

11:36:59.5330.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_tasks" WHERE "id"='1668'

11:36:59.5340.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=5250

11:36:59.5350.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5250)

11:36:59.5360.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"=203

11:36:59.5390.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"=203 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

11:36:59.5390.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_head_of_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=203)

11:36:59.5400.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_task_group_user_relationships" WHERE ("user_id"=1000) AND ("task_group_id"=203)

11:36:59.5400.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

11:36:59.5410.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

11:36:59.5420.1 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4

11:36:59.54219.7 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=101) AND ("object_id"=1668) GROUP BY "object_id"

11:36:59.56218.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"=1668) GROUP BY "object_id"

11:36:59.5800.4 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE "parent_id"=1668 GROUP BY "parent_id"

11:36:59.5810.4 msSELECTSELECT "parent_id", count(*) as count FROM "a57be577deb434"."tbl_tasks" WHERE ("status"=1) AND ("parent_id"=1668) GROUP BY "parent_id"

11:36:59.5890.4 msSELECTSELECT SUM(weight) FROM "a57be577deb434"."tbl_tasks" WHERE ("task_group_id"=203) AND (parent_id is null)

11:36:59.5900.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"=203) 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

11:36:59.5922.6 msSELECTSELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_api_log' and d.nspname = 'global' ORDER BY a.attnum;

11:36:59.59510.9 msSELECTselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_api_log' and ns.nspname='global' order by fns.nspname, fc.relname, a.attnum

11:36:59.6060.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/get-edit', '{"access_token":"R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC","device_type":"2","id":"1668","posttime":"1780803456","token":"12f52a9f872dd904616447f07dc0baff","version_code":"1159"}', '{"code":200,"data":{"model":{"id":1668,"task_group_id":203,"title":"5","description":null,"client_id":null,"head_of":5250,"status":0,"target_completed_at":"","completed_at":"","created_by":1001,"created_at":"2026-06-04 13:02:56","updated_at":"2026-06-04 13:02:56","is_important":0,"complete_description":null,"weight":null,"tree_path":"1668","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":5250,"key":5250,"name":"\u8463\u8363","sex":"M","avatar":{"id":157,"user_id":5250,"name":"\/files\/cdn\/a57be577deb434\/avatar\/10f9a0d9-7ea7-3910-9465-6ece76a0dae4.png"}},"taskGroup":{"id":203,"key":203,"name":"\u9879\u76ee","project_id":null,"client_id":null,"head_of":1001,"status":0,"target_completed_at":"2026-06-07 00:00:00","start_at":"2026-06-04 00:00:00","client":null,"project":null,"taskGroupHeadOfRelationships":[{"id":563,"task_group_id":203,"user_id":1000},{"id":564,"task_group_id":203,"user_id":5250},{"id":565,"task_group_id":203,"user_id":5016},{"id":561,"task_group_id":203,"user_id":1001},{"id":566,"task_group_id":203,"user_id":5461},{"id":562,"task_group_id":203,"user_id":5064}],"isHeadOf":{"id":563,"task_group_id":203,"user_id":1000},"isMember":{"id":2574,"task_group_id":203,"user_id":1000},"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":1668,"comment":1},"unreadComments":null,"parent":null,"childCount":null,"childDoneCount":null,"index":1,"remain_time":"","target_completed_at_display":"","unread":0,"can_update":true,"can_delete":true,"can_create":true,"can_select":false,"bgcolor":"#FF7300","is_important_display":"\u666e\u901a","status_display":"\u8fdb\u884c\u4e2d","root_id":"","showTime":[],"child":[],"start_at_out_day":"","end_at_out_day":"","max_weight":90},"options":[{"key":"Tasks[head_of]","name":"\u6210\u5458","value":[{"key":1000,"name":"\u66f9\u6c38\u751f"},{"key":5250,"name":"\u8463\u8363"},{"key":5016,"name":"\u9ad8\u90e1\u9633"},{"key":1001,"name":"\u5218\u4eba\u8bda"},{"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":"111.9.5.86","ua":"jinchangxiao\/2.3.156 (iPhone 12 mini; iOS 26.2; Scale\/3.00)"}', FALSE, '2026-06-07 11:36:59', 83163904) RETURNING "id"