| 15:05:54.694 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 15:05:54.694 | trace | yii\base\Module::getModule | Loading module: debug |
| 15:05:54.694 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 15:05:54.695 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 15:05:54.695 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 15:05:54.695 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.696 | info | time tracing start | 1781161554696073984 |
| 15:05:54.696 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 15:05:54.696 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-other-collect-ticket/save-new' |
| 15:05:54.696 | trace | yii\base\Module::getModule | Loading module: vue |
| 15:05:54.697 | info | yii\web\Session::open | Session started |
| 15:05:54.698 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 15:05:54.698 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 15:05:54.699 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.700 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.700 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.701 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.701 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 15:05:54.702 | trace | yii\base\Controller::runAction | Route to run: vue/erp-other-collect-ticket/save-new |
| 15:05:54.702 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.704 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 15:05:54.704 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpOtherCollectTicketController::actionSaveNew() |
| 15:05:54.705 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.705 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_id' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.705 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_name' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.705 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_type' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.705 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_search_id' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.705 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_search_name' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.705 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.706 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpOtherCollectTicketVerifyRels' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'sales_contract_name' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'supplier_name' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchase_contract_name' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'user_name' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contact_name' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpOtherCollectTicketAmounts' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpOtherCollectTicketBankOuts' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpOtherCollectTicketApproveBorrowSettles' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpOtherCollectTicketPayments' in 'app\models\ErpOtherCollectTickets'. |
| 15:05:54.706 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.707 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.708 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_tickets" WHERE ("created_at" >= '2026-06-11 00:00:00') AND ("created_at" <= '2026-06-11 23:59:59') AND ("serial_no" ILIKE '%QTYSD-20260611-%') AND (LENGTH(serial_no) = 20) ORDER BY "serial_no" DESC |
| 15:05:54.709 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_tickets" WHERE "serial_no"='QTYSD-20260611-00001') |
| 15:05:54.710 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1331') |
| 15:05:54.711 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"='3108') |
| 15:05:54.712 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001') |
| 15:05:54.713 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 15:05:54.714 | trace | yii\db\Transaction::begin | Begin transaction |
| 15:05:54.714 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_other_collect_tickets" ("handler", "ticket_type", "wrote_date", "serial_no", "abstract", "description", "client_id", "sales_contract_id", "supplier_id", "purchase_contract_id", "user_id", "contact_id", "verify_type", "created_by", "created_at", "status", "is_resubmitted", "is_start", "amount", "settle_amount", "paid_amount", "un_paid_amount") VALUES (1001, 1, '2026-06-11', 'QTYSD-20260611-00001', NULL, NULL, 1331, 3108, NULL, NULL, NULL, NULL, 2, 1001, 'now()', 1, FALSE, FALSE, '0', '0', '0', '0') RETURNING "id" |
| 15:05:54.726 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.726 | 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_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 15:05:54.729 | 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_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 15:05:54.743 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.743 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:05:54.743 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpOtherCollectTickets', 57, 'a:38:{s:2:"id";i:57;s:9:"serial_no";s:20:"QTYSD-20260611-00001";s:10:"wrote_date";s:10:"2026-06-11";s:9:"from_date";N;s:11:"ticket_type";s:1:"1";s:7:"handler";s:4:"1001";s:7:"user_id";s:0:"";s:9:"client_id";s:4:"1331";s:17:"sales_contract_id";s:4:"3108";s:11:"supplier_id";s:0:"";s:20:"purchase_contract_id";s:0:"";s:6:"status";i:1;s:8:"abstract";N;s:11:"description";N;s:11:"verify_type";s:1:"2";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";b:0;s:6:"amount";i:0;s:13:"settle_amount";i:0;s:10:"created_by";i:1001;s:16:"stop_description";N;s:8:"is_wages";N;s:9:"is_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"paid_amount";i:0;s:14:"un_paid_amount";i:0;s:18:"erp_wage_ticket_id";N;s:25:"erp_wage_ticket_amount_id";N;s:10:"contact_id";s:0:"";s:8:"is_start";b:0;s:14:"bank_settle_at";N;s:11:"print_times";N;s:17:"all_settle_amount";N;}', '', 1001, '221.216.117.119') |
| 15:05:54.757 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20037) AND ("object_id"=57) |
| 15:05:54.761 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_other_collect_ticket_verify_rels" WHERE "erp_other_collect_ticket_id"=57 |
| 15:05:54.761 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.761 | 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_erp_other_collect_ticket_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 15:05:54.765 | 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_erp_other_collect_ticket_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 15:05:54.784 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.784 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:05:54.784 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_other_collect_ticket_verify_rels" ("erp_other_collect_ticket_id", "user_id", "status") VALUES (57, 1001, 0) |
| 15:05:54.786 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_other_collect_ticket_amounts" WHERE "erp_other_collect_ticket_id"=57 |
| 15:05:54.787 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.787 | 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_erp_other_collect_ticket_amounts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 15:05:54.790 | 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_erp_other_collect_ticket_amounts'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 15:05:54.806 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.806 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:05:54.806 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_other_collect_ticket_amounts" ("erp_other_collect_ticket_id", "amount") VALUES (57, '100') |
| 15:05:54.809 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_other_collect_ticket_bank_outs" WHERE "erp_other_collect_ticket_id"=57 |
| 15:05:54.809 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.809 | 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_erp_other_collect_ticket_bank_outs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 15:05:54.812 | 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_erp_other_collect_ticket_bank_outs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 15:05:54.833 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.834 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:05:54.834 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_other_collect_ticket_bank_outs" ("erp_other_collect_ticket_id", "erp_bank_id", "amount", "description", "settle_at", "settle_by") VALUES (57, 1, '100', '', 'now()', 1001) |
| 15:05:54.836 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_other_collect_ticket_approve_borrow_settles" WHERE "erp_other_collect_ticket_id"=57 |
| 15:05:54.836 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_other_collect_ticket_payments" WHERE "erp_other_collect_ticket_id"=57 |
| 15:05:54.837 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_verify_rels" WHERE ("status"=0) AND ("erp_other_collect_ticket_id"=57) ORDER BY "id" |
| 15:05:54.838 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_other_collect_tickets" SET "amount"='100', "next_verify_user"=1001 WHERE "id"=57 |
| 15:05:54.839 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpOtherCollectTickets', 57, 'a:1:{s:6:"amount";d:100;}', '', 1001, '221.216.117.119') |
| 15:05:54.840 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_tickets" WHERE "id"=57 |
| 15:05:54.840 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_approve_borrow_settles" WHERE "erp_other_collect_ticket_id"=57 ORDER BY "id" |
| 15:05:54.841 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_bank_outs" WHERE "erp_other_collect_ticket_id"=57 ORDER BY "id" |
| 15:05:54.841 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_banks" WHERE "id"=1 |
| 15:05:54.842 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.843 | 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_erp_banks'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 15:05:54.846 | 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_erp_banks'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 15:05:54.862 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.862 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:05:54.864 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_other_income_ticket_bank_ins" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON r.erp_other_income_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 15:05:54.868 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_bank_transfer_ticket_bank_ins" "r" LEFT JOIN "a57be577deb434"."tbl_erp_bank_transfer_tickets" "t" ON r.erp_bank_transfer_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 15:05:54.872 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_bank_transfer_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_bank_transfer_tickets" "t" ON r.erp_bank_transfer_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 15:05:54.875 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 15:05:54.882 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_advance_payment_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_advance_payment_tickets" "t" ON r.erp_advance_payment_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 15:05:54.885 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_other_payment_ticket_bank_ins" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_payment_tickets" "t" ON r.erp_other_payment_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 15:05:54.887 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_other_collect_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_collect_tickets" "t" ON r.erp_other_collect_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND (t.bank_settle_at IS NOT NULL) |
| 15:05:54.889 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 15:05:54.893 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_collect_ticket_bank_ins" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 15:05:54.897 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_social_insurance_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_social_insurances" "t" ON r.erp_social_insurance_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 15:05:54.900 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_provident_fund_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_provident_funds" "t" ON r.erp_provident_fund_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 15:05:54.905 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_personal_tax_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_personal_taxs" "t" ON r.erp_personal_tax_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 15:05:54.908 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_wage_prize_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_wage_prizes" "t" ON r.erp_wage_prize_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 15:05:54.911 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_wage_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_wage_tickets" "t" ON r.erp_wage_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 15:05:54.914 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_banks" SET "balance_amount"='1484533.72' WHERE "id"=1 |
| 15:05:54.914 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpBanks', 1, 'a:0:{}', '', 1001, '221.216.117.119') |
| 15:05:54.915 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_banks" WHERE "id"=1 |
| 15:05:54.921 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_account_captions" WHERE "id"=71 |
| 15:05:54.923 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.924 | 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_erp_account_captions'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 15:05:54.928 | 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_erp_account_captions'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 15:05:54.943 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.944 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:05:54.944 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_account_captions" SET "created_at"='2025-08-01 23:14:45', "updated_at"='2025-08-08 18:50:15' WHERE "id"=71 |
| 15:05:54.944 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpAccountCaptions', 71, 'a:0:{}', '', 1001, '221.216.117.119') |
| 15:05:54.945 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpBanks', 1, 'a:0:{}', '', 1001, '221.216.117.119') |
| 15:05:54.946 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_payments" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=57) AND ("t"."status" IN (2, 5)) |
| 15:05:54.947 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=57) AND ("t"."status" IN (2, 5)) |
| 15:05:54.948 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_wage_ticket_amount_payments" "r" LEFT JOIN "a57be577deb434"."tbl_erp_wage_tickets" "t" ON r.erp_wage_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=57) AND ("t"."status" IN (2, 5)) |
| 15:05:54.949 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=57) AND ("t"."status" IN (2, 5)) |
| 15:05:54.949 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_payments" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=57) AND ("t"."status" IN (1, 2, 5)) |
| 15:05:54.950 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=57) AND ("t"."status" IN (1, 2, 5)) |
| 15:05:54.951 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_wage_ticket_amount_payments" "r" LEFT JOIN "a57be577deb434"."tbl_erp_wage_tickets" "t" ON r.erp_wage_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=57) AND ("t"."status" IN (1, 2, 5)) |
| 15:05:54.951 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=57) AND ("t"."status" IN (1, 2, 5)) |
| 15:05:54.952 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_other_collect_tickets" SET "all_settle_amount"='0' WHERE "id"=57 |
| 15:05:54.953 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpOtherCollectTickets', 57, 'a:0:{}', '', 1001, '221.216.117.119') |
| 15:05:54.953 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_payments" WHERE "erp_other_collect_ticket_id"=57 ORDER BY "id" |
| 15:05:54.953 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 15:05:54.954 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_verify_rels" WHERE ("status"=0) AND ("erp_other_collect_ticket_id"=57) ORDER BY "id" |
| 15:05:54.955 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_verify_rels" WHERE ("status"=0) AND ("erp_other_collect_ticket_id"=57) ORDER BY "id" |
| 15:05:54.956 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 15:05:54.957 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.957 | 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_object_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 15:05:54.961 | 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_object_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 15:05:54.976 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.976 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:05:54.976 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 57, 20021, 1001, '2026-06-11 15:05:54', '{"id":57,"serial_no":"QTYSD-20260611-00001","wrote_date":"2026-06-11","from_date":null,"ticket_type":1,"handler":1001,"user_id":null,"client_id":1331,"sales_contract_id":3108,"supplier_id":null,"purchase_contract_id":null,"status":1,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"100","settle_amount":"0","created_by":1001,"stop_description":null,"is_wages":false,"is_settle":false,"created_at":"2026-06-11 15:05:54","updated_at":"2026-06-11 15:05:54","paid_amount":"0","un_paid_amount":"0","erp_wage_ticket_id":null,"erp_wage_ticket_amount_id":null,"contact_id":null,"is_start":false,"bank_settle_at":null,"print_times":null,"all_settle_amount":"0"}', '{"id":57,"serial_no":"QTYSD-20260611-00001","wrote_date":"2026-06-11","from_date":null,"ticket_type":1,"handler":1001,"user_id":null,"client_id":1331,"sales_contract_id":3108,"supplier_id":null,"purchase_contract_id":null,"status":1,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"100","settle_amount":"0","created_by":1001,"stop_description":null,"is_wages":false,"is_settle":false,"created_at":"2026-06-11 15:05:54","updated_at":"2026-06-11 15:05:54","paid_amount":"0","un_paid_amount":"0","erp_wage_ticket_id":null,"erp_wage_ticket_amount_id":null,"contact_id":null,"is_start":false,"bank_settle_at":null,"print_times":null,"all_settle_amount":"0"}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u5176\u4ed6\u5e94\u6536\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
| 15:05:54.985 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 641705, 'a:13:{s:2:"id";i:641705;s:9:"object_id";i:57;s:11:"object_type";i:20021;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:798:"{"id":57,"serial_no":"QTYSD-20260611-00001","wrote_date":"2026-06-11","from_date":null,"ticket_type":1,"handler":1001,"user_id":null,"client_id":1331,"sales_contract_id":3108,"supplier_id":null,"purchase_contract_id":null,"status":1,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"100","settle_amount":"0","created_by":1001,"stop_description":null,"is_wages":false,"is_settle":false,"created_at":"2026-06-11 15:05:54","updated_at":"2026-06-11 15:05:54","paid_amount":"0","un_paid_amount":"0","erp_wage_ticket_id":null,"erp_wage_ticket_amount_id":null,"contact_id":null,"is_start":false,"bank_settle_at":null,"print_times":null,"all_settle_amount":"0"}";s:9:"new_value";s:798:"{"id":57,"serial_no":"QTYSD-20260611-00001","wrote_date":"2026-06-11","from_date":null,"ticket_type":1,"handler":1001,"user_id":null,"client_id":1331,"sales_contract_id":3108,"supplier_id":null,"purchase_contract_id":null,"status":1,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"100","settle_amount":"0","created_by":1001,"stop_description":null,"is_wages":false,"is_settle":false,"created_at":"2026-06-11 15:05:54","updated_at":"2026-06-11 15:05:54","paid_amount":"0","un_paid_amount":"0","erp_wage_ticket_id":null,"erp_wage_ticket_amount_id":null,"contact_id":null,"is_start":false,"bank_settle_at":null,"print_times":null,"all_settle_amount":"0"}";s:11:"description";s:111:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u5176\u4ed6\u5e94\u6536\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-11 15:05:54";s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 15:05:54.986 | trace | yii\db\Transaction::commit | Commit transaction |
| 15:05:54.989 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.989 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:05:54.989 | 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/erp-other-collect-ticket/save-new', '{"ErpOtherCollectTickets":{"id":"","auto_id":"1331","auto_name":"\u4e09\u76db\u667a\u6167\u6559\u80b2\u79d1\u6280\u80a1\u4efd\u6709\u9650\u516c\u53f8\/\u5317\u4eac\u4e2d\u80b2\u8d1d\u62c9\u56fd\u9645\u6559\u80b2\u79d1\u6280\u6709\u9650\u516c\u53f8\/\u5317\u4eac\u6c47\u51a0\u89e6\u6478\u6280\u672f\u6709\u9650\u516c\u53f8","auto_type":"client","auto_search_id":"3108","auto_search_name":"TS-SQY-2023122264(2024-01-25)","handler":"1001","ticket_type":"1","wrote_date":"2026-06-11","serial_no":"QTYSD-20260611-00001","erpOtherCollectTicketVerifyRels":["1001"],"abstract":"","description":"","client_id":"1331","client_name":"\u4e09\u76db\u667a\u6167\u6559\u80b2\u79d1\u6280\u80a1\u4efd\u6709\u9650\u516c\u53f8\/\u5317\u4eac\u4e2d\u80b2\u8d1d\u62c9\u56fd\u9645\u6559\u80b2\u79d1\u6280\u6709\u9650\u516c\u53f8\/\u5317\u4eac\u6c47\u51a0\u89e6\u6478\u6280\u672f\u6709\u9650\u516c\u53f8","sales_contract_id":"3108","sales_contract_name":"TS-SQY-2023122264(2024-01-25)","supplier_id":"","supplier_name":"","purchase_contract_id":"","purchase_contract_name":"","user_id":"","user_name":"","contact_id":"","contact_name":"","files":"","erpOtherCollectTicketAmounts":[{"id":"","amount":"100","description":""}],"erpOtherCollectTicketBankOuts":[{"amount":"100","id":"1","description":""}],"erpOtherCollectTicketApproveBorrowSettles":"","erpOtherCollectTicketPayments":""},"web_access_token":"2SCKb3BYAaSLDxSx0sIX1KfVKBB-1lWj"}', '{"code":2000,"result":{"id":57},"status":1,"msg":[{"name":"success","success":"\u65b0\u5176\u4ed6\u5e94\u6536\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"221.216.117.119","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-11 15:05:54', 293697024) RETURNING "id" |
| 15:05:54.991 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:05:54.991 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |