14:25:19.699 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
14:25:19.699 | trace | yii\base\Module::getModule | Loading module: debug |
14:25:19.700 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
14:25:19.700 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
14:25:19.700 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
14:25:19.700 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.700 | trace | yii\base\Module::getModule | Loading module: gii |
14:25:19.700 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
14:25:19.701 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
14:25:19.701 | trace | yii\web\Application::handleRequest | Route requested: 'vue/project/list-payment' |
14:25:19.701 | trace | yii\base\Module::getModule | Loading module: vue |
14:25:19.701 | info | yii\web\Session::open | Session started |
14:25:19.702 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
14:25:19.702 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
14:25:19.706 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.706 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:25:19.706 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.707 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:25:19.707 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
14:25:19.708 | trace | yii\base\Controller::runAction | Route to run: vue/project/list-payment |
14:25:19.708 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.709 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
14:25:19.709 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ProjectController::actionListPayment() |
14:25:19.709 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3801' |
14:25:19.710 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.710 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:25:19.712 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.712 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:25:19.712 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3801 |
14:25:19.713 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.713 | 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_sales_contracts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:25:19.719 | 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_sales_contracts'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:25:19.731 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:25:19.731 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:25:19.731 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE "contract_id"=3844 ORDER BY "collected_date" DESC, "id" DESC) "c" |
14:25:19.732 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE "contract_id"=3844 ORDER BY "collected_date" DESC, "id" DESC LIMIT 20 |
14:25:19.732 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
14:25:19.733 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001) |
14:25:19.733 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4 |
14:25:19.734 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=109) AND ("object_id"=2163) |
14:25:19.735 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=24746 |
14:25:19.736 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.736 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:25:19.736 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=1) AND ("visit_date"='2025-07-16') |
14:25:19.740 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.740 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:25:19.740 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=5, "last_visit_at"='now()' WHERE "id"=49841 |
14:25:19.741 | 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/project/list-payment', '{"project_id":"3801","page":"1","web_access_token":"IB4L4uAW8bjXvE6-5qxkaUjtqmmYbCm_"}', '{"code":2000,"result":{"list":[{"id":2163,"contract_id":3844,"amount":"1","created_by":1001,"created_at":"2025-06-11 13:43:46","collected_date":"2025-06-11","description":"\u6d4b\u8bd5","paid_amount":"1","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"files":[{"id":33121,"object_type":109,"object_id":2163,"attachment_id":24746,"attachment":{"id":24746,"key":24746,"name":"6047ab03-bbe2-3563-8790-7bcd0044febd","extension":"txt","path":"\/vue\/attachment\/view\/6047ab03-bbe2-3563-8790-7bcd0044febd\/2024-01-16.txt","orig_name":"2024-01-16.txt"}}]}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-07-16 14:25:19') RETURNING "id" |
14:25:19.742 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:25:19.742 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |