| 14:15:43.111 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 14:15:43.111 | trace | yii\base\Module::getModule | Loading module: debug |
| 14:15:43.112 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 14:15:43.112 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 14:15:43.113 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 14:15:43.113 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.113 | info | time tracing start | 1783577743113827840 |
| 14:15:43.114 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 14:15:43.114 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-inventory-transfer/save-new' |
| 14:15:43.114 | trace | yii\base\Module::getModule | Loading module: vue |
| 14:15:43.115 | info | yii\web\Session::open | Session started |
| 14:15:43.116 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:15:43.116 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 14:15:43.118 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.119 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.119 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:15:43.120 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.121 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.121 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 14:15:43.122 | trace | yii\base\Controller::runAction | Route to run: vue/erp-inventory-transfer/save-new |
| 14:15:43.122 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.124 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 14:15:43.124 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpInventoryTransferController::actionSaveNew() |
| 14:15:43.126 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.126 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.126 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpInventoryTransfers'. |
| 14:15:43.126 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'attachmentFiles' in 'app\models\ErpInventoryTransfers'. |
| 14:15:43.126 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpInventoryTransferVerifyRels' in 'app\models\ErpInventoryTransfers'. |
| 14:15:43.126 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpInventoryTransferCarbonCopyRels' in 'app\models\ErpInventoryTransfers'. |
| 14:15:43.126 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpInventoryTransferProducts' in 'app\models\ErpInventoryTransfers'. |
| 14:15:43.126 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.127 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.128 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfers" WHERE ("serial_no" ILIKE '%DBD-20260709-%') AND (LENGTH(serial_no) = 18) ORDER BY "serial_no" DESC |
| 14:15:43.129 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfers" WHERE "serial_no"='DBD-20260709-00001') |
| 14:15:43.130 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001') |
| 14:15:43.131 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1') |
| 14:15:43.131 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='2') |
| 14:15:43.131 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 14:15:43.132 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.132 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.133 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=536 |
| 14:15:43.133 | trace | yii\db\Transaction::begin | Begin transaction |
| 14:15:43.134 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_inventory_transfers" ("out_store_id", "erp_store_id", "transfer_type", "wrote_date", "handler", "abstract", "description", "status", "verify_type", "created_by", "created_at", "serial_no", "is_resubmitted", "is_used") VALUES (2, 1, 1, '2026-07-09', 1001, '测试', 'c额s', 1, 2, 1001, 'now()', 'DBD-20260709-00001', FALSE, FALSE) RETURNING "id" |
| 14:15:43.140 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.140 | 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; |
| 14:15:43.144 | 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 |
| 14:15:43.154 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.154 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:15:43.154 | 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\ErpInventoryTransfers', 4, 'a:29:{s:2:"id";i:4;s:9:"serial_no";s:18:"DBD-20260709-00001";s:13:"transfer_type";s:1:"1";s:10:"wrote_date";s:10:"2026-07-09";s:7:"handler";s:4:"1001";s:12:"erp_store_id";s:1:"1";s:12:"out_store_id";s:1:"2";s:6:"status";s:1:"1";s:8:"abstract";s:6:"测试";s:11:"description";s:5:"c额s";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:"number";N;s:6:"amount";N;s:10:"out_number";N;s:10:"out_amount";N;s:11:"diff_amount";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:7:"is_used";b:0;s:9:"is_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"print_times";N;}', '', 1001, '114.244.130.61') |
| 14:15:43.165 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20059) AND ("object_id"=4) |
| 14:15:43.168 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20060) AND ("object_id"=4) |
| 14:15:43.173 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" WHERE "erp_inventory_transfer_id"=4 |
| 14:15:43.174 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.174 | 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_inventory_transfer_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:15:43.177 | 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_inventory_transfer_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:15:43.191 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.191 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:15:43.191 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" ("erp_inventory_transfer_id", "user_id", "status") VALUES (4, 1001, 0) |
| 14:15:43.195 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE "erp_inventory_transfer_id"=4 |
| 14:15:43.196 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE "erp_inventory_transfer_id"=4 |
| 14:15:43.196 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_erp_inventory_transfer_spent_products" WHERE "erp_inventory_transfer_id"=4 |
| 14:15:43.197 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_transfer_spent_products" WHERE "erp_inventory_transfer_id"=4 |
| 14:15:43.198 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='536' |
| 14:15:43.198 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.199 | 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_inventory_transfer_spent_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:15:43.202 | 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_inventory_transfer_spent_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:15:43.221 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.221 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:15:43.222 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_inventory_transfer_spent_products" ("erp_inventory_transfer_id", "erp_inventory_product_id", "product_id", "out_store_id", "erp_store_id", "number", "amount", "total_amount", "description") VALUES (4, 536, 2265, 2, 1, '1', '8900', '8900', '测试') RETURNING "id" |
| 14:15:43.225 | 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\ErpInventoryTransferSpentProducts', 4, 'a:10:{s:2:"id";i:4;s:25:"erp_inventory_transfer_id";i:4;s:24:"erp_inventory_product_id";s:3:"536";s:10:"product_id";s:4:"2265";s:12:"out_store_id";s:1:"2";s:12:"erp_store_id";s:1:"1";s:11:"description";s:6:"测试";s:6:"number";s:1:"1";s:6:"amount";s:4:"8900";s:12:"total_amount";d:8900;}', '', 1001, '114.244.130.61') |
| 14:15:43.225 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.226 | 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_inventory_transfer_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:15:43.230 | 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_inventory_transfer_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:15:43.246 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.246 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:15:43.289 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_inventory_transfer_products" ("erp_inventory_transfer_id", "erp_inventory_transfer_spent_product_id", "product_id", "out_store_id", "erp_store_id", "number", "out_amount", "out_total_amount", "amount", "total_amount", "diff_amount", "description") VALUES (4, 4, 2265, 2, 1, '1', '8900', '8900', '8900', '8900', '0', '测试') RETURNING "id" |
| 14:15:43.307 | 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\ErpInventoryTransferProducts', 4, 'a:21:{s:2:"id";i:4;s:25:"erp_inventory_transfer_id";i:4;s:39:"erp_inventory_transfer_spent_product_id";i:4;s:10:"product_id";s:4:"2265";s:12:"out_store_id";s:1:"2";s:12:"erp_store_id";s:1:"1";s:11:"description";s:6:"测试";s:6:"number";s:1:"1";s:10:"out_amount";s:4:"8900";s:16:"out_total_amount";d:8900;s:6:"amount";d:8900;s:12:"total_amount";d:8900;s:11:"diff_amount";i:0;s:9:"inventory";N;s:8:"outbound";N;s:13:"lost_outbound";N;s:20:"build_spent_outbound";N;s:26:"disassemble_spent_outbound";N;s:23:"transfer_spent_outbound";N;s:14:"sales_outbound";N;s:19:"sales_gift_outbound";N;}', '', 1001, '114.244.130.61') |
| 14:15:43.316 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_transfers" SET "amount"='8900', "number"='1', "out_amount"='8900', "out_number"='1', "diff_amount"='0' WHERE "id"=4 |
| 14:15:43.325 | 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\ErpInventoryTransfers', 4, 'a:3:{s:6:"amount";d:8900;s:10:"out_amount";d:8900;s:11:"diff_amount";i:0;}', '', 1001, '114.244.130.61') |
| 14:15:43.336 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" WHERE ("status"=0) AND ("erp_inventory_transfer_id"=4) ORDER BY "id" |
| 14:15:43.344 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_transfers" SET "next_verify_user"=1001 WHERE "id"=4 |
| 14:15:43.353 | 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\ErpInventoryTransfers', 4, 'a:0:{}', '', 1001, '114.244.130.61') |
| 14:15:43.362 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfers" WHERE "id"=4 |
| 14:15:43.371 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE 0=1 |
| 14:15:43.379 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_transfer_spent_id"=4 |
| 14:15:43.399 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_transfer_spent_id"=4 |
| 14:15:43.401 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_spent_products" WHERE "erp_inventory_transfer_id"=4 |
| 14:15:43.402 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=536 |
| 14:15:43.403 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.410 | 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_inventory_product_spents'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:15:43.425 | 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_inventory_product_spents'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:15:43.459 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.460 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:15:43.460 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_inventory_transfer_spent_id", "wrote_date", "erp_inventory_transfer_spent_product_id", "erp_inventory_product_id", "outbound", "amount", "total_amount", "transfer_spent_outbound", "actual_amount", "actual_total_amount") VALUES (4, '2026-07-09', 4, 536, '1', '8900', '8900', '1', '8900', '8900') |
| 14:15:43.487 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.488 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.488 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id"=2265 |
| 14:15:43.490 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=536 |
| 14:15:43.490 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.491 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.491 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.492 | info | yii\db\Command::query | SELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.492 | info | yii\db\Command::query | SELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.493 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.493 | info | yii\db\Command::query | SELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.494 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='1', "inventory"='0', "lost_outbound"='0', "build_spent_outbound"='0', "sales_outbound"='0', "sales_gift_outbound"='0', "disassemble_spent_outbound"='0', "transfer_spent_outbound"='1' WHERE "id"=536 |
| 14:15:43.495 | 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\ErpInventoryProducts', 536, 'a:0:{}', '', 1001, '114.244.130.61') |
| 14:15:43.495 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1 |
| 14:15:43.496 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 14:15:43.498 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 14:15:43.498 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1 |
| 14:15:43.499 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 14:15:43.501 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE 0=1 |
| 14:15:43.503 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE "id"=2 |
| 14:15:43.503 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_transfer_products" SET "inventory"='0', "lost_outbound"='0', "build_spent_outbound"='0', "disassemble_spent_outbound"='0', "transfer_spent_outbound"='1', "sales_outbound"='0', "sales_gift_outbound"='0' WHERE "id"=2 |
| 14:15:43.504 | 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\ErpInventoryTransferProducts', 2, 'a:0:{}', '', 1001, '114.244.130.61') |
| 14:15:43.505 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_transfers" SET "is_used"=TRUE WHERE "id"=2 |
| 14:15:43.505 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type' |
| 14:15:43.507 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.507 | 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_settings'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:15:43.510 | 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_settings'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:15:43.521 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.521 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:15:43.521 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point' |
| 14:15:43.522 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='0' WHERE "id"=536 |
| 14:15:43.523 | 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\ErpInventoryProducts', 536, 'a:0:{}', '', 1001, '114.244.130.61') |
| 14:15:43.524 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='536' |
| 14:15:43.524 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.525 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.525 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.525 | info | yii\db\Command::query | SELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.526 | info | yii\db\Command::query | SELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.526 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.527 | info | yii\db\Command::query | SELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=536 |
| 14:15:43.527 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='0', "lost_outbound"='0', "build_spent_outbound"='0', "sales_outbound"='0', "sales_gift_outbound"='0', "disassemble_spent_outbound"='0' WHERE "id"=536 |
| 14:15:43.528 | 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\ErpInventoryProducts', 536, 'a:0:{}', '', 1001, '114.244.130.61') |
| 14:15:43.528 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1 |
| 14:15:43.529 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 14:15:43.529 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 14:15:43.530 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1 |
| 14:15:43.530 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 14:15:43.530 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE 0=1 |
| 14:15:43.531 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE "id"=2 |
| 14:15:43.531 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_transfer_products" SET "inventory"='0', "lost_outbound"='0', "build_spent_outbound"='0', "disassemble_spent_outbound"='0', "sales_outbound"='0', "sales_gift_outbound"='0' WHERE "id"=2 |
| 14:15:43.532 | 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\ErpInventoryTransferProducts', 2, 'a:0:{}', '', 1001, '114.244.130.61') |
| 14:15:43.532 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_transfers" SET "is_used"=TRUE WHERE "id"=2 |
| 14:15:43.533 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 14:15:43.534 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" WHERE ("status"=0) AND ("erp_inventory_transfer_id"=4) ORDER BY "id" |
| 14:15:43.534 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" WHERE ("status"=0) AND ("erp_inventory_transfer_id"=4) ORDER BY "id" |
| 14:15:43.535 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 14:15:43.535 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.536 | 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:15:43.540 | 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:15:43.551 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.551 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:15:43.552 | 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', 4, 20032, 1001, '2026-07-09 14:15:43', '{"id":4,"serial_no":"DBD-20260709-00001","transfer_type":1,"wrote_date":"2026-07-09","handler":1001,"erp_store_id":1,"out_store_id":2,"status":1,"abstract":"\u6d4b\u8bd5","description":"c\u989ds","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"8900","out_number":"1","out_amount":"8900","diff_amount":"0","created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2026-07-09 14:15:43","updated_at":"2026-07-09 14:15:43","print_times":null}', '{"id":4,"serial_no":"DBD-20260709-00001","transfer_type":1,"wrote_date":"2026-07-09","handler":1001,"erp_store_id":1,"out_store_id":2,"status":1,"abstract":"\u6d4b\u8bd5","description":"c\u989ds","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"8900","out_number":"1","out_amount":"8900","diff_amount":"0","created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2026-07-09 14:15:43","updated_at":"2026-07-09 14:15:43","print_times":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u8c03\u62e8\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
| 14:15:43.559 | 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', 643305, 'a:13:{s:2:"id";i:643305;s:9:"object_id";i:4;s:11:"object_type";i:20032;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:595:"{"id":4,"serial_no":"DBD-20260709-00001","transfer_type":1,"wrote_date":"2026-07-09","handler":1001,"erp_store_id":1,"out_store_id":2,"status":1,"abstract":"\u6d4b\u8bd5","description":"c\u989ds","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"8900","out_number":"1","out_amount":"8900","diff_amount":"0","created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2026-07-09 14:15:43","updated_at":"2026-07-09 14:15:43","print_times":null}";s:9:"new_value";s:595:"{"id":4,"serial_no":"DBD-20260709-00001","transfer_type":1,"wrote_date":"2026-07-09","handler":1001,"erp_store_id":1,"out_store_id":2,"status":1,"abstract":"\u6d4b\u8bd5","description":"c\u989ds","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"8900","out_number":"1","out_amount":"8900","diff_amount":"0","created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2026-07-09 14:15:43","updated_at":"2026-07-09 14:15:43","print_times":null}";s:11:"description";s:99:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u8c03\u62e8\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-07-09 14:15:43";s:9:"is_delete";N;}', '', 1001, '114.244.130.61') |
| 14:15:43.560 | trace | yii\db\Transaction::commit | Commit transaction |
| 14:15:43.561 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.562 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:15:43.562 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-inventory-transfer/save-new', '{"ErpInventoryTransfers":{"out_store_id":"2","erp_store_id":"1","transfer_type":"1","wrote_date":"2026-07-09","handler":"1001","abstract":"\u6d4b\u8bd5","description":"c\u989ds","status":"1","files":"","attachmentFiles":"","erpInventoryTransferVerifyRels":["1001"],"erpInventoryTransferCarbonCopyRels":"","erpInventoryTransferProducts":{"new":[{"erp_inventory_product_id":"536","product_id":"2265","number":"1","description":"\u6d4b\u8bd5"}]}},"web_access_token":"niM9Np1xaU2lIsoGJh5qM6IxT9naEHjn"}', '{"code":2000,"result":{"id":4},"status":1,"msg":[{"name":"success","success":"\u65b0\u8c03\u62e8\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"114.244.130.61","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-07-09 14:15:43', 448513024) RETURNING "id" |
| 14:15:43.564 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:15:43.564 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |