| 10:29:36.845 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 10:29:36.845 | trace | yii\base\Module::getModule | Loading module: debug |
| 10:29:36.845 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 10:29:36.845 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 10:29:36.845 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 10:29:36.845 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.846 | trace | yii\base\Module::getModule | Loading module: gii |
| 10:29:36.846 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
| 10:29:36.846 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 10:29:36.846 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-collect-ticket/save-new' |
| 10:29:36.846 | trace | yii\base\Module::getModule | Loading module: vue |
| 10:29:36.846 | info | yii\web\Session::open | Session started |
| 10:29:36.847 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 10:29:36.847 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 10:29:36.851 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.851 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:36.852 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 10:29:36.852 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.853 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:36.853 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 10:29:36.854 | trace | yii\base\Controller::runAction | Route to run: vue/erp-collect-ticket/save-new |
| 10:29:36.855 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.856 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 10:29:36.856 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpCollectTicketController::actionSaveNew() |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_id' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_name' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_type' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.861 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'handler_name' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'supplier_name' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'user_name' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contact_name' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCollectTicketVerifyRels' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCollectTicketBankIns' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCollectTicketPayments' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCollectTicketSettles' in 'app\models\ErpCollectTickets'. |
| 10:29:36.861 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.862 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.863 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_tickets" WHERE ("created_at" >= '2025-12-23 00:00:00') AND ("created_at" <= '2025-12-23 23:59:59') AND ("serial_no" ILIKE '%SKD-20251223-%') AND (LENGTH(serial_no) = 18) ORDER BY "serial_no" DESC |
| 10:29:36.865 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_collect_tickets" WHERE "serial_no"='SKD-20251223-00001') |
| 10:29:36.866 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1004') |
| 10:29:36.866 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3309') |
| 10:29:36.867 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 10:29:36.867 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_collect_tickets" ("handler", "wrote_date", "serial_no", "abstract", "description", "client_id", "supplier_id", "user_id", "contact_id", "verify_type", "created_by", "created_at", "status", "is_resubmitted", "amount", "settle_amount", "is_old") VALUES (1004, '2025-12-23', 'SKD-20251223-00001', '测试', NULL, 3309, NULL, NULL, NULL, 2, 1001, 'now()', 1, FALSE, '0', '0', TRUE) RETURNING "id" |
| 10:29:36.883 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.883 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:36.883 | 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\ErpCollectTickets', 2082, 'a:32:{s:2:"id";i:2082;s:9:"serial_no";s:18:"SKD-20251223-00001";s:10:"wrote_date";s:10:"2025-12-23";s:9:"from_date";N;s:7:"handler";s:4:"1004";s:7:"user_id";s:0:"";s:9:"client_id";s:4:"3309";s:17:"sales_contract_id";N;s:11:"supplier_id";s:0:"";s:20:"purchase_contract_id";N;s:6:"status";i:1;s:8:"abstract";s:6:"测试";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:9:"is_settle";N;s:6:"is_old";b:1;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"paid_amount";N;s:10:"contact_id";s:0:"";s:14:"bank_settle_at";N;s:11:"print_times";N;}', '', 1001, '223.72.15.12') |
| 10:29:36.893 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20022) AND ("object_id"=2082) |
| 10:29:36.895 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE "erp_collect_ticket_id"=2082 |
| 10:29:36.896 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.896 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:36.896 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_collect_ticket_settles" ("erp_collect_ticket_id", "sales_contract_id", "purchase_contract_id", "erp_other_income_ticket_id", "erp_other_collect_ticket_id", "amount") VALUES (2082, 4241, NULL, NULL, NULL, '0') RETURNING "id" |
| 10:29:36.908 | 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\ErpCollectTicketSettles', 2088, 'a:8:{s:2:"id";i:2088;s:21:"erp_collect_ticket_id";i:2082;s:17:"sales_contract_id";s:4:"4241";s:20:"purchase_contract_id";s:0:"";s:26:"erp_other_income_ticket_id";s:0:"";s:27:"erp_other_collect_ticket_id";s:0:"";s:6:"amount";s:1:"0";s:11:"description";N;}', '', 1001, '223.72.15.12') |
| 10:29:36.909 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_collect_ticket_bank_ins" WHERE "erp_collect_ticket_id"=2082 |
| 10:29:36.910 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.911 | 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_collect_ticket_bank_ins'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 10:29:36.919 | 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_collect_ticket_bank_ins'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 10:29:36.939 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:36.941 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 10:29:36.941 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_collect_ticket_bank_ins" ("erp_collect_ticket_id", "erp_bank_id", "amount", "description", "settle_at", "settle_by") VALUES (2082, NULL, NULL, '', 'now()', 1001) |
| 10:29:36.948 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_verify_rels" WHERE ("status"=0) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:36.949 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_collect_tickets" SET "next_verify_user"=NULL WHERE "id"=2082 |
| 10:29:36.950 | 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\ErpCollectTickets', 2082, 'a:0:{}', '', 1001, '223.72.15.12') |
| 10:29:36.952 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_tickets" WHERE "id"=2082 |
| 10:29:36.952 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_bank_ins" WHERE "erp_collect_ticket_id"=2082 ORDER BY "id" |
| 10:29:36.953 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE (purchase_contract_id is not null) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:36.954 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE (sales_contract_id is not null) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:36.954 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4241 |
| 10:29:36.955 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.955 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:36.956 | 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"."sales_contract_id"=4241) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) |
| 10:29:36.957 | 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"."sales_contract_id"=4241) AND ("t"."status" IN (2, 5)) |
| 10:29:36.958 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=4241) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 10:29:36.959 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* 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"."sales_contract_id"=4241) AND ("t"."status"=1)) |
| 10:29:36.960 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* 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"."sales_contract_id"=4241) AND ("t"."status"=1)) |
| 10:29:36.961 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=4241) AND ("t"."status"=1)) |
| 10:29:36.962 | 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"."sales_contract_id"=4241) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (1, 2, 5)) |
| 10:29:36.963 | 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"."sales_contract_id"=4241) AND ("t"."status" IN (1, 2, 5)) |
| 10:29:36.964 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=4241) AND ("t"."status" IN (1, 2, 5)) |
| 10:29:36.965 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "erp_settle_amount"='24000', "erp_un_settle_amount"='0', "erp_collect_ticket_is_verify"=TRUE, "erp_all_settle_amount"='24000' WHERE "id"=4241 |
| 10:29:36.967 | 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\SalesContracts', 4241, 'a:0:{}', '', 1001, '223.72.15.12') |
| 10:29:36.970 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3309 |
| 10:29:36.975 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.975 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:36.976 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4008 |
| 10:29:36.977 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:36.977 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:36.977 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4008 |
| 10:29:37.063 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "collected"='24000', "end_at"='now()' WHERE "id"=4008 |
| 10:29:37.083 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4008) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 10:29:37.090 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:37.091 | 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_project_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 10:29:37.095 | 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_project_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 10:29:37.108 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:37.108 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 10:29:37.108 | 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\Projects', 4008, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '223.72.15.12') |
| 10:29:37.110 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3309 |
| 10:29:37.111 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4241 |
| 10:29:37.111 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:37.112 | 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_contract_payment_collection_remind_dates'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 10:29:37.116 | 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_contract_payment_collection_remind_dates'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 10:29:37.130 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:37.130 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 10:29:37.130 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=4241 |
| 10:29:37.135 | info | yii\db\Command::query | SELECT r.amount, t.created_at 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"."sales_contract_id"=4241) AND ("t"."status" IN (2, 5, 1)) |
| 10:29:37.136 | info | yii\db\Command::query | SELECT r.amount, t.created_at 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"."sales_contract_id"=4241) AND ("t"."status" IN (2, 5, 1)) |
| 10:29:37.137 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4008 |
| 10:29:37.137 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4241 |
| 10:29:37.139 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4008) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 10:29:37.140 | 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\Projects', 4008, 'a:1:{s:6:"end_at";s:19:"2025-12-23 10:29:37";}', '', 1001, '223.72.15.12') |
| 10:29:37.141 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3309 |
| 10:29:37.141 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4241) AND (amount > paid_amount) ORDER BY "remind_date" |
| 10:29:37.142 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='24000', "status"=1 WHERE "id"=2622 |
| 10:29:37.143 | 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\SalesContractPaymentCollectionRemindDates', 2622, 'a:2:{s:11:"paid_amount";s:1:"0";s:6:"status";i:0;}', '', 1001, '223.72.15.12') |
| 10:29:37.144 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE (erp_other_income_ticket_id is not null) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:37.145 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE (erp_other_collect_ticket_id is not null) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:37.145 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_payments" WHERE "erp_collect_ticket_id"=2082 ORDER BY "id" |
| 10:29:37.145 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 10:29:37.146 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_verify_rels" WHERE ("status"=0) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:37.146 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_collect_tickets" SET "status"=2, "verify_at"='now()', "updated_at"='now()', "bank_settle_at"='now()' WHERE "id"=2082 |
| 10:29:37.147 | 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\ErpCollectTickets', 2082, 'a:2:{s:9:"verify_at";s:5:"now()";s:14:"bank_settle_at";s:5:"now()";}', '', 1001, '223.72.15.12') |
| 10:29:37.151 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_bank_ins" WHERE "erp_collect_ticket_id"=2082 ORDER BY "id" |
| 10:29:37.152 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE (purchase_contract_id is not null) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:37.152 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE (sales_contract_id is not null) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:37.153 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4241 |
| 10:29:37.153 | 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"."sales_contract_id"=4241) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) |
| 10:29:37.154 | 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"."sales_contract_id"=4241) AND ("t"."status" IN (2, 5)) |
| 10:29:37.154 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=4241) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 10:29:37.155 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* 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"."sales_contract_id"=4241) AND ("t"."status"=1)) |
| 10:29:37.155 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* 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"."sales_contract_id"=4241) AND ("t"."status"=1)) |
| 10:29:37.156 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=4241) AND ("t"."status"=1)) |
| 10:29:37.157 | 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"."sales_contract_id"=4241) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (1, 2, 5)) |
| 10:29:37.157 | 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"."sales_contract_id"=4241) AND ("t"."status" IN (1, 2, 5)) |
| 10:29:37.158 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=4241) AND ("t"."status" IN (1, 2, 5)) |
| 10:29:37.158 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "erp_settle_amount"='24000', "erp_un_settle_amount"='0', "erp_collect_ticket_is_verify"=FALSE, "erp_all_settle_amount"='24000' WHERE "id"=4241 |
| 10:29:37.159 | 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\SalesContracts', 4241, 'a:0:{}', '', 1001, '223.72.15.12') |
| 10:29:37.160 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3309 |
| 10:29:37.160 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4008 |
| 10:29:37.161 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4008 |
| 10:29:37.162 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "collected"='24000', "end_at"='now()' WHERE "id"=4008 |
| 10:29:37.163 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4008) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 10:29:37.165 | 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\Projects', 4008, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '223.72.15.12') |
| 10:29:37.165 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3309 |
| 10:29:37.166 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4241 |
| 10:29:37.166 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=4241 |
| 10:29:37.167 | info | yii\db\Command::query | SELECT r.amount, t.created_at 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"."sales_contract_id"=4241) AND ("t"."status" IN (2, 5, 1)) |
| 10:29:37.168 | info | yii\db\Command::query | SELECT r.amount, t.created_at 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"."sales_contract_id"=4241) AND ("t"."status" IN (2, 5, 1)) |
| 10:29:37.168 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4008 |
| 10:29:37.169 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4241 |
| 10:29:37.170 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4008) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 10:29:37.171 | 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\Projects', 4008, 'a:1:{s:6:"end_at";s:19:"2025-12-23 10:29:37";}', '', 1001, '223.72.15.12') |
| 10:29:37.172 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3309 |
| 10:29:37.173 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4241) AND (amount > paid_amount) ORDER BY "remind_date" |
| 10:29:37.173 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='24000', "status"=1 WHERE "id"=2622 |
| 10:29:37.174 | 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\SalesContractPaymentCollectionRemindDates', 2622, 'a:2:{s:11:"paid_amount";s:1:"0";s:6:"status";i:0;}', '', 1001, '223.72.15.12') |
| 10:29:37.175 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE (erp_other_income_ticket_id is not null) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:37.175 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE (erp_other_collect_ticket_id is not null) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:37.176 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_payments" WHERE "erp_collect_ticket_id"=2082 ORDER BY "id" |
| 10:29:37.176 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_tickets" WHERE "id"=2082 |
| 10:29:37.176 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:37.176 | 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_ticket_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 10:29:37.179 | 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_ticket_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 10:29:37.188 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:37.188 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 10:29:37.189 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_logs" ("status", "ticket_type", "serial_no", "wrote_date", "description", "abstract", "amount", "client_id", "supplier_id", "contact_id", "user_id", "created_by", "created_at", "updated_at", "object_id", "verify_at") VALUES (2, 20013, 'SKD-20251223-00001', '2025-12-23', NULL, '测试', '0', 3309, NULL, NULL, NULL, 1001, '2025-12-23 10:29:36', '2025-12-23 10:29:37', 2082, '2025-12-23 10:29:37.146883+08') RETURNING "id" |
| 10:29:37.194 | 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\ErpTicketChangeLogs', 1418, 'a:17:{s:2:"id";i:1418;s:9:"serial_no";s:18:"SKD-20251223-00001";s:11:"ticket_type";i:20013;s:10:"wrote_date";s:10:"2025-12-23";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:3309;s:8:"abstract";s:6:"测试";s:11:"description";N;s:9:"verify_at";s:29:"2025-12-23 10:29:37.146883+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-12-23 10:29:36";s:10:"updated_at";s:19:"2025-12-23 10:29:37";s:10:"contact_id";N;s:7:"user_id";N;s:6:"amount";s:1:"0";s:9:"object_id";i:2082;}', '', 1001, '223.72.15.12') |
| 10:29:37.195 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:37.195 | 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_ticket_change_log_handlers'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 10:29:37.198 | 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_ticket_change_log_handlers'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 10:29:37.206 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:37.207 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 10:29:37.207 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (1418, 1004) |
| 10:29:37.216 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 10:29:37.217 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:37.217 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:37.217 | 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', 2082, 20013, 1001, '2025-12-23 10:29:36', '{"id":2082,"serial_no":"SKD-20251223-00001","wrote_date":"2025-12-23","from_date":null,"handler":1004,"user_id":null,"client_id":3309,"sales_contract_id":null,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":"\u6d4b\u8bd5","description":null,"verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"0","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_old":true,"created_at":"2025-12-23 10:29:36","updated_at":"1970-01-01 08:00:00","paid_amount":null,"contact_id":null,"bank_settle_at":"now()","print_times":null}', '{"id":2082,"serial_no":"SKD-20251223-00001","wrote_date":"2025-12-23","from_date":null,"handler":1004,"user_id":null,"client_id":3309,"sales_contract_id":null,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":"\u6d4b\u8bd5","description":null,"verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"0","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_old":true,"created_at":"2025-12-23 10:29:36","updated_at":"1970-01-01 08:00:00","paid_amount":null,"contact_id":null,"bank_settle_at":"now()","print_times":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
| 10:29:37.224 | 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', 591674, 'a:13:{s:2:"id";i:591674;s:9:"object_id";i:2082;s:11:"object_type";i:20013;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:673:"{"id":2082,"serial_no":"SKD-20251223-00001","wrote_date":"2025-12-23","from_date":null,"handler":1004,"user_id":null,"client_id":3309,"sales_contract_id":null,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":"\u6d4b\u8bd5","description":null,"verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"0","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_old":true,"created_at":"2025-12-23 10:29:36","updated_at":"1970-01-01 08:00:00","paid_amount":null,"contact_id":null,"bank_settle_at":"now()","print_times":null}";s:9:"new_value";s:673:"{"id":2082,"serial_no":"SKD-20251223-00001","wrote_date":"2025-12-23","from_date":null,"handler":1004,"user_id":null,"client_id":3309,"sales_contract_id":null,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":"\u6d4b\u8bd5","description":null,"verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"0","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_old":true,"created_at":"2025-12-23 10:29:36","updated_at":"1970-01-01 08:00:00","paid_amount":null,"contact_id":null,"bank_settle_at":"now()","print_times":null}";s:11:"description";s:99:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-12-23 10:29:36";s:9:"is_delete";N;}', '', 1001, '223.72.15.12') |
| 10:29:37.225 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" WHERE (sales_contract_id is not null) AND ("erp_collect_ticket_id"=2082) ORDER BY "id" |
| 10:29:37.225 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE 0=1 |
| 10:29:37.226 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:37.226 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:37.226 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-12-23') |
| 10:29:37.230 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:37.230 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 10:29:37.230 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=31, "last_visit_at"='now()' WHERE "id"=59626 |
| 10:29:37.231 | 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/erp-collect-ticket/save-new', '{"ErpCollectTickets":{"id":"","auto_id":"3309","auto_name":"\u4e2d\u90fd\uff08\u682a\u6d32\uff09\u7269\u6d41\u6709\u9650\u516c\u53f8","auto_type":"client","handler":"1004","handler_name":"","wrote_date":"2025-12-23","serial_no":"SKD-20251223-00001","abstract":"\u6d4b\u8bd5","description":"","client_id":"3309","client_name":"\u4e2d\u90fd\uff08\u682a\u6d32\uff09\u7269\u6d41\u6709\u9650\u516c\u53f8","supplier_id":"","supplier_name":"","user_id":"","user_name":"","contact_id":"","contact_name":"","files":"","erpCollectTicketVerifyRels":"","erpCollectTicketBankIns":[{"amount":"","id":"","description":""}],"erpCollectTicketPayments":"","erpCollectTicketSettles":[{"purchase_contract_id":"","sales_contract_id":"4241","erp_other_income_ticket_id":"","erp_other_collect_ticket_id":"","amount":"0","erpCollectTicketApprovePaymentSettles":""}]},"web_access_token":"yb8YvQDqCxvGUQWSJnYL2S9XtkD7pVRr"}', '{"code":2000,"result":{"id":2082},"status":1,"msg":[{"name":"success","success":"\u65b0\u6536\u6b3e\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"223.72.15.12","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko\/20100101 Firefox\/146.0"}', FALSE, '2025-12-23 10:29:37') RETURNING "id" |
| 10:29:37.232 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 10:29:37.233 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |