Performance Profiling

Total processing time: 85 ms; Peak memory: 3.720 MB. Show Profiling Timeline

总计23条数据
TimeDurationCategoryInfo
  
09:34:25.21712.4 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
09:34:25.2377.1 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)
09:34:25.2115.4 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;
09:34:25.1935.1 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))
09:34:25.2044.6 msyii\db\Command::querySELECT "attachment_id" FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_id"=46) AND ("object_type" IN (20034, 20035)) ORDER BY "id"
09:34:25.1843.1 msyii\db\Command::querySELECT "t"."id" AS "object_id", "s"."id" AS "event_id", "t"."serial_no" AS "serial_no", "p"."bank_settle_at" AS "settle_at", "t"."created_at" AS "created_at", "s"."amount" AS "amount", "t"."client_id" AS "client_id", "t"."supplier_id" AS "supplier_id", "t"."contact_id" AS "contact_id", NULL::integer AS "department_id", "t"."handler" AS "handler_id", "t"."created_by" AS "created_by", CASE WHEN COUNT(DISTINCT bo.erp_bank_id) = 1 THEN MIN(bo.erp_bank_id) ELSE NULL END AS "erp_bank_id", CASE WHEN COUNT(DISTINCT bo.erp_bank_id) = 1 THEN MIN(b.serial_no) ELSE NULL END AS "bank_serial_no" FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "s" INNER JOIN "a57be577deb434"."tbl_erp_other_payment_tickets" "t" ON s.erp_other_payment_ticket_id = t.id INNER JOIN "a57be577deb434"."tbl_erp_payment_tickets" "p" ON s.erp_payment_ticket_id = p.id LEFT JOIN "a57be577deb434"."tbl_erp_payment_ticket_bank_outs" "bo" ON bo.erp_payment_ticket_id = p.id LEFT JOIN "a57be577deb434"."tbl_erp_banks" "b" ON b.id = bo.erp_bank_id WHERE (("t"."id"=46) AND ("s"."id"=2396)) AND ("p"."status" IN (2, 5)) AND ("p"."is_payment_settle"=TRUE) AND (NOT ("p"."bank_settle_at" IS NULL)) AND ("s"."amount" > 0) GROUP BY "s"."id", "s"."amount", "t"."id", "t"."serial_no", "t"."client_id", "t"."supplier_id", "t"."contact_id", "t"."handler", "t"."created_by", "t"."created_at", "p"."bank_settle_at"
09:34:25.2312.8 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"=95)
09:34:25.2012.8 msyii\db\Command::querySELECT "id", "type", "serial_no", "title" FROM "a57be577deb434"."tbl_ledger_auxiliary_items" WHERE ("ledger_id"=1) AND ("is_delete"=FALSE)
09:34:25.2461.9 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":"20020","object_id":"46","event_type":"1","event_id":"2396"}],"web_access_token":"1miv9vbRO-laHXjWHcrxyLIdOPR3NCIy"}', '{"code":2000,"result":{"summary":{"source_count":1,"ticket_count":1,"balanced_count":1,"error_count":0,"unbalanced_count":0,"total_amount":800},"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":"\u5176\u4ed6\u5e94\u4ed8\u5355 \u00b7 QTYFD-20260601-00001","source_sub_line_display":"\u5317\u4eac\u795e\u5dde\u90a6\u90a6\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8(\u8fc7\u5355) \u00b7 \u603b\u7ecf\u7406","source_amount_display":800,"source_bills":[{"object_type":20020,"object_id":46,"event_type":1,"event_id":2396,"object_type_name":"\u5176\u4ed6\u5e94\u4ed8\u5355","bill_no":"QTYFD-20260601-00001","bill_date":"2026-07-07","amount":800,"partner_name":"\u5317\u4eac\u795e\u5dde\u90a6\u90a6\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8(\u8fc7\u5355)","department":"\u603b\u7ecf\u7406"}],"can_generate_serial_no":true,"items":[{"summary":"\u652f\u4ed8\u5176\u4ed6\u5e94\u4ed8\u6b3e-QTYFD-20260601-00001","ledger_account_caption_id":95,"account_caption_display":"2241 \u5176\u4ed6\u5e94\u4ed8\u6b3e","auxiliary_item_id":null,"accountCaption":{"key":95,"name":"\u5176\u4ed6\u5e94\u4ed8\u6b3e","serial_no":"2241","title":"\u5176\u4ed6\u5e94\u4ed8\u6b3e","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"800.00","credit_amount":"0.00","source_refs":[{"object_type":20020,"object_id":46,"event_type":1,"event_id":2396}],"errors":[]},{"summary":"\u652f\u4ed8\u5176\u4ed6\u5e94\u4ed8\u6b3e-QTYFD-20260601-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":"800.00","source_refs":[{"object_type":20020,"object_id":46,"event_type":1,"event_id":2396}],"errors":[]}],"files":[],"debit_total":800,"credit_total":800,"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":"\u652f\u4ed8\u5176\u4ed6\u5e94\u4ed8\u6b3e-QTYFD-20260601-00001","ledger_account_caption_id":95,"account_caption_display":"2241 \u5176\u4ed6\u5e94\u4ed8\u6b3e","auxiliary_item_id":null,"accountCaption":{"key":95,"name":"\u5176\u4ed6\u5e94\u4ed8\u6b3e","serial_no":"2241","title":"\u5176\u4ed6\u5e94\u4ed8\u6b3e","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"800.00","credit_amount":"0.00","source_refs":[{"object_type":20020,"object_id":46,"event_type":1,"event_id":2396}],"errors":[]},{"summary":"\u652f\u4ed8\u5176\u4ed6\u5e94\u4ed8\u6b3e-QTYFD-20260601-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":"800.00","source_refs":[{"object_type":20020,"object_id":46,"event_type":1,"event_id":2396}],"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":"\u652f\u4ed8\u5176\u4ed6\u5e94\u4ed8\u6b3e-QTYFD-20260601-00001","ledger_account_caption_id":95,"account_caption_display":"2241 \u5176\u4ed6\u5e94\u4ed8\u6b3e","auxiliary_item_id":null,"accountCaption":{"key":95,"name":"\u5176\u4ed6\u5e94\u4ed8\u6b3e","serial_no":"2241","title":"\u5176\u4ed6\u5e94\u4ed8\u6b3e","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"800.00","credit_amount":"0.00","source_refs":[{"object_type":20020,"object_id":46,"event_type":1,"event_id":2396}],"errors":[]},{"summary":"\u652f\u4ed8\u5176\u4ed6\u5e94\u4ed8\u6b3e-QTYFD-20260601-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":"800.00","source_refs":[{"object_type":20020,"object_id":46,"event_type":1,"event_id":2396}],"errors":[]}],"files":[],"attachment_count":0,"debit_total":800,"credit_total":800}}]},"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-09 09:34:25', 76789248) RETURNING "id"
09:34:25.1891.0 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"
09:34:25.1731.0 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
09:34:25.1750.8 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
09:34:25.1720.6 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
09:34:25.1770.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
09:34:25.2340.4 msyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"=95) AND ("ledger_id"=1) AND ("is_delete"=FALSE)
09:34:25.1780.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "is_stop"=FALSE ORDER BY "id"
09:34:25.2350.4 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"=95) AND ("is_delete"=FALSE))
09:34:25.2360.4 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"=3)
09:34:25.2370.3 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"=3) AND ("is_delete"=FALSE))
09:34:25.1870.3 msyii\db\Command::querySELECT "id", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3303
09:34:25.1880.3 msyii\db\Command::querySELECT "id", "name", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
09:34:25.1890.3 msyii\db\Command::querySELECT "id", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4
09:34:25.2360.3 msyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"=3) AND ("ledger_id"=1) AND ("is_delete"=FALSE)