03:59:17.570 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
03:59:17.570 | trace | yii\base\Module::getModule | Loading module: debug |
03:59:17.570 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
03:59:17.570 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
03:59:17.571 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
03:59:17.571 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:59:17.571 | trace | yii\base\Module::getModule | Loading module: gii |
03:59:17.571 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
03:59:17.571 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
03:59:17.571 | trace | yii\web\Application::handleRequest | Route requested: 'vue/reimbursement/get-erp-settle-all' |
03:59:17.571 | trace | yii\base\Module::getModule | Loading module: vue |
03:59:17.571 | info | yii\web\Session::open | Session started |
03:59:17.572 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
03:59:17.572 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
03:59:17.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:59:17.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
03:59:17.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:59:17.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
03:59:17.577 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
03:59:17.578 | trace | yii\base\Controller::runAction | Route to run: vue/reimbursement/get-erp-settle-all |
03:59:17.579 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:59:17.580 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
03:59:17.580 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ReimbursementController::actionGetErpSettleAll() |
03:59:17.582 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:59:17.582 | 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_reimbursements'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
03:59:17.587 | 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_reimbursements'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
03:59:17.602 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
03:59:17.602 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
03:59:17.602 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:59:17.603 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:59:17.603 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_users" WHERE "user_status"='1' ORDER BY "id" |
03:59:17.606 | info | yii\db\Command::query | SELECT SUM(amount - coalesce(settle_amount, 0)) FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE (settle_amount < amount) AND ("status"=2) AND ("reimbursement_id" IN (SELECT DISTINCT "r"."id" FROM "a57be577deb434"."tbl_reimbursements" "r" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON r.created_by = u.id LEFT JOIN "a57be577deb434"."tbl_reimbursement_verify_rels" "rvr" ON rvr.reimbursement_id = r.id LEFT JOIN "a57be577deb434"."tbl_reimbursement_settle_rels" "rsr" ON rsr.reimbursement_id = r.id LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = r.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "dt1" ON dt1.object_id = r.id AND dt1.term_id = 15 LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "dt2" ON dt2.object_id = r.id AND dt2.term_id = 18 AND dt2.object_type = 7 LEFT JOIN "a57be577deb434"."tbl_reimbursement_carbon_copy_rels" "rccr" ON rccr.reimbursement_id = r.id WHERE ("r"."status" != 0) AND (("r"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1017, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5300, 5311, 5332, 5360, 5388, 5446, 5449)) OR ("rccr"."user_id"=1001) OR ("rsr"."user_id"=1001) OR ("rvr"."user_id"=1001)) AND (1=0) AND ("r"."status"=2) GROUP BY "r"."id" ORDER BY "r"."id")) |
03:59:17.613 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "title" AS "name", "balance_amount" FROM "a57be577deb434"."tbl_erp_banks" WHERE "is_delete"=FALSE ORDER BY "sort", "id" |
03:59:17.614 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:59:17.614 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
03:59:17.614 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/reimbursement/get-erp-settle-all', '[]', '{"code":2000,"result":{"total_un_settle_amount":"","options":{"Reimbursements[erp_bank_id]":{"key":"Reimbursements[erp_bank_id]","name":"\u73b0\u91d1\u94f6\u884c","value":[{"id":1,"key":1,"name":"\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d\u652f\u4ed8\u5b9d","balance_amount":"9999889.54"},{"id":2,"key":2,"name":"\u94f6\u884c\u5b58\u6b3e\u94f6\u884c\u5b58\u6b3e\u94f6\u884c\u5b58\u6b3e\u94f6\u884c\u5b58\u6b3e\u94f6\u884c\u5b58\u6b3e\u94f6\u884c\u5b58\u6b3e\u94f6\u884c\u5b58\u6b3e\u94f6\u884c\u5b58\u6b3e","balance_amount":"2000000"},{"id":3,"key":3,"name":"\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1\u73b0\u91d1","balance_amount":"30000007"}]}}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-11 03:59:17') RETURNING "id" |
03:59:17.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
03:59:17.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |