Database Queries

总计23条数据
TimeDurationTypeQuery
  
14:11:52.1132.2 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

14:11:52.1161.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

14:11:52.1204.9 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_operation_tasks' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

14:11:52.12611.5 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_operation_tasks' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

14:11:52.1380.6 msSELECTSELECT "head_of" FROM "a57be577deb434"."tbl_operation_tasks" "s" GROUP BY "s"."id" ORDER BY "head_of"

14:11:52.1380.6 msSELECTSELECT COUNT(*) FROM (SELECT s.* FROM "a57be577deb434"."tbl_operation_tasks" "s" WHERE "s"."head_of"=1001 GROUP BY "s"."id" ORDER BY "s"."created_at" DESC) "c"

14:11:52.1390.3 msSELECTSELECT s.* FROM "a57be577deb434"."tbl_operation_tasks" "s" WHERE "s"."head_of"=1001 GROUP BY "s"."id" ORDER BY "s"."created_at" DESC LIMIT 20

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

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

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

14:11:52.1434.7 msSELECTSELECT "operation_task_id", count(*) AS count FROM "a57be577deb434"."tbl_operation_task_contacts" WHERE ("has_follow"=TRUE) AND ("operation_task_id" IN (129, 126, 120, 119)) GROUP BY "operation_task_id"

14:11:52.1480.8 msSELECTSELECT "operation_task_id", count(*) AS count FROM "a57be577deb434"."tbl_operation_task_contacts" WHERE (("is_complete"=FALSE) OR (is_complete IS NULL)) AND ("operation_task_id" IN (129, 126, 120, 119)) GROUP BY "operation_task_id"

14:11:52.1490.8 msSELECTSELECT "operation_task_id", count(*) AS count FROM "a57be577deb434"."tbl_operation_task_contacts" WHERE ("is_achieve"=FALSE) AND ("operation_task_id" IN (129, 126, 120, 119)) GROUP BY "operation_task_id"

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

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

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

14:11:52.1510.8 msSELECTSELECT "operation_task_id", count(*) AS count FROM "a57be577deb434"."tbl_operation_task_contacts" WHERE "operation_task_id" IN (129, 126, 120, 119) GROUP BY "operation_task_id"

14:11:52.15120.8 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=22) AND ("object_id" IN (129, 126, 120, 119)) GROUP BY "object_id"

14:11:52.17217.1 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=22) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id" IN (129, 126, 120, 119)) GROUP BY "object_id"

14:11:52.1901.0 msSELECTSELECT "id", "user_id", "user_id" AS "key", "operation_task_id" FROM "a57be577deb434"."tbl_operation_task_remind_receivers" WHERE "operation_task_id" IN (129, 126, 120, 119)

14:11:52.1933.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=22) AND ("visit_date"='2025-08-11')

14:11:52.1970.9 msUPDATEUPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=2, "last_visit_at"='now()' WHERE "id"=55027

14:11:52.1981.2 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/operation/list', '[]', '{"code":2000,"result":{"list":[{"id":129,"title":"\u9001\u793c","target":"\u7ea6\u89c1\u62dc\u8bbf","action":"\u7535\u8bdd","result":"","script":"","is_complete":false,"description":"","complete_at":"","head_of":1001,"created_by":1001,"created_at":"2023-09-13 17:59:22","updated_at":"","remind_day":"","remind_time":"","remind_date":"","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"hasfollowContact":{"operation_task_id":129,"count":1},"unCompleteContact":{"operation_task_id":129,"count":97},"unachieveContact":"","headOf":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"operationTaskContactCount":{"operation_task_id":129,"count":99},"commentCount":{},"unreadComments":{},"operationTaskRemindReceivers":[],"can_complete":false,"can_update":true,"can_delete":true,"bgcolor":"#4993d0"},{"id":126,"title":"\u5411\u5ba2\u6237\u63a8\u8350MSS","target":"\u8bdd\u672f","action":"\u7535\u8bdd","result":"","script":"\u8bdd\u672f","is_complete":false,"description":"","complete_at":"","head_of":1001,"created_by":1001,"created_at":"2023-05-23 11:48:44","updated_at":"2023-05-23 11:53:33","remind_day":"","remind_time":"","remind_date":"","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"hasfollowContact":{},"unCompleteContact":{"operation_task_id":126,"count":46},"unachieveContact":"","headOf":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"operationTaskContactCount":{"operation_task_id":126,"count":48},"commentCount":{},"unreadComments":{},"operationTaskRemindReceivers":[],"can_complete":true,"can_update":true,"can_delete":true,"bgcolor":"#4993d0"},{"id":120,"title":"\u62dc\u8bbf\u5ba2\u6237","target":"\u9001\u793c\u7269","action":"\u6253\u7535\u8bdd","result":"","script":"\u54c8\u54c8","is_complete":true,"description":"","complete_at":"2022-05-26 21:20:57","head_of":1001,"created_by":1001,"created_at":"2022-05-26 21:20:13","updated_at":"2022-05-26 21:20:57","remind_day":"","remind_time":"","remind_date":"","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"hasfollowContact":{},"unCompleteContact":{"operation_task_id":120,"count":47},"unachieveContact":"","headOf":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"operationTaskContactCount":{"operation_task_id":120,"count":50},"commentCount":{},"unreadComments":{},"operationTaskRemindReceivers":[],"can_complete":false,"can_update":true,"can_delete":true,"bgcolor":"#89c541"},{"id":119,"title":"\u516c\u53f8\u4ecb\u7ecd","target":"\u6253\u901a\u7535\u8bdd","action":"\u6253\u901a\u7535\u8bdd","result":"","script":"","is_complete":true,"description":"","complete_at":"2022-05-25 18:41:54","head_of":1001,"created_by":1001,"created_at":"2022-05-25 18:33:49","updated_at":"2022-05-25 18:41:54","remind_day":"","remind_time":"","remind_date":"","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"hasfollowContact":{},"unCompleteContact":{"operation_task_id":119,"count":21},"unachieveContact":"","headOf":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"operationTaskContactCount":{"operation_task_id":119,"count":25},"commentCount":{},"unreadComments":{},"operationTaskRemindReceivers":[],"can_complete":false,"can_update":true,"can_delete":true,"bgcolor":"#89c541"}],"can_create":true,"pagenation":{"totalcount":4,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-11 14:11:52') RETURNING "id"