11:17:42.157 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
11:17:42.157 | trace | yii\base\Module::getModule | Loading module: debug |
11:17:42.157 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
11:17:42.158 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
11:17:42.158 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
11:17:42.158 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.158 | trace | yii\base\Module::getModule | Loading module: gii |
11:17:42.158 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
11:17:42.158 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
11:17:42.158 | trace | yii\web\Application::handleRequest | Route requested: 'vue/purchase-contract/save-new-payment' |
11:17:42.158 | trace | yii\base\Module::getModule | Loading module: vue |
11:17:42.159 | info | yii\web\Session::open | Session started |
11:17:42.159 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
11:17:42.159 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
11:17:42.163 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.163 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.164 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.164 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.164 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
11:17:42.165 | trace | yii\base\Controller::runAction | Route to run: vue/purchase-contract/save-new-payment |
11:17:42.166 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.166 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
11:17:42.166 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\PurchaseContractController::actionSaveNewPayment() |
11:17:42.166 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='3851' |
11:17:42.167 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.167 | 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_purchase_contracts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:17:42.172 | 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_purchase_contracts'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:17:42.185 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.185 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
11:17:42.226 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\PurchaseContractPayments'. |
11:17:42.226 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.227 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.227 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\PurchaseContractPayments'. |
11:17:42.227 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=3851) |
11:17:42.227 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=3851) |
11:17:42.228 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_purchase_contract_payments" ("contract_id", "collected_date", "description", "amount", "created_by", "created_at") VALUES (3851, '2025/07/04', '', '1', 1001, 'now()') RETURNING "id" |
11:17:42.233 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.233 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.233 | 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\PurchaseContractPayments', 2103, 'a:8:{s:2:"id";i:2103;s:11:"contract_id";i:3851;s:6:"amount";s:1:"1";s:10:"created_by";i:1001;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:14:"collected_date";s:10:"2025/07/04";s:11:"description";s:0:"";s:11:"paid_amount";N;}', '', 1001, '114.254.1.137') |
11:17:42.234 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=3851 |
11:17:42.235 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contract_payments" SET "paid_amount"='0' WHERE "contract_id"=3851 |
11:17:42.236 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.236 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.236 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=3851 |
11:17:42.237 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_payments" WHERE ("contract_id"=3851) AND (amount > 0) AND (amount > paid_amount) ORDER BY "collected_date", "created_at" |
11:17:42.238 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE ("contract_id"=3851) AND (amount > paid_amount) ORDER BY "remind_date" |
11:17:42.238 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" SET "paid_amount"='1' WHERE "id"=627 |
11:17:42.240 | 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\PurchaseContractPaymentCollectionRemindDates', 627, 'a:1:{s:11:"paid_amount";i:1;}', '', 1001, '114.254.1.137') |
11:17:42.241 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contract_payments" SET "paid_amount"='1' WHERE "id"=2101 |
11:17:42.242 | 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\PurchaseContractPayments', 2101, 'a:1:{s:11:"paid_amount";s:1:"0";}', '', 1001, '114.254.1.137') |
11:17:42.243 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_payments" WHERE ("contract_id"=3851) AND (amount > 0) AND (amount > paid_amount) ORDER BY "collected_date", "created_at" |
11:17:42.243 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE ("contract_id"=3851) AND (amount > paid_amount) ORDER BY "remind_date" |
11:17:42.244 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" SET "paid_amount"='800', "overdue_days"=0, "status"=1 WHERE "id"=627 |
11:17:42.244 | 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\PurchaseContractPaymentCollectionRemindDates', 627, 'a:0:{}', '', 1001, '114.254.1.137') |
11:17:42.246 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contract_payments" SET "paid_amount"='799' WHERE "id"=2102 |
11:17:42.246 | 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\PurchaseContractPayments', 2102, 'a:1:{s:11:"paid_amount";i:799;}', '', 1001, '114.254.1.137') |
11:17:42.247 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE ("contract_id"=3851) AND (amount > paid_amount) ORDER BY "remind_date" |
11:17:42.247 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=110) AND ("object_id"=2103) |
11:17:42.249 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_payments" WHERE "id"=2103 |
11:17:42.249 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.249 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.249 | 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', 2103, 110, 1001, '2025-07-04 11:17:42', '{"id":2103,"contract_id":3851,"amount":"1","created_by":1001,"created_at":"2025-07-04 11:17:42","collected_date":"2025-07-04","description":"","paid_amount":"0"}', '{"id":2103,"contract_id":3851,"amount":"1","created_by":1001,"created_at":"2025-07-04 11:17:42","collected_date":"2025-07-04","description":"","paid_amount":"0"}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[]}') RETURNING "id" |
11:17:42.251 | 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', 509978, 'a:13:{s:2:"id";i:509978;s:9:"object_id";i:2103;s:11:"object_type";i:110;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:161:"{"id":2103,"contract_id":3851,"amount":"1","created_by":1001,"created_at":"2025-07-04 11:17:42","collected_date":"2025-07-04","description":"","paid_amount":"0"}";s:9:"new_value";s:161:"{"id":2103,"contract_id":3851,"amount":"1","created_by":1001,"created_at":"2025-07-04 11:17:42","collected_date":"2025-07-04","description":"","paid_amount":"0"}";s:11:"description";s:93:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-07-04 11:17:42";s:9:"is_delete";N;}', '', 1001, '114.254.1.137') |
11:17:42.252 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=3851 ORDER BY "id" |
11:17:42.252 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.252 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.252 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 982, 10, 3851, 13, 1001, '[3851]', '[3851]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}') RETURNING "id" |
11:17:42.253 | 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', 509979, 'a:13:{s:2:"id";i:509979;s:9:"object_id";i:982;s:11:"object_type";i:10;s:9:"target_id";i:3851;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3851]";s:9:"new_value";s:6:"[3851]";s:11:"description";s:140:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.254.1.137') |
11:17:42.254 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 1018, 1, 3851, 13, 1001, '[3851]', '[3851]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}') RETURNING "id" |
11:17:42.255 | 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', 509980, 'a:13:{s:2:"id";i:509980;s:9:"object_id";i:1018;s:11:"object_type";i:1;s:9:"target_id";i:3851;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3851]";s:9:"new_value";s:6:"[3851]";s:11:"description";s:140:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.254.1.137') |
11:17:42.256 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 689, 12, 3851, 13, 1001, '[3851]', '[3851]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}') RETURNING "id" |
11:17:42.257 | 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', 509981, 'a:13:{s:2:"id";i:509981;s:9:"object_id";i:689;s:11:"object_type";i:12;s:9:"target_id";i:3851;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3851]";s:9:"new_value";s:6:"[3851]";s:11:"description";s:140:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.254.1.137') |
11:17:42.258 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 3851, 13, 2103, 110, 1001, '[2103]', '[2103]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u4ed8\u6b3e\u8bb0\u5f55","d4":["2025-07-04 \uffe51.00"]}') RETURNING "id" |
11:17:42.259 | 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', 509982, 'a:13:{s:2:"id";i:509982;s:9:"object_id";i:3851;s:11:"object_type";i:13;s:9:"target_id";i:2103;s:18:"target_object_type";i:110;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[2103]";s:9:"new_value";s:6:"[2103]";s:11:"description";s:116:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u4ed8\u6b3e\u8bb0\u5f55","d4":["2025-07-04 \uffe51.00"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.254.1.137') |
11:17:42.259 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.260 | 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_comments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:17:42.262 | 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_comments'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:17:42.273 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.273 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
11:17:42.273 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=3851 |
11:17:42.274 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
11:17:42.275 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1001, '13', 3851, '刘人诚提交了付款记录:付款金额1元', TRUE, '采购合同:') RETURNING "id" |
11:17:42.277 | 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\Comments', 170248, 'a:11:{s:2:"id";i:170248;s:9:"object_id";i:3851;s:11:"object_type";s:2:"13";s:6:"parent";N;s:11:"description";s:49:"刘人诚提交了付款记录:付款金额1元";s:10:"created_by";i:1001;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:15:"采购合同:";}', '', 1001, '114.254.1.137') |
11:17:42.278 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.278 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.278 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (3851, '13', 170248, 1011) |
11:17:42.282 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1011) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
11:17:42.283 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
11:17:42.285 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
11:17:42.285 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
11:17:42.285 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
11:17:42.285 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.285 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:17:42.285 | 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/purchase-contract/save-new-payment', '{"PurchaseContractPayments":{"id":"","contract_id":"3851","collected_date":"2025\/07\/04","description":"","amount":"1","files":""},"contract_id":"3851","web_access_token":"er_liQPTz011rRwTshQzixBLTwcD6PCJ"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u65b0\u6536\u6b3e\u4fe1\u606f\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-07-04 11:17:42') RETURNING "id" |
11:17:42.287 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:17:42.287 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |