14:49:18.563 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
14:49:18.563 | trace | yii\base\Module::getModule | Loading module: debug |
14:49:18.563 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
14:49:18.564 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
14:49:18.564 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
14:49:18.564 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.564 | trace | yii\base\Module::getModule | Loading module: gii |
14:49:18.564 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
14:49:18.564 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
14:49:18.564 | trace | yii\web\Application::handleRequest | Route requested: 'vue/sales-contract/save-new-payment' |
14:49:18.564 | trace | yii\base\Module::getModule | Loading module: vue |
14:49:18.565 | info | yii\web\Session::open | Session started |
14:49:18.565 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=5250 |
14:49:18.565 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
14:49:18.569 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.570 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.570 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.570 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.570 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250 |
14:49:18.574 | trace | yii\base\Controller::runAction | Route to run: vue/sales-contract/save-new-payment |
14:49:18.574 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.575 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
14:49:18.575 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\SalesContractController::actionSaveNewPayment() |
14:49:18.575 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"='3843' |
14:49:18.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.577 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\SalesContractPayments'. |
14:49:18.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.577 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\SalesContractPayments'. |
14:49:18.577 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE "contract_id"=3843 |
14:49:18.577 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=3843) |
14:49:18.578 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=3843) |
14:49:18.578 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_contract_payments" ("contract_id", "amount", "description", "collected_date", "created_by", "created_at") VALUES (3843, '1', '撒旦法大师傅大师傅阿是都是是都是啥的', '2025/07/05', 5250, 'now()') RETURNING "id" |
14:49:18.584 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.584 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.584 | 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\SalesContractPayments', 2164, 'a:8:{s:2:"id";i:2164;s:11:"contract_id";i:3843;s:6:"amount";s:1:"1";s:10:"created_by";i:5250;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:14:"collected_date";s:10:"2025/07/05";s:11:"description";s:54:"撒旦法大师傅大师傅阿是都是是都是啥的";s:11:"paid_amount";N;}', '', 5250, '223.72.35.175') |
14:49:18.585 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=3843 |
14:49:18.586 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payments" SET "paid_amount"='0' WHERE "contract_id"=3843 |
14:49:18.587 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.587 | 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; |
14:49:18.592 | 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 |
14:49:18.600 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.600 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:49:18.600 | 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"=3843 |
14:49:18.601 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.601 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.601 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3809 |
14:49:18.602 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=3843 |
14:49:18.630 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3809) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:49:18.635 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.635 | 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; |
14:49:18.638 | 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 |
14:49:18.646 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.646 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:49:18.646 | 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', 3809, 'a:1:{s:6:"end_at";s:19:"2025-06-11 11:10:21";}', '', 5250, '223.72.35.175') |
14:49:18.647 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304 |
14:49:18.648 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.648 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.649 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE ("contract_id"=3843) AND (amount > 0) AND (amount > paid_amount) ORDER BY "collected_date", "created_at" |
14:49:18.650 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=3843) AND (amount > paid_amount) ORDER BY "remind_date" |
14:49:18.650 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='1' WHERE "id"=2382 |
14:49:18.652 | 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', 2382, 'a:1:{s:11:"paid_amount";i:1;}', '', 5250, '223.72.35.175') |
14:49:18.653 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payments" SET "paid_amount"='1' WHERE "id"=2164 |
14:49:18.654 | 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\SalesContractPayments', 2164, 'a:1:{s:11:"paid_amount";s:1:"0";}', '', 5250, '223.72.35.175') |
14:49:18.655 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE ("contract_id"=3843) AND (amount > 0) AND (amount > paid_amount) ORDER BY "collected_date", "created_at" |
14:49:18.655 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=109) AND ("object_id"=2164) |
14:49:18.657 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.657 | 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_attachement_relationships'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:49:18.659 | 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_attachement_relationships'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:49:18.667 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.667 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:49:18.667 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (109, 2164, 24825), (109, 2164, 24826) |
14:49:18.671 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE "id"=2164 |
14:49:18.672 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.672 | 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; |
14:49:18.674 | 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 |
14:49:18.683 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.683 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:49:18.683 | 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', 2164, 108, 5250, '2025-07-05 14:49:18', '{"id":2164,"contract_id":3843,"amount":"1","created_by":5250,"created_at":"2025-07-05 14:49:18","collected_date":"2025-07-05","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","paid_amount":"1"}', '{"id":2164,"contract_id":3843,"amount":"1","created_by":5250,"created_at":"2025-07-05 14:49:18","collected_date":"2025-07-05","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","paid_amount":"1"}', '{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[]}') RETURNING "id" |
14:49:18.690 | 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', 510108, 'a:13:{s:2:"id";i:510108;s:9:"object_id";i:2164;s:11:"object_type";i:108;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:269:"{"id":2164,"contract_id":3843,"amount":"1","created_by":5250,"created_at":"2025-07-05 14:49:18","collected_date":"2025-07-05","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","paid_amount":"1"}";s:9:"new_value";s:269:"{"id":2164,"contract_id":3843,"amount":"1","created_by":5250,"created_at":"2025-07-05 14:49:18","collected_date":"2025-07-05","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","paid_amount":"1"}";s:11:"description";s:87:"{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[]}";s:10:"created_by";i:5250;s:10:"created_at";s:19:"2025-07-05 14:49:18";s:9:"is_delete";N;}', '', 5250, '223.72.35.175') |
14:49:18.691 | 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', 3304, 10, 3843, 7, 5250, '[3843]', '[3843]', '{"d1":"\u8463\u8363","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:TS-LRC-20250611001"]}') RETURNING "id" |
14:49:18.692 | 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', 510109, 'a:13:{s:2:"id";i:510109;s:9:"object_id";i:3304;s:11:"object_type";i:10;s:9:"target_id";i:3843;s:18:"target_object_type";i:7;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3843]";s:9:"new_value";s:6:"[3843]";s:11:"description";s:132:"{"d1":"\u8463\u8363","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:TS-LRC-20250611001"]}";s:10:"created_by";i:5250;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5250, '223.72.35.175') |
14:49:18.693 | 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', 3809, 1, 2164, 108, 5250, '[2164]', '[2164]', '{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[""]}') RETURNING "id" |
14:49:18.693 | 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', 510110, 'a:13:{s:2:"id";i:510110;s:9:"object_id";i:3809;s:11:"object_type";i:1;s:9:"target_id";i:2164;s:18:"target_object_type";i:108;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[2164]";s:9:"new_value";s:6:"[2164]";s:11:"description";s:89:"{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[""]}";s:10:"created_by";i:5250;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5250, '223.72.35.175') |
14:49:18.694 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304 |
14:49:18.695 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.696 | 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_user_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:49:18.698 | 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_user_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:49:18.706 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.706 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:49:18.707 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "users", "description") VALUES (1, 'create', 3809, 1, 2164, 108, 5250, '2164', '2164', array[1001], '{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[""]}') RETURNING "id" |
14:49:18.714 | 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\UserActionLogs', 136982, 'a:15:{s:2:"id";i:136982;s:9:"object_id";i:3809;s:11:"object_type";i:1;s:9:"target_id";i:2164;s:18:"target_object_type";i:108;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"2164";s:9:"new_value";s:4:"2164";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1001]";s:6:"params";a:0:{}}s:11:"description";s:89:"{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[""]}";s:10:"created_by";i:5250;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 5250, '223.72.35.175') |
14:49:18.715 | 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', 3843, 7, 2164, 108, 5250, '[2164]', '[2164]', '{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":["2025-07-05 \uffe51.00"]}') RETURNING "id" |
14:49:18.716 | 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', 510111, 'a:13:{s:2:"id";i:510111;s:9:"object_id";i:3843;s:11:"object_type";i:7;s:9:"target_id";i:2164;s:18:"target_object_type";i:108;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[2164]";s:9:"new_value";s:6:"[2164]";s:11:"description";s:110:"{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":["2025-07-05 \uffe51.00"]}";s:10:"created_by";i:5250;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5250, '223.72.35.175') |
14:49:18.717 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304 |
14:49:18.717 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.718 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.718 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.718 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.719 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=3843 |
14:49:18.719 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3809 |
14:49:18.719 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304 |
14:49:18.721 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250) |
14:49:18.722 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "is_system", "description", "description2") VALUES (5250, '7', 3843, TRUE, '董荣创建了:TS-LRC-20250611001收款信息2025/07/05¥1', '商机:测试默认选中明确需求;客户:北京月初科技有限公司(过单)') RETURNING "id" |
14:49:18.724 | 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', 170275, 'a:11:{s:2:"id";i:170275;s:9:"object_id";i:3843;s:11:"object_type";s:1:"7";s:6:"parent";N;s:11:"description";s:62:"董荣创建了:TS-LRC-20250611001收款信息2025/07/05¥1";s:10:"created_by";i:5250;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:93:"商机:测试默认选中明确需求;客户:北京月初科技有限公司(过单)";}', '', 5250, '223.72.35.175') |
14:49:18.725 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.725 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.725 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (3843, '7', 170275, 1001) |
14:49:18.729 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1001) AND ("id" != 5250) AND (channel_id IS NOT NULL) |
14:49:18.731 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250 |
14:49:18.743 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:49:18.743 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:49:18.743 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:49:18.744 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3809 |
14:49:18.745 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_payment_collection" WHERE "project_id"=3809 |
14:49:18.750 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE "contract_id"=3843 |
14:49:18.750 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.750 | 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_payment_collection'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:49:18.753 | 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_payment_collection'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:49:18.761 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.761 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:49:18.761 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_payment_collection" ("project_id", "created_by", "collected") VALUES (3809, 5250, '1') |
14:49:18.769 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "collected"='1', "end_at"='now()' WHERE "id"=3809 |
14:49:18.771 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3809) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:49:18.772 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=16110 |
14:49:18.774 | 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\ProjectChangeLogs', 16110, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 5250, '223.72.35.175') |
14:49:18.775 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_project_change_logs" ("project_id", "project_status", "budget", "profit_pct", "collected", "start_from", "end_at") VALUES (3809, 3, '1', '100', '1', 'now()', NULL) RETURNING "id" |
14:49:18.778 | 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\ProjectChangeLogs', 16118, 'a:8:{s:2:"id";i:16118;s:10:"project_id";i:3809;s:14:"project_status";i:3;s:6:"budget";s:1:"1";s:10:"profit_pct";s:3:"100";s:9:"collected";i:1;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5250, '223.72.35.175') |
14:49:18.779 | 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', 3809, 'a:2:{s:9:"collected";s:1:"0";s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 5250, '223.72.35.175') |
14:49:18.780 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304 |
14:49:18.781 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.781 | 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_status_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:49:18.783 | 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_status_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:49:18.792 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.792 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:49:18.792 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_project_status_logs" ("project_id", "old_status", "new_status", "created_by", "created_at") VALUES (3809, 3, 0, 5250, 'now()') RETURNING "id" |
14:49:18.796 | 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\ProjectStatusLogs', 3408, 'a:6:{s:2:"id";i:3408;s:10:"project_id";i:3809;s:10:"new_status";i:0;s:10:"old_status";i:3;s:10:"created_by";i:5250;s:10:"created_at";s:19:"1970-01-01 08:00:00";}', '', 5250, '223.72.35.175') |
14:49:18.797 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3809 |
14:49:18.798 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304 |
14:49:18.798 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250) |
14:49:18.798 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "is_system", "description", "description2") VALUES (5250, '1', 3809, TRUE, '此商机已收回全部款项', '商机:测试默认选中明确需求;客户:北京月初科技有限公司(过单)') RETURNING "id" |
14:49:18.799 | 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', 170276, 'a:11:{s:2:"id";i:170276;s:9:"object_id";i:3809;s:11:"object_type";s:1:"1";s:6:"parent";N;s:11:"description";s:30:"此商机已收回全部款项";s:10:"created_by";i:5250;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:93:"商机:测试默认选中明确需求;客户:北京月初科技有限公司(过单)";}', '', 5250, '223.72.35.175') |
14:49:18.801 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (3809, '1', 170276, 1001) |
14:49:18.802 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1001) AND ("id" != 5250) AND (channel_id IS NOT NULL) |
14:49:18.802 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250 |
14:49:18.802 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:49:18.802 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:49:18.802 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:49:18.802 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304 |
14:49:18.803 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
14:49:18.804 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:49:18.804 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:49:18.804 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:49:18.804 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "project_id"=3809 |
14:49:18.805 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "reminded"=TRUE WHERE "contract_id"=3843 |
14:49:18.805 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250 |
14:49:18.806 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'project_status', 3809, 1, 5250, 'now()', '["\u6536\u6b3e\u5b8c\u6210"]', '["\u5546\u673a\u6210\u4ea4"]', '{"d1":"\u8463\u8363","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u5546\u673a\u6210\u4ea4 <b>\u53d8\u4e3a<\/b> \u6536\u6b3e\u5b8c\u6210"]}') |
14:49:18.807 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250 |
14:49:18.807 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (2, 'project_status', 3809, 1, 5250, 'now()', '["\u6536\u6b3e\u5b8c\u6210"]', '["\u5546\u673a\u6210\u4ea4"]', array[1001], '{"d1":"\u8463\u8363","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u5546\u673a\u6210\u4ea4 <b>\u53d8\u4e3a<\/b> \u6536\u6b3e\u5b8c\u6210"]}') |
14:49:18.808 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.808 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:49:18.808 | 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', 5250, 5, 'vue/sales-contract/save-new-payment', '{"SalesContractPayments":{"id":"","contract_id":"3843","amount":"1","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","collected_date":"2025\/07\/05","files":["24825","24826"]},"contract_id":"3843","web_access_token":"lF6lDSiCl5CRIFfE8shlx2wSeme229Hs"}', '{"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-05 14:49:18') RETURNING "id" |
14:49:18.810 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:49:18.810 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |