Performance Profiling

Total processing time: 153 ms; Peak memory: 3.641 MB. Show Profiling Timeline

总计23条数据
TimeDurationCategoryInfo
  
14:55:48.38514.0 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "is_stop"=FALSE ORDER BY "id"
14:55:48.45411.3 msyii\db\Command::queryselect 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_ledger_ticket_items' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
14:55:48.41310.6 msyii\db\Command::querySELECT "id", "serial_no", "title", "parent_id", "is_auxiliary_customer", "is_auxiliary_supplier" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("is_delete"=FALSE) ORDER BY "serial_no", "id"
14:55:48.4329.0 msyii\db\Command::querySELECT "id", "type", "serial_no", "title" FROM "a57be577deb434"."tbl_ledger_auxiliary_items" WHERE ("ledger_id"=1) AND ("is_delete"=FALSE)
14:55:48.3747.0 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
14:55:48.3576.9 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
14:55:48.4424.3 msyii\db\Command::querySELECT "attachment_id" FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_id"=3) AND ("object_type" IN (20054, 20033)) ORDER BY "id"
14:55:48.4754.3 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/voucher-center/get-generate', '{"voucher_date_type":"5","type":"1","entry_type":"1","date_to":"2026-07-31","bills":[{"object_type":"20019","object_id":"3","event_type":"0","event_id":"0"}],"web_access_token":"ukNwOz-BjUcQL9I3n8iWo2JcLwCMuHVk"}', '{"code":2000,"result":{"summary":{"source_count":1,"ticket_count":1,"balanced_count":1,"error_count":0,"unbalanced_count":0,"total_amount":1},"list":[{"ticket_key":"tmp_1","original_index":1,"ledger_id":1,"ticket_date":"2026-07-31","period":"202607","ticket_word":2,"ticket_word_display":"\u4ed8","serial_no":1,"serial_no_display":"001","ticket_no_display":"\u4ed8-202607-001","is_estimated_serial_no":true,"ticket_count":0,"source_count":1,"type":1,"ledger_status":1,"source_line_display":"\u9884\u4ed8\u6b3e\u5355 \u00b7 YFKD-20260611-00001","source_sub_line_display":"\u5317\u4eac\u60e0\u8054\u8baf\u901a\u4fe1\u606f\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8 \u00b7 \u603b\u7ecf\u7406","source_amount_display":1,"source_bills":[{"object_type":20019,"object_id":3,"event_type":0,"event_id":0,"object_type_name":"\u9884\u4ed8\u6b3e\u5355","bill_no":"YFKD-20260611-00001","bill_date":"2026-06-11","amount":1,"partner_name":"\u5317\u4eac\u60e0\u8054\u8baf\u901a\u4fe1\u606f\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8","department":"\u603b\u7ecf\u7406"}],"can_generate_serial_no":true,"items":[{"summary":"\u9884\u4ed8\u6b3e\u5355 YFKD-20260611-00001","ledger_account_caption_id":12,"account_caption_display":"1123 \u9884\u4ed8\u8d26\u6b3e","auxiliary_item_id":null,"accountCaption":{"key":12,"name":"\u9884\u4ed8\u8d26\u6b3e","serial_no":"1123","title":"\u9884\u4ed8\u8d26\u6b3e","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"1.00","credit_amount":"0.00","source_refs":[{"object_type":20019,"object_id":3,"event_type":0,"event_id":0}],"errors":[]},{"summary":"\u9884\u4ed8\u6b3e\u5355 YFKD-20260611-00001","ledger_account_caption_id":3,"account_caption_display":"100201 \u534e\u590f\u94f6\u884c\u5317\u4eac\u4e16\u7eaa\u57ce\u652f\u884c4065200001801900009530","auxiliary_item_id":null,"accountCaption":{"key":3,"name":"\u534e\u590f\u94f6\u884c\u5317\u4eac\u4e16\u7eaa\u57ce\u652f\u884c4065200001801900009530","serial_no":"100201","title":"\u534e\u590f\u94f6\u884c\u5317\u4eac\u4e16\u7eaa\u57ce\u652f\u884c4065200001801900009530","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"0.00","credit_amount":"1.00","source_refs":[{"object_type":20019,"object_id":3,"event_type":0,"event_id":0}],"errors":[]}],"files":[],"debit_total":1,"credit_total":1,"diff_amount":0,"diff_abs_amount":0,"status":"balanced","status_display":"\u501f\u8d37\u5e73\u8861","errors":[],"LedgerTickets":{"ledger_id":1,"ticket_date":"2026-07-31","ticket_word":2,"serial_no":1,"ticket_count":0,"type":1,"status":1,"items":[{"summary":"\u9884\u4ed8\u6b3e\u5355 YFKD-20260611-00001","ledger_account_caption_id":12,"account_caption_display":"1123 \u9884\u4ed8\u8d26\u6b3e","auxiliary_item_id":null,"accountCaption":{"key":12,"name":"\u9884\u4ed8\u8d26\u6b3e","serial_no":"1123","title":"\u9884\u4ed8\u8d26\u6b3e","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"1.00","credit_amount":"0.00","source_refs":[{"object_type":20019,"object_id":3,"event_type":0,"event_id":0}],"errors":[]},{"summary":"\u9884\u4ed8\u6b3e\u5355 YFKD-20260611-00001","ledger_account_caption_id":3,"account_caption_display":"100201 \u534e\u590f\u94f6\u884c\u5317\u4eac\u4e16\u7eaa\u57ce\u652f\u884c4065200001801900009530","auxiliary_item_id":null,"accountCaption":{"key":3,"name":"\u534e\u590f\u94f6\u884c\u5317\u4eac\u4e16\u7eaa\u57ce\u652f\u884c4065200001801900009530","serial_no":"100201","title":"\u534e\u590f\u94f6\u884c\u5317\u4eac\u4e16\u7eaa\u57ce\u652f\u884c4065200001801900009530","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"0.00","credit_amount":"1.00","source_refs":[{"object_type":20019,"object_id":3,"event_type":0,"event_id":0}],"errors":[]}],"files":[]},"model":{"ledger_id":1,"ticket_date":"2026-07-31","period":"202607","ticket_word":2,"ticket_word_display":"\u4ed8","serial_no":1,"serial_no_display":"001","ticket_no_display":"\u4ed8-202607-001","ticket_count":0,"type":1,"status":1,"items":[{"summary":"\u9884\u4ed8\u6b3e\u5355 YFKD-20260611-00001","ledger_account_caption_id":12,"account_caption_display":"1123 \u9884\u4ed8\u8d26\u6b3e","auxiliary_item_id":null,"accountCaption":{"key":12,"name":"\u9884\u4ed8\u8d26\u6b3e","serial_no":"1123","title":"\u9884\u4ed8\u8d26\u6b3e","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"1.00","credit_amount":"0.00","source_refs":[{"object_type":20019,"object_id":3,"event_type":0,"event_id":0}],"errors":[]},{"summary":"\u9884\u4ed8\u6b3e\u5355 YFKD-20260611-00001","ledger_account_caption_id":3,"account_caption_display":"100201 \u534e\u590f\u94f6\u884c\u5317\u4eac\u4e16\u7eaa\u57ce\u652f\u884c4065200001801900009530","auxiliary_item_id":null,"accountCaption":{"key":3,"name":"\u534e\u590f\u94f6\u884c\u5317\u4eac\u4e16\u7eaa\u57ce\u652f\u884c4065200001801900009530","serial_no":"100201","title":"\u534e\u590f\u94f6\u884c\u5317\u4eac\u4e16\u7eaa\u57ce\u652f\u884c4065200001801900009530","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"0.00","credit_amount":"1.00","source_refs":[{"object_type":20019,"object_id":3,"event_type":0,"event_id":0}],"errors":[]}],"files":[],"attachment_count":0,"debit_total":1,"credit_total":1}}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"39.156.194.178","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-07-07 14:55:48', 125493248) RETURNING "id"
14:55:48.4494.1 msyii\db\Command::querySELECT 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_ledger_ticket_items' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
14:55:48.4263.5 msyii\db\Command::querySELECT "erp_bank_id", "ledger_account_caption_id" FROM "a57be577deb434"."tbl_ledger_banks" WHERE (("ledger_id"=1) AND ("is_delete"=FALSE)) AND (NOT ("erp_bank_id" IS NULL)) AND (NOT ("ledger_account_caption_id" IS NULL))
14:55:48.4671.9 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"=12)
14:55:48.3521.7 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
14:55:48.3541.3 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
14:55:48.4721.2 msyii\db\Command::querySELECT COALESCE(max("serial_no"), 0) + 1 FROM "a57be577deb434"."tbl_ledger_tickets" WHERE ("ledger_id"=1) AND ("ticket_date"='2026-07-31') AND ("ticket_word"=2)
14:55:48.4060.6 msyii\db\Command::querySELECT "id", "serial_no", "wrote_date", "verify_at", "created_at", "amount", "created_by", "client_id", "supplier_id", "handler" FROM "a57be577deb434"."tbl_erp_advance_payment_tickets" WHERE ("id"=3) AND ("status"=2)
14:55:48.4720.4 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"=3) AND ("is_delete"=FALSE))
14:55:48.4070.4 msyii\db\Command::querySELECT "id", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=431
14:55:48.4700.4 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"=12) AND ("is_delete"=FALSE))
14:55:48.4690.3 msyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"=12) AND ("ledger_id"=1) AND ("is_delete"=FALSE)
14:55:48.4710.3 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"=3)
14:55:48.4090.3 msyii\db\Command::querySELECT "id", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4
14:55:48.4710.3 msyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"=3) AND ("ledger_id"=1) AND ("is_delete"=FALSE)
14:55:48.4080.3 msyii\db\Command::querySELECT "id", "name", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001