| 21:43:03.853 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 21:43:03.853 | trace | yii\base\Module::getModule | Loading module: debug |
| 21:43:03.853 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 21:43:03.854 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 21:43:03.854 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 21:43:03.854 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.855 | info | time tracing start | 1783431783855302144 |
| 21:43:03.855 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 21:43:03.855 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-inventory-transfer/save-new' |
| 21:43:03.855 | trace | yii\base\Module::getModule | Loading module: vue |
| 21:43:03.857 | info | yii\web\Session::open | Session started |
| 21:43:03.858 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1000 |
| 21:43:03.858 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 21:43:03.860 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.861 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:03.861 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 21:43:03.862 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.863 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:03.863 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 21:43:03.864 | trace | yii\base\Controller::runAction | Route to run: vue/erp-inventory-transfer/save-new |
| 21:43:03.864 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.867 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 21:43:03.867 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpInventoryTransferController::actionSaveNew() |
| 21:43:03.871 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.871 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:03.871 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpInventoryTransfers'. |
| 21:43:03.871 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'attachmentFiles' in 'app\models\ErpInventoryTransfers'. |
| 21:43:03.871 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpInventoryTransferVerifyRels' in 'app\models\ErpInventoryTransfers'. |
| 21:43:03.871 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpInventoryTransferCarbonCopyRels' in 'app\models\ErpInventoryTransfers'. |
| 21:43:03.871 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpInventoryTransferProducts' in 'app\models\ErpInventoryTransfers'. |
| 21:43:03.871 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.872 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.874 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfers" WHERE ("serial_no" ILIKE '%DBD-20260707-%') AND (LENGTH(serial_no) = 18) ORDER BY "serial_no" DESC |
| 21:43:03.876 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfers" WHERE "serial_no"='DBD-20260707-00003') |
| 21:43:03.877 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001') |
| 21:43:03.877 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1') |
| 21:43:03.878 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='2') |
| 21:43:03.879 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 21:43:03.879 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.880 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:03.880 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=506 |
| 21:43:03.882 | trace | yii\db\Transaction::begin | Begin transaction |
| 21:43:03.882 | 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-07', 1001, '摘要摘要摘要', '备注备注备注', 1, 2, 1001, 'now()', 'DBD-20260707-00003', FALSE, FALSE) RETURNING "id" |
| 21:43:03.891 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.891 | 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; |
| 21:43:03.898 | 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 |
| 21:43:03.909 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:03.909 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:03.910 | 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', 3, 'a:29:{s:2:"id";i:3;s:9:"serial_no";s:18:"DBD-20260707-00003";s:13:"transfer_type";s:1:"1";s:10:"wrote_date";s:10:"2026-07-07";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:18:"摘要摘要摘要";s:11:"description";s:18:"备注备注备注";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, '117.133.84.85') |
| 21:43:03.922 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20059) AND ("object_id"=3) |
| 21:43:03.927 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20060) AND ("object_id"=3) |
| 21:43:03.930 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" WHERE "erp_inventory_transfer_id"=3 |
| 21:43:03.931 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.931 | 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; |
| 21:43:03.935 | 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 |
| 21:43:03.947 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:03.948 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:03.948 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" ("erp_inventory_transfer_id", "user_id", "status") VALUES (3, 1001, 0), (3, 1013, 0) |
| 21:43:03.951 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE "erp_inventory_transfer_id"=3 |
| 21:43:03.952 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE "erp_inventory_transfer_id"=3 |
| 21:43:03.953 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_erp_inventory_transfer_spent_products" WHERE "erp_inventory_transfer_id"=3 |
| 21:43:03.953 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_transfer_spent_products" WHERE "erp_inventory_transfer_id"=3 |
| 21:43:03.954 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='506' |
| 21:43:03.954 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.955 | 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; |
| 21:43:03.958 | 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 |
| 21:43:03.972 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:03.973 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:03.973 | 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 (3, 506, 2177, 2, 1, '1', '888', '888', '') RETURNING "id" |
| 21:43:03.977 | 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', 3, 'a:10:{s:2:"id";i:3;s:25:"erp_inventory_transfer_id";i:3;s:24:"erp_inventory_product_id";s:3:"506";s:10:"product_id";s:4:"2177";s:12:"out_store_id";s:1:"2";s:12:"erp_store_id";s:1:"1";s:11:"description";s:0:"";s:6:"number";s:1:"1";s:6:"amount";s:3:"888";s:12:"total_amount";d:888;}', '', 1001, '117.133.84.85') |
| 21:43:03.977 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:03.977 | 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; |
| 21:43:03.981 | 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 |
| 21:43:03.995 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:03.995 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:04.036 | 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 (3, 3, 2177, 2, 1, '1', '888', '888', '888', '888', '0', '') RETURNING "id" |
| 21:43:04.040 | 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', 3, 'a:21:{s:2:"id";i:3;s:25:"erp_inventory_transfer_id";i:3;s:39:"erp_inventory_transfer_spent_product_id";i:3;s:10:"product_id";s:4:"2177";s:12:"out_store_id";s:1:"2";s:12:"erp_store_id";s:1:"1";s:11:"description";s:0:"";s:6:"number";s:1:"1";s:10:"out_amount";s:3:"888";s:16:"out_total_amount";d:888;s:6:"amount";d:888;s:12:"total_amount";d:888;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, '117.133.84.85') |
| 21:43:04.041 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_transfers" SET "amount"='888', "number"='1', "out_amount"='888', "out_number"='1', "diff_amount"='0' WHERE "id"=3 |
| 21:43:04.042 | 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', 3, 'a:3:{s:6:"amount";d:888;s:10:"out_amount";d:888;s:11:"diff_amount";i:0;}', '', 1001, '117.133.84.85') |
| 21:43:04.042 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" WHERE ("status"=0) AND ("erp_inventory_transfer_id"=3) ORDER BY "id" |
| 21:43:04.043 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_transfers" SET "next_verify_user"=1001 WHERE "id"=3 |
| 21:43:04.044 | 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', 3, 'a:0:{}', '', 1001, '117.133.84.85') |
| 21:43:04.044 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfers" WHERE "id"=3 |
| 21:43:04.048 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE 0=1 |
| 21:43:04.050 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_transfer_spent_id"=3 |
| 21:43:04.051 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_transfer_spent_id"=3 |
| 21:43:04.051 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_spent_products" WHERE "erp_inventory_transfer_id"=3 |
| 21:43:04.052 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=506 |
| 21:43:04.052 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:04.052 | 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; |
| 21:43:04.057 | 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 |
| 21:43:04.075 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:04.076 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:04.076 | 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 (3, '2026-07-07', 3, 506, '1', '888', '888', '1', '888', '888') |
| 21:43:04.092 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:04.092 | 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_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 21:43:04.096 | 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_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 21:43:04.110 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:04.110 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:04.111 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id"=2177 |
| 21:43:04.115 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=506 |
| 21:43:04.116 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.117 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.117 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.118 | info | yii\db\Command::query | SELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.118 | info | yii\db\Command::query | SELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.119 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.119 | info | yii\db\Command::query | SELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.120 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='2', "inventory"='0', "lost_outbound"='0', "build_spent_outbound"='0', "sales_gift_outbound"='0', "disassemble_spent_outbound"='0', "transfer_spent_outbound"='1' WHERE "id"=506 |
| 21:43:04.121 | 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', 506, 'a:0:{}', '', 1001, '117.133.84.85') |
| 21:43:04.123 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1 |
| 21:43:04.125 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 21:43:04.129 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 21:43:04.131 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1 |
| 21:43:04.135 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 21:43:04.137 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE "id"=4 |
| 21:43:04.140 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:04.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_erp_inventory_overflow_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 21:43:04.145 | 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_overflow_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 21:43:04.157 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:04.158 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:04.158 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_overflow_products" SET "inventory"='0', "lost_outbound"='0', "build_spent_outbound"='0', "disassemble_spent_outbound"='0', "sales_gift_outbound"='0', "transfer_spent_outbound"='1' WHERE "id"=4 |
| 21:43:04.159 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryOverflowProducts', 4, 'a:0:{}', '', 1001, '117.133.84.85') |
| 21:43:04.159 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:04.159 | 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_overflows'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 21:43:04.163 | 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_overflows'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 21:43:04.176 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:04.177 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:04.177 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_overflows" SET "is_used"=TRUE WHERE "id"=4 |
| 21:43:04.178 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE 0=1 |
| 21:43:04.182 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type' |
| 21:43:04.184 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:04.184 | 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; |
| 21:43:04.188 | 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 |
| 21:43:04.197 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:04.198 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:04.198 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point' |
| 21:43:04.198 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='0' WHERE "id"=506 |
| 21:43:04.199 | 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', 506, 'a:0:{}', '', 1001, '117.133.84.85') |
| 21:43:04.200 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='506' |
| 21:43:04.201 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.201 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.201 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.202 | info | yii\db\Command::query | SELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.202 | info | yii\db\Command::query | SELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.203 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.203 | info | yii\db\Command::query | SELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=506 |
| 21:43:04.204 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='0', "lost_outbound"='0', "build_spent_outbound"='0', "sales_gift_outbound"='0', "disassemble_spent_outbound"='0' WHERE "id"=506 |
| 21:43:04.204 | 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', 506, 'a:0:{}', '', 1001, '117.133.84.85') |
| 21:43:04.205 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1 |
| 21:43:04.205 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 21:43:04.206 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 21:43:04.206 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1 |
| 21:43:04.206 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 21:43:04.207 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE "id"=4 |
| 21:43:04.207 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_overflow_products" SET "inventory"='0', "lost_outbound"='0', "build_spent_outbound"='0', "disassemble_spent_outbound"='0', "sales_gift_outbound"='0' WHERE "id"=4 |
| 21:43:04.208 | 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\ErpInventoryOverflowProducts', 4, 'a:0:{}', '', 1001, '117.133.84.85') |
| 21:43:04.208 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_overflows" SET "is_used"=TRUE WHERE "id"=4 |
| 21:43:04.209 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE 0=1 |
| 21:43:04.209 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 21:43:04.210 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" WHERE ("status"=0) AND ("erp_inventory_transfer_id"=3) ORDER BY "id" |
| 21:43:04.211 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_verify_rels" WHERE ("status"=0) AND ("erp_inventory_transfer_id"=3) ORDER BY "id" |
| 21:43:04.215 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 21:43:04.216 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:04.216 | 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; |
| 21:43:04.220 | 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 |
| 21:43:04.232 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:04.232 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:43:04.232 | 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', 3, 20032, 1001, '2026-07-07 21:43:03', '{"id":3,"serial_no":"DBD-20260707-00003","transfer_type":1,"wrote_date":"2026-07-07","handler":1001,"erp_store_id":1,"out_store_id":2,"status":1,"abstract":"\u6458\u8981\u6458\u8981\u6458\u8981","description":"\u5907\u6ce8\u5907\u6ce8\u5907\u6ce8","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":"888","out_number":"1","out_amount":"888","diff_amount":"0","created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2026-07-07 21:43:03","updated_at":"2026-07-07 21:43:03","print_times":null}', '{"id":3,"serial_no":"DBD-20260707-00003","transfer_type":1,"wrote_date":"2026-07-07","handler":1001,"erp_store_id":1,"out_store_id":2,"status":1,"abstract":"\u6458\u8981\u6458\u8981\u6458\u8981","description":"\u5907\u6ce8\u5907\u6ce8\u5907\u6ce8","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":"888","out_number":"1","out_amount":"888","diff_amount":"0","created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2026-07-07 21:43:03","updated_at":"2026-07-07 21:43:03","print_times":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u8c03\u62e8\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
| 21:43:04.246 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 643226, 'a:13:{s:2:"id";i:643226;s:9:"object_id";i:3;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:645:"{"id":3,"serial_no":"DBD-20260707-00003","transfer_type":1,"wrote_date":"2026-07-07","handler":1001,"erp_store_id":1,"out_store_id":2,"status":1,"abstract":"\u6458\u8981\u6458\u8981\u6458\u8981","description":"\u5907\u6ce8\u5907\u6ce8\u5907\u6ce8","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":"888","out_number":"1","out_amount":"888","diff_amount":"0","created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2026-07-07 21:43:03","updated_at":"2026-07-07 21:43:03","print_times":null}";s:9:"new_value";s:645:"{"id":3,"serial_no":"DBD-20260707-00003","transfer_type":1,"wrote_date":"2026-07-07","handler":1001,"erp_store_id":1,"out_store_id":2,"status":1,"abstract":"\u6458\u8981\u6458\u8981\u6458\u8981","description":"\u5907\u6ce8\u5907\u6ce8\u5907\u6ce8","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":"888","out_number":"1","out_amount":"888","diff_amount":"0","created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2026-07-07 21:43:03","updated_at":"2026-07-07 21:43:03","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-07 21:43:03";s:9:"is_delete";N;}', '', 1001, '117.133.84.85') |
| 21:43:04.247 | trace | yii\db\Transaction::commit | Commit transaction |
| 21:43:04.252 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:04.252 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:43:04.252 | 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-07","handler":"1001","abstract":"\u6458\u8981\u6458\u8981\u6458\u8981","description":"\u5907\u6ce8\u5907\u6ce8\u5907\u6ce8","status":"1","files":"","attachmentFiles":"","erpInventoryTransferVerifyRels":["1001","1013"],"erpInventoryTransferCarbonCopyRels":"","erpInventoryTransferProducts":{"new":[{"erp_inventory_product_id":"506","product_id":"2177","number":"1","description":""}]}},"web_access_token":"LkxZRaDknT-2TffdQrt_hjkarGDIwIi9"}', '{"code":2000,"result":{"id":3},"status":1,"msg":[{"name":"success","success":"\u65b0\u8c03\u62e8\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"117.133.84.85","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/148.0.0.0 Safari\/537.36"}', FALSE, '2026-07-07 21:43:04', 397214720) RETURNING "id" |
| 21:43:04.255 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:43:04.255 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |