Log Messages

总计136条数据
TimeLevelCategoryMessage
 
17:22:04.040traceyii\base\Application::bootstrapBootstrap with yii\log\Dispatcher
17:22:04.040traceyii\base\Module::getModuleLoading module: debug
17:22:04.041traceyii\base\Application::bootstrapBootstrap with yii\debug\Module::bootstrap()
17:22:04.041traceyii\redis\Connection::openOpening redis DB connection: redis.server.local:6379, database=1
17:22:04.042traceyii\redis\Connection::executeCommandExecuting Redis Command: SELECT
17:22:04.042traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.042infotime tracing start1782811324042806016
17:22:04.043traceyii\web\UrlManager::parseRequestNo matching URL rules. Using default URL parsing logic.
17:22:04.043traceyii\web\Application::handleRequestRoute requested: 'vue/voucher-center/generate'
17:22:04.043traceyii\base\Module::getModuleLoading module: vue
17:22:04.045infoyii\web\Session::openSession started
17:22:04.049infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
17:22:04.049infoyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
17:22:04.060traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.063traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.067infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
17:22:04.075traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.076traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.076infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
17:22:04.079infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "is_stop"=FALSE ORDER BY "id"
17:22:04.080traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.080traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.080traceyii\base\Controller::runActionRoute to run: vue/voucher-center/generate
17:22:04.081traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.083traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: Admin
17:22:04.083traceyii\base\InlineAction::runWithParamsRunning action: app\modules\vue\controllers\VoucherCenterController::actionGenerate()
17:22:04.084infoyii\db\Command::querySELECT "attachment_id" FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_id"='8308') AND ("object_type" IN (20053, 20032)) ORDER BY "id"
17:22:04.089infoyii\db\Command::querySELECT "id", "serial_no", "wrote_date", "verify_at", "created_at", "amount", "created_by", "client_id", "supplier_id" FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE ("id"=8308) AND ("status"=2)
17:22:04.091infoyii\db\Command::querySELECT "r"."taxonomy_id" AS "taxonomy_id", "tt"."serial_no" AS "cost_serial_no", COALESCE(r.out_amount, 0) AS "amount" FROM "a57be577deb434"."tbl_term_taxonomy_relationships" "r" LEFT JOIN "a57be577deb434"."tbl_term_taxonomies" "tt" ON r.taxonomy_id = tt.id WHERE ("r"."term_id"=18) AND ("r"."object_type"=11) AND ("r"."object_id"=8308) ORDER BY "r"."id"
17:22:04.092infoyii\db\Command::querySELECT CASE WHEN COUNT(DISTINCT erp_bank_id) = 1 THEN MIN(erp_bank_id) ELSE NULL END AS "erp_bank_id" FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_bank_outs" WHERE ("erp_cash_cost_ticket_id"=8308) AND (NOT ("erp_bank_id" IS NULL))
17:22:04.094traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.094traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.096infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='68')
17:22:04.097infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='68') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.098infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='68') AND ("is_delete"=FALSE))
17:22:04.098infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='83')
17:22:04.099infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='83') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.099infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='83') AND ("is_delete"=FALSE))
17:22:04.100infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='88')
17:22:04.101infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='88') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.101infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='88') AND ("is_delete"=FALSE))
17:22:04.102infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='92')
17:22:04.102infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='92') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.103infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='92') AND ("is_delete"=FALSE))
17:22:04.104infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='3')
17:22:04.104infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='3') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.105infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='3') AND ("is_delete"=FALSE))
17:22:04.106traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.106traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.106traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'items' in 'app\models\LedgerTickets'.
17:22:04.106traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'files' in 'app\models\LedgerTickets'.
17:22:04.106infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='68')
17:22:04.107infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='68') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.107infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='68') AND ("is_delete"=FALSE))
17:22:04.108infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='83')
17:22:04.108infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='83') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.109infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='83') AND ("is_delete"=FALSE))
17:22:04.109infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='88')
17:22:04.110infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='88') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.110infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='88') AND ("is_delete"=FALSE))
17:22:04.111infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='92')
17:22:04.111infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='92') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.112infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='92') AND ("is_delete"=FALSE))
17:22:04.113infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='3')
17:22:04.113infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='3') AND ("ledger_id"=1) AND ("is_delete"=FALSE)
17:22:04.114infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='3') AND ("is_delete"=FALSE))
17:22:04.114infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "id"=1
17:22:04.115infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_settles" WHERE (("ledger_id"=1) AND ("is_settle"=TRUE)) AND ((("start_date" <= '2026-06-30') AND ("end_date" >= '2026-06-30')) OR (("date"='2026-06-01') AND (("start_date" IS NULL) OR ("end_date" IS NULL)))))
17:22:04.116infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "id"=1
17:22:04.117infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "id"=1)
17:22:04.117infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)
17:22:04.118infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)
17:22:04.118infoyii\db\Command::querySELECT "id", "name", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5252
17:22:04.119infoyii\db\Command::querySELECT "id", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=6
17:22:04.120traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.120traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.120infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_voucher_gen_batches" ("ledger_id", "batch_no", "voucher_date_type", "file_name", "bill_count", "success_count", "fail_count", "status", "created_by", "created_at", "updated_at") VALUES (1, 'VG20260630172204503', 5, '2026_06_30', 1, 0, 0, 3, 1001, '2026-06-30 17:22:04', '2026-06-30 17:22:04') RETURNING "id"
17:22:04.123traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.123traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.124infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\VoucherGenBatches', 5, 'a:14:{s:2:"id";i:5;s:9:"ledger_id";i:1;s:8:"batch_no";s:19:"VG20260630172204503";s:17:"voucher_date_type";i:5;s:9:"file_name";s:10:"2026_06_30";s:10:"bill_count";i:1;s:13:"success_count";i:0;s:10:"fail_count";i:0;s:6:"status";i:3;s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-30 17:22:04";s:10:"updated_at";s:19:"2026-06-30 17:22:04";s:10:"is_deleted";N;s:10:"deleted_at";N;}', '', 1001, '221.216.117.25')
17:22:04.126traceyii\db\Transaction::beginBegin transaction
17:22:04.127infoyii\db\Command::querySELECT COALESCE(max("serial_no"), 0) + 1 FROM "a57be577deb434"."tbl_ledger_tickets" WHERE ("ledger_id"=1) AND ("ticket_date"='2026-06-30') AND ("ticket_word"='2')
17:22:04.128infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_ledger_tickets" ("ticket_date", "ticket_word", "ticket_count", "ledger_id", "type", "status", "created_by", "booked_by", "serial_no", "is_settle", "created_at", "updated_at") VALUES ('2026-06-30', 2, 2, 1, 1, 1, 1001, 1001, 1, FALSE, 'now()', 'now()') RETURNING "id"
17:22:04.133infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\LedgerTickets', 39, 'a:15:{s:2:"id";i:39;s:9:"ledger_id";i:1;s:11:"ticket_word";s:1:"2";s:9:"serial_no";i:1;s:12:"ticket_count";i:2;s:11:"ticket_date";s:10:"2026-06-30";s:4:"type";i:1;s:6:"status";i:1;s:9:"is_settle";b:0;s:12:"settle_month";N;s:17:"settle_caption_id";N;s:10:"created_by";i:1001;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";s:19:"1970-01-01 08:00:00";s:9:"booked_by";i:1001;}', '', 1001, '221.216.117.25')
17:22:04.133infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_ledger_ticket_items" WHERE "ledger_ticket_id"=39
17:22:04.134infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_ledger_ticket_items" ("ledger_ticket_id", "summary", "ledger_account_caption_id", "auxiliary_item_id", "debit_amount", "credit_amount", "sort", "created_at", "updated_at") VALUES (39, '现金费用单 XJFYD-20260305-00001', 68, NULL, '49748.44', '0.00', 1, '2026-06-30 17:22:04', '2026-06-30 17:22:04'), (39, '现金费用单 XJFYD-20260305-00001', 83, NULL, '1741.19', '0.00', 2, '2026-06-30 17:22:04', '2026-06-30 17:22:04'), (39, '现金费用单 XJFYD-20260305-00001', 88, NULL, '746.22', '0.00', 3, '2026-06-30 17:22:04', '2026-06-30 17:22:04'), (39, '现金费用单 XJFYD-20260305-00001', 92, NULL, '497.48', '0.00', 4, '2026-06-30 17:22:04', '2026-06-30 17:22:04'), (39, '现金费用单 XJFYD-20260305-00001', 3, NULL, '0.00', '52733.33', 5, '2026-06-30 17:22:04', '2026-06-30 17:22:04')
17:22:04.139infoyii\db\Command::querySELECT "ledger_account_caption_id" FROM "a57be577deb434"."tbl_ledger_ticket_items" WHERE ("ledger_ticket_id"=39) AND (NOT ("ledger_account_caption_id" IS NULL))
17:22:04.139infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=30002) AND ("object_id"=39)
17:22:04.143traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.143infoyii\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_attachement_relationships' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
17:22:04.149infoyii\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_attachement_relationships' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
17:22:04.155traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.155traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
17:22:04.155infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (30002, 39, 32238), (30002, 39, 32180)
17:22:04.160infoyii\db\Command::querySELECT "ledger_account_caption_id" FROM "a57be577deb434"."tbl_ledger_ticket_items" WHERE ("ledger_ticket_id"=39) AND (NOT ("ledger_account_caption_id" IS NULL))
17:22:04.160traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.161traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.161infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_voucher_gen_items" ("batch_id", "ledger_id", "object_type", "object_id", "event_type", "event_id", "bill_no", "bill_date", "amount", "partner_name", "department", "handler_name", "status", "ledger_ticket_id", "ticket_word", "ticket_serial_no", "book_date", "created_at", "updated_at") VALUES (5, 1, 20018, 8308, 0, 0, 'XJFYD-20260305-00001', '2026-03-05', '52733.33', '', '财务部', '王笑笑', 1, 39, 2, 1, '2026-06-30', '2026-06-30 17:22:04', '2026-06-30 17:22:04') RETURNING "id"
17:22:04.162infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\VoucherGenItems', 63, 'a:21:{s:2:"id";i:63;s:8:"batch_id";i:5;s:9:"ledger_id";i:1;s:11:"object_type";i:20018;s:9:"object_id";i:8308;s:7:"bill_no";s:20:"XJFYD-20260305-00001";s:9:"bill_date";s:10:"2026-03-05";s:6:"amount";d:52733.330000000002;s:12:"partner_name";s:0:"";s:10:"department";s:9:"财务部";s:12:"handler_name";s:9:"王笑笑";s:6:"status";i:1;s:11:"fail_reason";N;s:16:"ledger_ticket_id";i:39;s:11:"ticket_word";s:1:"2";s:16:"ticket_serial_no";i:1;s:9:"book_date";s:10:"2026-06-30";s:10:"created_at";s:19:"2026-06-30 17:22:04";s:10:"updated_at";s:19:"2026-06-30 17:22:04";s:10:"event_type";i:0;s:8:"event_id";i:0;}', '', 1001, '221.216.117.25')
17:22:04.163traceyii\db\Transaction::commitCommit transaction
17:22:04.164infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_voucher_gen_batches" SET "success_count"=1, "status"=1 WHERE "id"=5
17:22:04.165infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\VoucherGenBatches', 5, 'a:3:{s:6:"status";i:3;s:10:"is_deleted";N;s:10:"deleted_at";N;}', '', 1001, '221.216.117.25')
17:22:04.166infoyii\db\Command::querySELECT "id", "parent_id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "ledger_id"=1
17:22:04.167infoyii\db\Command::querySELECT "id", "parent_id", "amount", "direction", "actual_amount" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND (("id" IN (68, 83, 88, 92, 3)) OR ("parent_id" IN (68, 83, 88, 92, 3))) ORDER BY "id"
17:22:04.168infoyii\db\Command::querySELECT "i"."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" LEFT 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 (68, 83, 88, 92, 3)) GROUP BY "i"."ledger_account_caption_id"
17:22:04.169infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("id" IN (68, 83, 88, 92, 3))
17:22:04.170traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.170infoyii\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_account_captions' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
17:22:04.178infoyii\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_account_captions' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
17:22:04.196traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.196traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
17:22:04.197infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_ledger_account_captions" SET "actual_amount"='-68118.85', "updated_at"='2026-06-30 17:22:04' WHERE "id"=68
17:22:04.211infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\LedgerAccountCaptions', 68, 'a:1:{s:13:"actual_amount";d:-68118.850000000006;}', '', 1001, '221.216.117.25')
17:22:04.213infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_ledger_account_captions" SET "actual_amount"='1460078.6', "updated_at"='2026-06-30 17:22:04' WHERE "id"=3
17:22:04.214infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\LedgerAccountCaptions', 3, 'a:1:{s:13:"actual_amount";d:1460078.6000000001;}', '', 1001, '221.216.117.25')
17:22:04.215infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_ledger_account_captions" SET "actual_amount"='-1741.19', "updated_at"='2026-06-30 17:22:04' WHERE "id"=83
17:22:04.216infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\LedgerAccountCaptions', 83, 'a:1:{s:13:"actual_amount";d:-1741.1900000000001;}', '', 1001, '221.216.117.25')
17:22:04.218infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_ledger_account_captions" SET "actual_amount"='-746.22', "updated_at"='2026-06-30 17:22:04' WHERE "id"=88
17:22:04.219infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\LedgerAccountCaptions', 88, 'a:1:{s:13:"actual_amount";d:-746.22000000000003;}', '', 1001, '221.216.117.25')
17:22:04.220infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_ledger_account_captions" SET "actual_amount"='-497.48', "updated_at"='2026-06-30 17:22:04' WHERE "id"=92
17:22:04.221infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\LedgerAccountCaptions', 92, 'a:1:{s:13:"actual_amount";d:-497.48000000000002;}', '', 1001, '221.216.117.25')
17:22:04.222infoyii\db\Command::querySELECT "id", "parent_id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "ledger_id"=1
17:22:04.223infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledger_banks" WHERE ("ledger_id"=1) AND ("ledger_account_caption_id" IN (68, 83, 88, 92, 3))
17:22:04.224traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.224infoyii\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_banks' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
17:22:04.228infoyii\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_banks' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
17:22:04.235traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.235traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
17:22:04.236infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"=3
17:22:04.236infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_ledger_banks" SET "balance_amount"='1460078.6', "updated_at"='2026-06-30 17:22:04' WHERE "id"=2
17:22:04.238infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\LedgerBanks', 2, 'a:1:{s:14:"balance_amount";s:9:"1460078.6";}', '', 1001, '221.216.117.25')
17:22:04.239traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.240traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
17:22:04.240infoyii\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/generate', '{"voucher_date_type":"5","type":"1","entry_type":"1","tickets":[{"LedgerTickets":{"ticket_date":"2026-06-30","ticket_word":"2","ticket_count":"2","items":[{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"68","auxiliary_item_id":"","debit_amount":"49748.44","credit_amount":"0.00"},{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"83","auxiliary_item_id":"","debit_amount":"1741.19","credit_amount":"0.00"},{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"88","auxiliary_item_id":"","debit_amount":"746.22","credit_amount":"0.00"},{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"92","auxiliary_item_id":"","debit_amount":"497.48","credit_amount":"0.00"},{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"3","auxiliary_item_id":"","debit_amount":"0.00","credit_amount":"52733.33"}],"files":""},"source_bills":[{"object_type":"20018","object_id":"8308","event_type":"0","event_id":"0"}]}],"web_access_token":"9OODFZFZk-X86cfjXzRsEqn62HNQjGnS"}', '{"code":2000,"result":{"batch_id":5,"batch_no":"VG20260630172204503","source_count":1,"ticket_count":1,"success_count":1,"fail_count":0,"status":1,"status_display":"\u5168\u6210\u529f","generate_type":1,"entry_type":1,"ticket_item_count":5,"total_amount":52733.33,"period":"202606","ticket_no_range":"\u4ed8-202606-001","tickets":[{"id":39,"ticket_date":"2026-06-30","period":"202606","ticket_word":"2","ticket_word_display":"\u4ed8","serial_no":1,"serial_no_display":"001","ticket_no_display":"\u4ed8-202606-001"}]},"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-30 17:22:04', 197542912) RETURNING "id"
17:22:04.242traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
17:22:04.242traceyii\redis\Connection::executeCommandExecuting Redis Command: SET