Total processing time: 29 ms; Peak memory: 2.926 MB. Show Profiling Timeline
| Time | Duration | Category | Info |
|---|---|---|---|
| 17:44:17.755 | 2.6 ms | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 5252, 6, 'ledger/book/list-detail', '{"access_token":"O6Vr7bn3kQPZ5hlF6w1MM7SX_Njw-iTV","ledger_id":"1","page":"1","pageSize":"200","LedgerBookSearch":{"period_start":"2026-05","period_end":"2026-05","start_account_caption_id":"58","end_account_caption_id":"58","level_from":"1","level_to":"6","show_auxiliary":"0","show_disabled":"0","hide_empty_total":"0","hide_zero_balance":"0"},"web_access_token":"O6Vr7bn3kQPZ5hlF6w1MM7SX_Njw-iTV"}', '{"code":2000,"result":{"summary":{"debit_amount":"0","credit_amount":"0","record_count":3},"list":[{"row_type":"opening","date":"2026-05","ticket_id":"","ticket_no":"","account_caption_id":58,"account_caption_serial_no":"22210101","account_caption_title":"\u8fdb\u9879\u7a0e\u989d","account_caption_name":"22210101 \u8fdb\u9879\u7a0e\u989d","summary":"\u671f\u521d\u4f59\u989d","debit_amount":"0","credit_amount":"0","direction":"\u5e73","balance_amount":"0","auxiliary_item_display":"--","ticket_no_display":""},{"row_type":"period_total","date":"2026-05","ticket_id":"","ticket_no":"","account_caption_id":58,"account_caption_serial_no":"22210101","account_caption_title":"\u8fdb\u9879\u7a0e\u989d","account_caption_name":"22210101 \u8fdb\u9879\u7a0e\u989d","summary":"\u672c\u671f\u5408\u8ba1","debit_amount":"0","credit_amount":"0","direction":"\u5e73","balance_amount":"0","auxiliary_item_display":"--","ticket_no_display":""},{"row_type":"year_total","date":"2026-05","ticket_id":"","ticket_no":"","account_caption_id":58,"account_caption_serial_no":"22210101","account_caption_title":"\u8fdb\u9879\u7a0e\u989d","account_caption_name":"22210101 \u8fdb\u9879\u7a0e\u989d","summary":"\u672c\u5e74\u7d2f\u8ba1","debit_amount":"0","credit_amount":"0","direction":"\u5e73","balance_amount":"0","auxiliary_item_display":"--","ticket_no_display":""}],"pagenation":{"totalcount":3,"thispage":1,"pagesize":200}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"221.216.117.25","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-06-29 17:44:17', 20743936) RETURNING "id" |
| 17:44:17.745 | 1.9 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"='1') AND ("is_delete"=FALSE) ORDER BY "serial_no", "id" |
| 17:44:17.752 | 1.4 ms | yii\db\Command::query | SELECT "i"."id" AS "id", "t"."id" AS "ticket_id", "t"."ticket_date" AS "ticket_date", "t"."serial_no" AS "serial_no", (CASE WHEN t.ticket_word = 4 THEN '记' WHEN t.ticket_word = 2 THEN '付' WHEN t.ticket_word = 3 THEN '转' WHEN t.ticket_word = 1 THEN '收' ELSE '' END) || '-' || LPAD(t.serial_no::text, 3, '0') AS "ticket_no", "i"."ledger_account_caption_id" AS "ledger_account_caption_id", "i"."summary" AS "summary", "i"."debit_amount" AS "debit_amount", "i"."credit_amount" AS "credit_amount", "i"."sort" AS "sort", "a"."serial_no" AS "auxiliary_serial_no", "a"."title" AS "auxiliary_title" FROM "a57be577deb434"."tbl_ledger_ticket_items" "i" INNER JOIN "a57be577deb434"."tbl_ledger_tickets" "t" ON i.ledger_ticket_id = t.id LEFT JOIN "a57be577deb434"."tbl_ledger_auxiliary_items" "a" ON i.auxiliary_item_id = a.id WHERE (("t"."ledger_id"='1') AND ("t"."status"=1)) AND ("i"."ledger_account_caption_id"=58) AND ("t"."ticket_date" >= '2026-05-01') AND ("t"."ticket_date" <= '2026-05-31') ORDER BY "i"."ledger_account_caption_id", "t"."ticket_date", "t"."serial_no", "i"."sort", "i"."id" |
| 17:44:17.749 | 1.2 ms | yii\db\Command::query | SELECT "i"."ledger_account_caption_id" AS "ledger_account_caption_id", COALESCE(sum(i.debit_amount), 0) AS "debit_amount", COALESCE(sum(i.credit_amount), 0) AS "credit_amount" FROM "a57be577deb434"."tbl_ledger_ticket_items" "i" INNER JOIN "a57be577deb434"."tbl_ledger_tickets" "t" ON i.ledger_ticket_id = t.id WHERE (("t"."ledger_id"='1') AND ("t"."status"=1)) AND ("i"."ledger_account_caption_id" IN (1, 170, 171, 172, 173, 2, 3, 4, 169, 174, 175, 176, 177, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168)) AND ("t"."ticket_date" >= '2026-05-01') AND ("t"."ticket_date" <= '2026-05-31') GROUP BY "i"."ledger_account_caption_id" |
| 17:44:17.751 | 1.1 ms | yii\db\Command::query | SELECT "i"."ledger_account_caption_id" AS "ledger_account_caption_id", COALESCE(sum(i.debit_amount), 0) AS "debit_amount", COALESCE(sum(i.credit_amount), 0) AS "credit_amount" FROM "a57be577deb434"."tbl_ledger_ticket_items" "i" INNER JOIN "a57be577deb434"."tbl_ledger_tickets" "t" ON i.ledger_ticket_id = t.id WHERE (("t"."ledger_id"='1') AND ("t"."status"=1)) AND ("i"."ledger_account_caption_id" IN (1, 170, 171, 172, 173, 2, 3, 4, 169, 174, 175, 176, 177, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168)) AND ("t"."ticket_date" >= '2026-05-01') AND ("t"."ticket_date" <= '2026-05-31') GROUP BY "i"."ledger_account_caption_id" |
| 17:44:17.737 | 1.0 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 17:44:17.741 | 0.9 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "ledger_access_token"='O6Vr7bn3kQPZ5hlF6w1MM7SX_Njw-iTV' |
| 17:44:17.743 | 0.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5252 |
| 17:44:17.744 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "id"='1' |
| 17:44:17.737 | 0.4 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |