Total processing time: 139 ms; Peak memory: 5.210 MB. Show Profiling Timeline
| Time | Duration | Category | Info |
|---|---|---|---|
| 14:13:08.762 | 20.8 ms | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=12) AND ("object_id"=45) GROUP BY "object_id" |
| 14:13:08.691 | 17.1 ms | yii\db\Command::query | select 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_suppliers' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
| 14:13:08.783 | 16.2 ms | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=12) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=45) GROUP BY "object_id" |
| 14:13:08.685 | 5.1 ms | yii\db\Command::query | SELECT 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_suppliers' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
| 14:13:08.750 | 3.6 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011 |
| 14:13:08.682 | 2.6 ms | yii\db\Command::query | SELECT DISTINCT "s".* FROM "a57be577deb434"."tbl_suppliers" "s" LEFT JOIN "a57be577deb434"."tbl_contacts" "c" ON c.supplier_id = s.id and c.supplier_id is not null WHERE "s"."id"='45' GROUP BY "s"."id" |
| 14:13:08.758 | 1.9 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "address1" AS "name", "zip" FROM "a57be577deb434"."tbl_addresses" WHERE "id"=82 |
| 14:13:08.809 | 1.7 ms | yii\db\Command::query | INSERT 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/supplier/get-edit', '{"access_token":"wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm","device_type":"2","id":"45","posttime":"1784182400","token":"6b3a183564f1156d43dfeb62e8b15eb5","version_code":"1161"}', '{"code":200,"data":{"model":{"id":45,"name":"\u8054\u5f3a\u56fd\u9645\u8d38\u6613(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8","abbr":null,"pinyin_shortcut":"lqgjmyzgyxgs","main_products":"IBM\u670d\u52a1\u5668\/\u9510\u6377\u7f51\u7edc\/\u534e\u4e3a","company_nature":6,"website":"http:\/\/www.synnex.com.cn","established_at":"2005-11-25","capital":23000,"corp_rep":"\u5415\u5bb6\u8f89","reg_address":81,"telephone":"010-82025050","fax":"010-82025050","description":"\u603b\u4ee3\uff0c\u8d26\u671f\uff1a60\u5929\uff0c\u5ef6\u671f\u652f\u7968","main_contact":null,"created_by":1011,"created_at":"2017-02-13 11:14:57","updated_at":"2018-12-12 14:35:14","working_address":82,"capital_currency":"usd","payment_cycle":"60\u5929","account_number":"","createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","department_id":3,"avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"},"department":{"id":3,"key":3,"name":"\u5546\u52a1\u90e8"}},"supplierTags":{"id":107,"key":107,"name":"\u4ee3\u7406\u5546"},"companyNature":{"id":6,"key":6,"name":"\u5916\u8d44\u4f01\u4e1a"},"workingAddress":{"id":82,"key":82,"name":"\u88d5\u6c11\u8def12\u53f7\u4e2d\u56fd\u56fd\u9645\u79d1\u6280\u4f1a\u5c55\u4e2d\u5fc3B\u5ea712A\u5c4201\u5ba4","zip":""},"commentCount":null,"unreadComments":null,"is_cooperated":true,"can_update":true,"can_delete":true,"unread":0,"bgcolor":"#89c541"},"options":{"Suppliers[supplierTags]":{"key":"Suppliers[supplierTags]","name":"\u4f9b\u5e94\u5546\u7c7b\u578b","value":[{"key":105,"name":"\u5382\u5546"},{"key":106,"name":"\u5206\u9500\u5546"},{"key":107,"name":"\u4ee3\u7406\u5546"}]},"Suppliers[company_nature]":{"key":"Suppliers[company_nature]","name":"\u516c\u53f8\u6027\u8d28","value":[{"key":1,"name":"\u56fd\u6709\u4e0a\u5e02"},{"key":2,"name":"\u6c11\u8425\u4e0a\u5e02"},{"key":3,"name":"\u56fd\u6709\u4f01\u4e1a"},{"key":4,"name":"\u6c11\u8425\u4f01\u4e1a"},{"key":6,"name":"\u5916\u8d44\u4f01\u4e1a"}]}}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"223.104.40.7","ua":"jinchangxiao\/2.3.158 (iPhone 12; iOS 26.5.2; Scale\/3.00)"}', FALSE, '2026-07-16 14:13:08', 133017088) RETURNING "id" |
| 14:13:08.760 | 1.3 ms | yii\db\Command::query | SELECT "id", "supplier_id" FROM "a57be577deb434"."tbl_purchase_contracts" WHERE (("is_draft"=FALSE) AND ("is_chargeback"=FALSE) AND ("is_refuse"=FALSE)) AND ("supplier_id"=45) |
| 14:13:08.679 | 0.7 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm' |
| 14:13:08.802 | 0.7 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_user_visit_suppliers" WHERE ("user_id"=1000) AND ("supplier_id"=45)) |
| 14:13:08.757 | 0.6 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=6) AND ("id" IN (100, 107, 135, 140, 142, 153, 184, 189, 315, 349, 369, 432, 416)) |
| 14:13:08.755 | 0.6 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=3 |
| 14:13:08.806 | 0.5 ms | yii\db\Command::query | SELECT "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=6) AND ("is_delete"=FALSE) ORDER BY "sort", "id" |
| 14:13:08.681 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 14:13:08.754 | 0.5 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1011) |
| 14:13:08.807 | 0.5 ms | yii\db\Command::query | SELECT "id" AS "key", "name" FROM "a57be577deb434"."tbl_company_natures" WHERE "is_delete"=FALSE ORDER BY "order" |
| 14:13:08.756 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=45 |
| 14:13:08.757 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_company_natures" WHERE "id"=6 |
| 14:13:08.802 | 0.4 ms | yii\db\Command::query | SELECT EXISTS(SELECT DISTINCT s.* FROM "a57be577deb434"."tbl_suppliers" "s" WHERE "s"."id"=45) |
| 14:13:08.678 | 0.4 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |