Performance Profiling

Total processing time: 44 ms; Peak memory: 4.299 MB. Show Profiling Timeline

总计7条数据
TimeDurationCategoryInfo
  
15:06:43.6295.2 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/erp-inventory-product/product-view-list', '{"ErpUnionSearch":{"ticket_type":["20032"],"inventory":"1"},"id":"2265","page":"1","Filter":{"sort":"","name":""},"web_access_token":"niM9Np1xaU2lIsoGJh5qM6IxT9naEHjn"}', '{"code":2000,"result":{"list":[],"pagenation":{"totalcount":0,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"114.244.130.61","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-07-09 15:06:43', 32461056) RETURNING "id"
15:06:43.6223.9 msyii\db\Command::querySELECT COUNT(*) FROM (SELECT * FROM (SELECT * FROM (SELECT (r.id::varchar || 20032::varchar) as id, r.id as id2, null::integer as erp_purchase_inbound_id, null::integer as supplier_id, null::integer as project_id, null::integer as client_id, null::integer as purchase_contract_id, null::integer as sales_contract_id, r.wrote_date, r.serial_no, r.erp_store_id, 20032 as ticket_type, '调拨单' as ticket_type_display, r.abstract, r.description, r.created_by, r.amount, max(transfer_in.inventory) as inventory, max(transfer_in.in_number) as in_number, COALESCE(max(transfer_out.out_number), r.out_number) as out_number, max(transfer_in.purchase_amount) as purchase_amount, max(transfer_in.purchase_total_amount) as purchase_total_amount, null::numeric as sales_amount, COALESCE(max(transfer_out.sales_total_amount), r.out_amount) as sales_total_amount, handler, max(transfer_in.store_title) as store_title FROM "a57be577deb434"."tbl_erp_inventory_transfers" "r" LEFT JOIN (SELECT rp.erp_inventory_transfer_id, sum(eip.inventory) as inventory, sum(eip.number) as in_number, sum(eip.amount) as purchase_amount, sum(eip.total_amount) as purchase_total_amount, string_agg(distinct s.title, ',') as store_title FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" "rp" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_products" "eip" ON eip.erp_inventory_transfer_product_id = rp.id LEFT JOIN "a57be577deb434"."tbl_erp_stores" "s" ON eip.erp_store_id = s.id WHERE "rp"."product_id"='2265' GROUP BY "rp"."erp_inventory_transfer_id") "transfer_in" ON transfer_in.erp_inventory_transfer_id = r.id LEFT JOIN (SELECT "erp_inventory_transfer_id", sum(number) as out_number, sum(total_amount) as sales_total_amount FROM "a57be577deb434"."tbl_erp_inventory_transfer_spent_products" WHERE "product_id"='2265' GROUP BY "erp_inventory_transfer_id") "transfer_out" ON transfer_out.erp_inventory_transfer_id = r.id WHERE (transfer_in.erp_inventory_transfer_id is not null or transfer_out.erp_inventory_transfer_id is not null) AND ("status" IN (1, 2, 5)) GROUP BY "r"."id") "sub") "sub" WHERE "inventory" > 0 ORDER BY wrote_date DESC) "c"
15:06:43.6261.9 msyii\db\Command::querySELECT * FROM (SELECT * FROM (SELECT (r.id::varchar || 20032::varchar) as id, r.id as id2, null::integer as erp_purchase_inbound_id, null::integer as supplier_id, null::integer as project_id, null::integer as client_id, null::integer as purchase_contract_id, null::integer as sales_contract_id, r.wrote_date, r.serial_no, r.erp_store_id, 20032 as ticket_type, '调拨单' as ticket_type_display, r.abstract, r.description, r.created_by, r.amount, max(transfer_in.inventory) as inventory, max(transfer_in.in_number) as in_number, COALESCE(max(transfer_out.out_number), r.out_number) as out_number, max(transfer_in.purchase_amount) as purchase_amount, max(transfer_in.purchase_total_amount) as purchase_total_amount, null::numeric as sales_amount, COALESCE(max(transfer_out.sales_total_amount), r.out_amount) as sales_total_amount, handler, max(transfer_in.store_title) as store_title FROM "a57be577deb434"."tbl_erp_inventory_transfers" "r" LEFT JOIN (SELECT rp.erp_inventory_transfer_id, sum(eip.inventory) as inventory, sum(eip.number) as in_number, sum(eip.amount) as purchase_amount, sum(eip.total_amount) as purchase_total_amount, string_agg(distinct s.title, ',') as store_title FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" "rp" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_products" "eip" ON eip.erp_inventory_transfer_product_id = rp.id LEFT JOIN "a57be577deb434"."tbl_erp_stores" "s" ON eip.erp_store_id = s.id WHERE "rp"."product_id"='2265' GROUP BY "rp"."erp_inventory_transfer_id") "transfer_in" ON transfer_in.erp_inventory_transfer_id = r.id LEFT JOIN (SELECT "erp_inventory_transfer_id", sum(number) as out_number, sum(total_amount) as sales_total_amount FROM "a57be577deb434"."tbl_erp_inventory_transfer_spent_products" WHERE "product_id"='2265' GROUP BY "erp_inventory_transfer_id") "transfer_out" ON transfer_out.erp_inventory_transfer_id = r.id WHERE (transfer_in.erp_inventory_transfer_id is not null or transfer_out.erp_inventory_transfer_id is not null) AND ("status" IN (1, 2, 5)) GROUP BY "r"."id") "sub") "sub" WHERE "inventory" > 0 ORDER BY wrote_date DESC LIMIT 20
15:06:43.6000.9 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
15:06:43.6020.7 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
15:06:43.5990.5 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
15:06:43.6040.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001