17:07:48.213 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
17:07:48.213 | trace | yii\base\Module::getModule | Loading module: debug |
17:07:48.213 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
17:07:48.213 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
17:07:48.213 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
17:07:48.214 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.214 | trace | yii\base\Module::getModule | Loading module: gii |
17:07:48.214 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
17:07:48.214 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
17:07:48.214 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-profit-distribute/save-new' |
17:07:48.214 | trace | yii\base\Module::getModule | Loading module: vue |
17:07:48.214 | info | yii\web\Session::open | Session started |
17:07:48.215 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
17:07:48.215 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
17:07:48.219 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.219 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.220 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.220 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.220 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:07:48.222 | trace | yii\base\Controller::runAction | Route to run: vue/erp-profit-distribute/save-new |
17:07:48.222 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.223 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:07:48.223 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpProfitDistributeController::actionSaveNew() |
17:07:48.223 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpProfitDistributes'. |
17:07:48.223 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.224 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.224 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\ErpProfitDistributes'. |
17:07:48.224 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'user_name' in 'app\models\ErpProfitDistributes'. |
17:07:48.224 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpProfitDistributes'. |
17:07:48.224 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpProfitDistributeVerifyRels' in 'app\models\ErpProfitDistributes'. |
17:07:48.224 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpProfitDistributePcts' in 'app\models\ErpProfitDistributes'. |
17:07:48.224 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.224 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.225 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_profit_distributes" WHERE ("created_at" >= '2025-09-15 00:00:00') AND ("created_at" <= '2025-09-15 23:59:59') AND ("serial_no" ILIKE '%XSYJFTD-20250915-%') AND (LENGTH(serial_no) = 22) ORDER BY "serial_no" DESC |
17:07:48.226 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_profit_distributes" WHERE "serial_no"='XSYJFTD-20250915-00003') |
17:07:48.227 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2836') |
17:07:48.228 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
17:07:48.228 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3514') |
17:07:48.229 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001') |
17:07:48.229 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_profit_distributes" ("client_id", "user_id", "project_id", "wrote_date", "serial_no", "abstract", "verify_type", "created_by", "created_at", "status", "is_resubmitted") VALUES (2836, 1001, 3514, '2025-09-15', 'XSYJFTD-20250915-00003', '', 2, 1001, 'now()', 1, FALSE) RETURNING "id" |
17:07:48.232 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.232 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:07:48.238 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:07:48.242 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.242 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:07:48.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 ('INSERT', 'app\models\ErpProfitDistributes', 10, 'a:22:{s:2:"id";i:10;s:9:"serial_no";s:22:"XSYJFTD-20250915-00003";s:10:"wrote_date";s:10:"2025-09-15";s:6:"status";i:1;s:8:"abstract";s:0:"";s:11:"description";N;s:7:"user_id";s:4:"1001";s:9:"client_id";s:4:"2836";s:10:"project_id";s:4:"3514";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";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:9:"is_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;}', '', 1001, '114.246.237.213') |
17:07:48.250 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20049) AND ("object_id"=10) |
17:07:48.253 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_profit_distribute_pcts" WHERE "erp_profit_distribute_id"=10 |
17:07:48.253 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.253 | 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_profit_distribute_pcts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:07:48.256 | 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_profit_distribute_pcts'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:07:48.260 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.260 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:07:48.260 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_profit_distribute_pcts" ("erp_profit_distribute_id", "user_id", "pct", "description") VALUES (10, 1001, '44', '54454'), (10, 5332, '56', 'v人的') |
17:07:48.262 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_profit_distribute_verify_rels" WHERE ("status"=0) AND ("erp_profit_distribute_id"=10) ORDER BY "id" |
17:07:48.262 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_profit_distributes" SET "next_verify_user"=NULL WHERE "id"=10 |
17:07:48.263 | 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\ErpProfitDistributes', 10, 'a:0:{}', '', 1001, '114.246.237.213') |
17:07:48.264 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_profit_distributes" WHERE "id"=10 |
17:07:48.264 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:07:48.265 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_profit_distribute_verify_rels" WHERE ("status"=0) AND ("erp_profit_distribute_id"=10) ORDER BY "id" |
17:07:48.265 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_profit_distributes" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=10 |
17:07:48.266 | 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\ErpProfitDistributes', 10, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:5:"now()";}', '', 1001, '114.246.237.213') |
17:07:48.267 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_profit_distributes" WHERE "id"=10 |
17:07:48.267 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3514 |
17:07:48.268 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.268 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.268 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.268 | 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; |
17:07:48.271 | 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 |
17:07:48.275 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.275 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:07:48.275 | 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, 20028, 'XSYJFTD-20250915-00003', '2025-09-15', NULL, '', '836310.6', 2836, NULL, NULL, NULL, 1001, '2025-09-15 17:07:48', '2025-09-15 17:07:48', 10, '2025-09-15 17:07:48.265611+08') RETURNING "id" |
17:07:48.280 | 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', 555, 'a:17:{s:2:"id";i:555;s:9:"serial_no";s:22:"XSYJFTD-20250915-00003";s:11:"ticket_type";i:20028;s:10:"wrote_date";s:10:"2025-09-15";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:2836;s:8:"abstract";s:0:"";s:11:"description";N;s:9:"verify_at";s:29:"2025-09-15 17:07:48.265611+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-09-15 17:07:48";s:10:"updated_at";s:19:"2025-09-15 17:07:48";s:10:"contact_id";N;s:7:"user_id";N;s:6:"amount";s:8:"836310.6";s:9:"object_id";i:10;}', '', 1001, '114.246.237.213') |
17:07:48.281 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:07:48.282 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.282 | 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; |
17:07:48.285 | 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 |
17:07:48.289 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.289 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:07:48.289 | 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', 10, 20028, 1001, '2025-09-15 17:07:48', '{"id":10,"serial_no":"XSYJFTD-20250915-00003","wrote_date":"2025-09-15","status":2,"abstract":"","description":null,"user_id":1001,"client_id":2836,"project_id":3514,"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","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-09-15 17:07:48","updated_at":"1970-01-01 08:00:00"}', '{"id":10,"serial_no":"XSYJFTD-20250915-00003","wrote_date":"2025-09-15","status":2,"abstract":"","description":null,"user_id":1001,"client_id":2836,"project_id":3514,"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","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-09-15 17:07:48","updated_at":"1970-01-01 08:00:00"}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u4e1a\u7ee9\u5206\u644a\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
17:07:48.297 | 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', 565481, 'a:13:{s:2:"id";i:565481;s:9:"object_id";i:10;s:11:"object_type";i:20028;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:462:"{"id":10,"serial_no":"XSYJFTD-20250915-00003","wrote_date":"2025-09-15","status":2,"abstract":"","description":null,"user_id":1001,"client_id":2836,"project_id":3514,"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","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-09-15 17:07:48","updated_at":"1970-01-01 08:00:00"}";s:9:"new_value";s:462:"{"id":10,"serial_no":"XSYJFTD-20250915-00003","wrote_date":"2025-09-15","status":2,"abstract":"","description":null,"user_id":1001,"client_id":2836,"project_id":3514,"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","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-09-15 17:07:48","updated_at":"1970-01-01 08:00:00"}";s:11:"description";s:123:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u4e1a\u7ee9\u5206\u644a\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-09-15 17:07:48";s:9:"is_delete";N;}', '', 1001, '114.246.237.213') |
17:07:48.298 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.298 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.299 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-09-15') |
17:07:48.303 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.303 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:07:48.303 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=2058, "last_visit_at"='now()' WHERE "id"=56557 |
17:07:48.304 | 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-profit-distribute/save-new', '{"ErpProfitDistributes":{"id":"","client_id":"2836","client_name":"\u5317\u4eac\u4e2d\u8bda\u7f51\u5b89\u79d1\u6280\u6709\u9650\u8d23\u4efb\u516c\u53f8\uff08\u8fc7\u5355\uff09","user_id":"1001","user_name":"\u5218\u4eba\u8bda","project_id":"3514","wrote_date":"2025-09-15","serial_no":"XSYJFTD-20250915-00003","abstract":"","files":"","erpProfitDistributeVerifyRels":"","erpProfitDistributePcts":[{"pct":"44","user_id":"1001","description":"54454"},{"pct":"56","user_id":"5332","description":"v\u4eba\u7684"}]},"web_access_token":"S7OJrULURAq348jTGnVvRiAMpe10N7Zn"}', '{"code":2000,"result":{"id":10},"status":1,"msg":[{"name":"success","success":"\u65b0\u9500\u552e\u4e1a\u7ee9\u5206\u644a\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-09-15 17:07:48') RETURNING "id" |
17:07:48.305 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:07:48.305 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |