| 11:29:13.520 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 11:29:13.520 | trace | yii\base\Module::getModule | Loading module: debug |
| 11:29:13.521 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 11:29:13.522 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 11:29:13.522 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 11:29:13.526 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.527 | info | time tracing start | 1782962953527566848 |
| 11:29:13.527 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 11:29:13.527 | trace | yii\web\Application::handleRequest | Route requested: 'vue/voucher-center/bill-list' |
| 11:29:13.527 | trace | yii\base\Module::getModule | Loading module: vue |
| 11:29:13.528 | info | yii\web\Session::open | Session started |
| 11:29:13.530 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:29:13.530 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 11:29:13.539 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.546 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:29:13.550 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:29:13.552 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.553 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:29:13.553 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:29:13.555 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "is_stop"=FALSE ORDER BY "id" |
| 11:29:13.555 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.555 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:29:13.556 | trace | yii\base\Controller::runAction | Route to run: vue/voucher-center/bill-list |
| 11:29:13.556 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.558 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 11:29:13.558 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\VoucherCenterController::actionBillList() |
| 11:29:13.558 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.559 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.561 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT 107 AS "object_type", "i"."id" AS "object_id", 0 AS "event_type", 0 AS "event_id", ''::text AS "business_node", "i"."invoice_num" AS "bill_no", "i"."from_date" AS "bill_date", NULL::timestamp without time zone AS "completed_at", "i"."amount" AS "amount", "c"."client_id" AS "client_id", NULL::integer AS "supplier_id", NULL::integer AS "contact_id", NULL::integer AS "department_id", NULL::integer AS "handler_id", "i"."created_by" AS "created_by", NULL::integer AS "erp_bank_id", true AS "have_invoice", true AS "is_verified" FROM "a57be577deb434"."tbl_sales_contract_invoices" "i" LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "c" ON c.id = i.contract_id WHERE (("i"."is_cancel"=FALSE) AND ("i"."is_draft"=FALSE)) AND (("i"."invoice_type" <> -1) OR ("i"."invoice_type" IS NULL)) AND ("i"."from_date" >= '2026-06-01') AND ("i"."from_date" <= '2026-07-31')) "b" LEFT JOIN (SELECT "v"."object_type" AS "object_type", "v"."object_id" AS "object_id", COALESCE(v.event_type, 0) AS "event_type", COALESCE(v.event_id, 0) AS "event_id", COUNT(*) FILTER (WHERE v.status = 1) AS "success_count", COUNT(*) FILTER (WHERE v.status = 0) AS "fail_count", MAX(v.book_date) FILTER (WHERE v.status = 1) AS "last_book_date" FROM "a57be577deb434"."tbl_voucher_gen_items" "v" WHERE "v"."ledger_id"=1 GROUP BY "v"."object_type", "v"."object_id", COALESCE(v.event_type, 0), COALESCE(v.event_id, 0)) "g" ON g.object_type = b.object_type AND g.object_id = b.object_id AND g.event_type = b.event_type AND g.event_id = b.event_id WHERE (("g"."success_count" IS NULL) OR ("g"."success_count"=0)) AND (("b"."object_type" NOT IN (20, 20018)) OR ("b"."have_invoice"=TRUE) OR (EXISTS (SELECT 1 FROM a57be577deb434.tbl_term_taxonomy_relationships r INNER JOIN a57be577deb434.tbl_term_taxonomies tt ON r.taxonomy_id = tt.id WHERE r.term_id = 18 AND r.object_id = b.object_id AND tt.serial_no IN ('221106','640301','640302','640303','600704') AND ((b.object_type = 20 AND r.object_type = 7) OR (b.object_type = 20018 AND r.object_type = 11))))) AND ("b"."amount" > 0) AND (("b"."object_type" <> 109) OR ("b"."is_verified"=TRUE)) |
| 11:29:13.565 | info | yii\db\Command::query | SELECT COALESCE(SUM(b.amount), 0) AS "total_amount" FROM (SELECT 107 AS "object_type", "i"."id" AS "object_id", 0 AS "event_type", 0 AS "event_id", ''::text AS "business_node", "i"."invoice_num" AS "bill_no", "i"."from_date" AS "bill_date", NULL::timestamp without time zone AS "completed_at", "i"."amount" AS "amount", "c"."client_id" AS "client_id", NULL::integer AS "supplier_id", NULL::integer AS "contact_id", NULL::integer AS "department_id", NULL::integer AS "handler_id", "i"."created_by" AS "created_by", NULL::integer AS "erp_bank_id", true AS "have_invoice", true AS "is_verified" FROM "a57be577deb434"."tbl_sales_contract_invoices" "i" LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "c" ON c.id = i.contract_id WHERE (("i"."is_cancel"=FALSE) AND ("i"."is_draft"=FALSE)) AND (("i"."invoice_type" <> -1) OR ("i"."invoice_type" IS NULL)) AND ("i"."from_date" >= '2026-06-01') AND ("i"."from_date" <= '2026-07-31')) "b" LEFT JOIN (SELECT "v"."object_type" AS "object_type", "v"."object_id" AS "object_id", COALESCE(v.event_type, 0) AS "event_type", COALESCE(v.event_id, 0) AS "event_id", COUNT(*) FILTER (WHERE v.status = 1) AS "success_count", COUNT(*) FILTER (WHERE v.status = 0) AS "fail_count", MAX(v.book_date) FILTER (WHERE v.status = 1) AS "last_book_date" FROM "a57be577deb434"."tbl_voucher_gen_items" "v" WHERE "v"."ledger_id"=1 GROUP BY "v"."object_type", "v"."object_id", COALESCE(v.event_type, 0), COALESCE(v.event_id, 0)) "g" ON g.object_type = b.object_type AND g.object_id = b.object_id AND g.event_type = b.event_type AND g.event_id = b.event_id WHERE (("g"."success_count" IS NULL) OR ("g"."success_count"=0)) AND (("b"."object_type" NOT IN (20, 20018)) OR ("b"."have_invoice"=TRUE) OR (EXISTS (SELECT 1 FROM a57be577deb434.tbl_term_taxonomy_relationships r INNER JOIN a57be577deb434.tbl_term_taxonomies tt ON r.taxonomy_id = tt.id WHERE r.term_id = 18 AND r.object_id = b.object_id AND tt.serial_no IN ('221106','640301','640302','640303','600704') AND ((b.object_type = 20 AND r.object_type = 7) OR (b.object_type = 20018 AND r.object_type = 11))))) AND ("b"."amount" > 0) AND (("b"."object_type" <> 109) OR ("b"."is_verified"=TRUE)) |
| 11:29:13.567 | info | yii\db\Command::query | SELECT "b"."object_type" AS "object_type", "b"."object_id" AS "object_id", "b"."event_type" AS "event_type", "b"."event_id" AS "event_id", "b"."business_node" AS "business_node", "b"."bill_no" AS "bill_no", "b"."bill_date" AS "bill_date", "b"."completed_at" AS "completed_at", "b"."amount" AS "amount", "b"."client_id" AS "client_id", "b"."supplier_id" AS "supplier_id", "b"."contact_id" AS "contact_id", "b"."department_id" AS "department_id", "b"."handler_id" AS "handler_id", "b"."created_by" AS "created_by", "b"."erp_bank_id" AS "erp_bank_id", "b"."have_invoice" AS "have_invoice", "b"."is_verified" AS "is_verified", COALESCE(g.success_count, 0) AS "gen_success_count", COALESCE(g.fail_count, 0) AS "gen_fail_count", COALESCE(CAST(g.last_book_date AS text), '') AS "gen_book_date" FROM (SELECT 107 AS "object_type", "i"."id" AS "object_id", 0 AS "event_type", 0 AS "event_id", ''::text AS "business_node", "i"."invoice_num" AS "bill_no", "i"."from_date" AS "bill_date", NULL::timestamp without time zone AS "completed_at", "i"."amount" AS "amount", "c"."client_id" AS "client_id", NULL::integer AS "supplier_id", NULL::integer AS "contact_id", NULL::integer AS "department_id", NULL::integer AS "handler_id", "i"."created_by" AS "created_by", NULL::integer AS "erp_bank_id", true AS "have_invoice", true AS "is_verified" FROM "a57be577deb434"."tbl_sales_contract_invoices" "i" LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "c" ON c.id = i.contract_id WHERE (("i"."is_cancel"=FALSE) AND ("i"."is_draft"=FALSE)) AND (("i"."invoice_type" <> -1) OR ("i"."invoice_type" IS NULL)) AND ("i"."from_date" >= '2026-06-01') AND ("i"."from_date" <= '2026-07-31')) "b" LEFT JOIN (SELECT "v"."object_type" AS "object_type", "v"."object_id" AS "object_id", COALESCE(v.event_type, 0) AS "event_type", COALESCE(v.event_id, 0) AS "event_id", COUNT(*) FILTER (WHERE v.status = 1) AS "success_count", COUNT(*) FILTER (WHERE v.status = 0) AS "fail_count", MAX(v.book_date) FILTER (WHERE v.status = 1) AS "last_book_date" FROM "a57be577deb434"."tbl_voucher_gen_items" "v" WHERE "v"."ledger_id"=1 GROUP BY "v"."object_type", "v"."object_id", COALESCE(v.event_type, 0), COALESCE(v.event_id, 0)) "g" ON g.object_type = b.object_type AND g.object_id = b.object_id AND g.event_type = b.event_type AND g.event_id = b.event_id WHERE (("g"."success_count" IS NULL) OR ("g"."success_count"=0)) AND (("b"."object_type" NOT IN (20, 20018)) OR ("b"."have_invoice"=TRUE) OR (EXISTS (SELECT 1 FROM a57be577deb434.tbl_term_taxonomy_relationships r INNER JOIN a57be577deb434.tbl_term_taxonomies tt ON r.taxonomy_id = tt.id WHERE r.term_id = 18 AND r.object_id = b.object_id AND tt.serial_no IN ('221106','640301','640302','640303','600704') AND ((b.object_type = 20 AND r.object_type = 7) OR (b.object_type = 20018 AND r.object_type = 11))))) AND ("b"."amount" > 0) AND (("b"."object_type" <> 109) OR ("b"."is_verified"=TRUE)) ORDER BY "bill_date" DESC, "object_type", "object_id" DESC, "event_type", "event_id" DESC LIMIT 200 |
| 11:29:13.570 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.571 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:29:13.571 | info | 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', 1001, 5, 'vue/voucher-center/bill-list', '{"page":"1","pageSize":"200","object_type":"107","generation_scope":"ungenerated","date_from":"2026-06-01","date_to":"2026-07-31","web_access_token":"9OODFZFZk-X86cfjXzRsEqn62HNQjGnS"}', '{"code":2000,"result":{"list":[],"pagenation":{"totalcount":0,"thispage":1,"pagesize":200},"total_amount":0},"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-07-02 11:29:13', 43739136) RETURNING "id" |
| 11:29:13.574 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.574 | trace | yii\db\Transaction::begin | Begin transaction |
| 11:29:13.575 | info | yii\db\Command::query | SELECT * FROM "global"."tbl_browser_ua_statistics" "b" WHERE "user_agent"='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0' |
| 11:29:13.575 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:29:13.575 | info | yii\db\Command::query | SELECT
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_browser_ua_statistics'
and d.nspname = 'global'
ORDER BY
a.attnum; |
| 11:29:13.581 | info | yii\db\Command::query | select
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_browser_ua_statistics'
and ns.nspname='global'
order by
fns.nspname, fc.relname, a.attnum |
| 11:29:13.589 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:29:13.589 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 11:29:13.589 | info | yii\db\Command::execute | UPDATE "global"."tbl_browser_ua_statistics" SET "counter"=4600 WHERE "id"=298 |
| 11:29:13.591 | trace | yii\db\Transaction::commit | Commit transaction |
| 11:29:13.592 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |