| 13:47:13.847 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 13:47:13.847 | trace | yii\base\Module::getModule | Loading module: debug |
| 13:47:13.848 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 13:47:13.848 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 13:47:13.849 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 13:47:13.849 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.849 | info | time tracing start | 1782193633849879040 |
| 13:47:13.850 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 13:47:13.850 | trace | yii\web\Application::handleRequest | Route requested: 'vue/purchase-contract/save-new-return' |
| 13:47:13.850 | trace | yii\base\Module::getModule | Loading module: vue |
| 13:47:13.851 | info | yii\web\Session::open | Session started |
| 13:47:13.852 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 13:47:13.852 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 13:47:13.854 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.855 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.855 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 13:47:13.856 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.857 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.857 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 13:47:13.858 | trace | yii\base\Controller::runAction | Route to run: vue/purchase-contract/save-new-return |
| 13:47:13.859 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.861 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 13:47:13.861 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\PurchaseContractController::actionSaveNewReturn() |
| 13:47:13.861 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='4501' |
| 13:47:13.862 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.862 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.862 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.863 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'supplier_name' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'from_date' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPurchaseReturnVerifyRels' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'original_amount' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'returns_amount' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'returns_number' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contractScans' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPurchaseReturnProducts' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseContractPaymentCollectionRemindDates' in 'app\models\PurchaseContracts'. |
| 13:47:13.865 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseContractPaymentCollectionRemindReceivers' in 'app\models\PurchaseContracts'. |
| 13:47:13.866 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "serial_no"='退货不影响采购、销售合同金额' LIMIT 2 |
| 13:47:13.867 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431') |
| 13:47:13.871 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1011') |
| 13:47:13.872 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 13:47:13.873 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.873 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.873 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=511 |
| 13:47:13.874 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.874 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.874 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=434 |
| 13:47:13.875 | info | yii\db\Command::execute | |
| 13:47:13.875 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "supplier_id"=431, "contract_type"=1, "handler"=1011, "updated_at"='now()', "payment_collection_remind_ahead"='0 day' WHERE "id"=4501 |
| 13:47:13.878 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.878 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.878 | 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\PurchaseContracts', 4501, 'a:1:{s:31:"payment_collection_remind_ahead";s:5:"0 day";}', '', 1001, '221.216.117.25') |
| 13:47:13.881 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431' |
| 13:47:13.882 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.882 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.882 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=108) AND ("object_id"=4501) |
| 13:47:13.886 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=108) AND ("object_id"=4501) |
| 13:47:13.890 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_receivers" WHERE "contract_id"=4501 |
| 13:47:13.891 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.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_purchase_contract_payment_collection_remind_receivers'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 13:47:13.895 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_purchase_contract_payment_collection_remind_receivers'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 13:47:13.916 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.916 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:47:13.916 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_receivers" ("contract_id", "user_id") VALUES (4501, 1001) RETURNING "id" |
| 13:47:13.922 | 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\PurchaseContractPaymentCollectionRemindReceivers', 1950, 'a:3:{s:2:"id";i:1950;s:11:"contract_id";i:4501;s:7:"user_id";i:1001;}', '', 1001, '221.216.117.25') |
| 13:47:13.924 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE "contract_id"=4501 |
| 13:47:13.925 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE "contract_id"=4501 |
| 13:47:13.926 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.926 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.927 | 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_purchase_returns'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 13:47:13.931 | 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_purchase_returns'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 13:47:13.960 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.961 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'supplier_name' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contract_type' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'signed_at' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPurchaseReturnVerifyRels' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'original_amount' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'returns_amount' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'returns_number' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contractScans' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPurchaseReturnProducts' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseContractPaymentCollectionRemindDates' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseContractPaymentCollectionRemindReceivers' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'payment_collection_remind_ahead' in 'app\models\ErpPurchaseReturns'. |
| 13:47:13.961 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_returns" WHERE ("created_at" >= '2026-06-23 00:00:00') AND ("created_at" <= '2026-06-23 23:59:59') AND ("serial_no" LIKE '%CGTH-20260623-%') AND (LENGTH(serial_no) = 19) ORDER BY "serial_no" DESC |
| 13:47:13.963 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "is_chargeback_verify"=TRUE WHERE "id"=4501 |
| 13:47:13.965 | 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\PurchaseContracts', 4501, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:13.966 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431' |
| 13:47:13.967 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_purchase_returns" ("supplier_id", "handler", "serial_no", "from_date", "description", "purchase_contract_id", "verify_type", "created_by", "wrote_date", "created_at", "status") VALUES (431, 1011, 'CGTH-20260623-00001', NULL, '', 4501, 2, 1001, '2026-06-23', 'now()', 1) RETURNING "id" |
| 13:47:13.974 | 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\ErpPurchaseReturns', 6, 'a:26:{s:2:"id";i:6;s:9:"serial_no";s:19:"CGTH-20260623-00001";s:9:"from_date";s:0:"";s:10:"wrote_date";s:10:"2026-06-23";s:7:"handler";s:4:"1011";s:11:"supplier_id";s:3:"431";s:20:"purchase_contract_id";i:4501;s:12:"erp_store_id";N;s:6:"status";i:1;s:8:"abstract";N;s:11:"description";s:0:"";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";N;s:6:"number";N;s:6:"amount";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:9:"is_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"print_times";N;}', '', 1001, '221.216.117.25') |
| 13:47:13.975 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_purchase_return_verify_rels" WHERE "erp_purchase_return_id"=6 |
| 13:47:13.976 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:13.976 | 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_purchase_return_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 13:47:13.980 | 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_purchase_return_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 13:47:13.996 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:13.996 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:47:13.997 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_purchase_return_verify_rels" ("erp_purchase_return_id", "user_id", "status") VALUES (6, 1001, 0) |
| 13:47:14.006 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:14.006 | 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_purchase_return_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 13:47:14.011 | 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_purchase_return_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 13:47:14.042 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:14.043 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 13:47:14.043 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_purchase_return_products" ("erp_purchase_return_id", "erp_purchase_inbound_product_id", "erp_inventory_start_product_id", "product_id", "amount", "total_amount", "number", "description") VALUES (6, 434, NULL, 2267, '300', '300.00', '1', '') RETURNING "id" |
| 13:47:14.047 | 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\ErpPurchaseReturnProducts', 6, 'a:10:{s:2:"id";i:6;s:24:"erp_inventory_product_id";N;s:22:"erp_purchase_return_id";i:6;s:31:"erp_purchase_inbound_product_id";s:3:"434";s:10:"product_id";s:4:"2267";s:11:"description";s:0:"";s:6:"number";s:1:"1";s:6:"amount";s:3:"300";s:12:"total_amount";s:6:"300.00";s:30:"erp_inventory_start_product_id";s:0:"";}', '', 1001, '221.216.117.25') |
| 13:47:14.049 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_return_verify_rels" WHERE ("status"=0) AND ("erp_purchase_return_id"=6) ORDER BY "id" |
| 13:47:14.050 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_returns" SET "amount"='300', "number"='1', "next_verify_user"=1001 WHERE "id"=6 |
| 13:47:14.051 | 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\ErpPurchaseReturns', 6, 'a:1:{s:6:"amount";d:300;}', '', 1001, '221.216.117.25') |
| 13:47:14.053 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_returns" WHERE "id"=6 |
| 13:47:14.053 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_return_products" WHERE "erp_purchase_return_id"=6 |
| 13:47:14.055 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=434 |
| 13:47:14.056 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=215 |
| 13:47:14.057 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:14.057 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:14.057 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "erp_purchase_inbound_id"=215 |
| 13:47:14.058 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_return_products" WHERE "erp_purchase_inbound_product_id"=434 |
| 13:47:14.058 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_returns" WHERE "id"=6 |
| 13:47:14.059 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" WHERE "erp_purchase_inbound_product_id"=434 |
| 13:47:14.060 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "cancel_number"='1', "cancel_amount"='300', "cancel_total_amount"='300' WHERE "id"=434 |
| 13:47:14.062 | 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\ErpPurchaseInboundProducts', 434, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.064 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_return_products" WHERE "erp_purchase_inbound_product_id"=435 |
| 13:47:14.064 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "cancel_number"='0', "cancel_amount"='0', "cancel_total_amount"='0' WHERE "id"=435 |
| 13:47:14.066 | 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\ErpPurchaseInboundProducts', 435, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.068 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "erp_purchase_inbound_id"=215 |
| 13:47:14.069 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "erp_purchase_inbound_product_id"=434 |
| 13:47:14.070 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "number"='0', "inventory"='0', "total_amount"='0' WHERE "id"=511 |
| 13:47:14.072 | 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', 511, 'a:1:{s:12:"total_amount";s:6:"300.00";}', '', 1001, '221.216.117.25') |
| 13:47:14.075 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" WHERE "erp_purchase_inbound_product_id"=434 |
| 13:47:14.075 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE ("erp_inventory_product_id"=511) |
| 13:47:14.076 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "erp_inventory_product_id"=511 |
| 13:47:14.076 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=511 |
| 13:47:14.077 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='0' WHERE "id"=511 |
| 13:47:14.079 | 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', 511, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.081 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type' |
| 13:47:14.081 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:14.082 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:14.082 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point' |
| 13:47:14.082 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='0' WHERE "id"=511 |
| 13:47:14.085 | 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', 511, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.086 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "outbound"='0', "inventory"='0' WHERE "id"=434 |
| 13:47:14.088 | 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\ErpPurchaseInboundProducts', 434, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.090 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "erp_purchase_inbound_product_id"=435 |
| 13:47:14.090 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "number"='1', "inventory"='1', "total_amount"='600' WHERE "id"=512 |
| 13:47:14.092 | 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', 512, 'a:1:{s:12:"total_amount";s:6:"600.00";}', '', 1001, '221.216.117.25') |
| 13:47:14.094 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" WHERE "erp_purchase_inbound_product_id"=435 |
| 13:47:14.094 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE ("erp_inventory_product_id"=512) |
| 13:47:14.095 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "erp_inventory_product_id"=512 |
| 13:47:14.095 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=512 |
| 13:47:14.096 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='0' WHERE "id"=512 |
| 13:47:14.098 | 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', 512, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.100 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type' |
| 13:47:14.100 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point' |
| 13:47:14.101 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='600' WHERE "id"=512 |
| 13:47:14.102 | 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', 512, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.104 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "outbound"='0', "inventory"='1' WHERE "id"=435 |
| 13:47:14.106 | 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\ErpPurchaseInboundProducts', 435, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.108 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:14.108 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:14.108 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id" IN (2267, 2171) |
| 13:47:14.110 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=215 |
| 13:47:14.111 | 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\ErpPurchaseInbounds', 215, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.112 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='0', "number"='0', "actual_total_amount"='0' WHERE ("erp_purchase_inbound_id"=215) AND ("erp_purchase_inbound_product_id" NOT IN (434, 435)) |
| 13:47:14.113 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_orders" WHERE "id"=2223 |
| 13:47:14.114 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:14.114 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:14.114 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_products" WHERE "erp_purchase_order_id"=2223 |
| 13:47:14.115 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:14.115 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:14.115 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "erp_purchase_order_product_id" IN (447, 448) |
| 13:47:14.116 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=215 |
| 13:47:14.116 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_return_products" WHERE "erp_purchase_inbound_product_id" IN (434, 435) |
| 13:47:14.117 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_returns" WHERE "id"=6 |
| 13:47:14.117 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_order_products" SET "into_inventory"='1' WHERE "id"=447 |
| 13:47:14.119 | 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\ErpPurchaseOrderProducts', 447, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.121 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_order_products" SET "into_inventory"='1' WHERE "id"=448 |
| 13:47:14.123 | 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\ErpPurchaseOrderProducts', 448, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.124 | 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\ErpPurchaseOrders', 2223, 'a:0:{}', '', 1001, '221.216.117.25') |
| 13:47:14.126 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 13:47:14.127 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_return_verify_rels" WHERE ("status"=0) AND ("erp_purchase_return_id"=6) ORDER BY "id" |
| 13:47:14.127 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_return_verify_rels" WHERE ("status"=0) AND ("erp_purchase_return_id"=6) ORDER BY "id" |
| 13:47:14.128 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 13:47:14.128 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:14.128 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:14.129 | 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', 6, 20003, 1001, '2026-06-23 13:47:13', '{"id":6,"serial_no":"CGTH-20260623-00001","from_date":null,"wrote_date":"2026-06-23","handler":1011,"supplier_id":431,"purchase_contract_id":4501,"erp_store_id":null,"status":1,"abstract":null,"description":"","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":"300","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2026-06-23 13:47:13","updated_at":"2026-06-23 13:47:13","print_times":null}', '{"id":6,"serial_no":"CGTH-20260623-00001","from_date":null,"wrote_date":"2026-06-23","handler":1011,"supplier_id":431,"purchase_contract_id":4501,"erp_store_id":null,"status":1,"abstract":null,"description":"","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":"300","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2026-06-23 13:47:13","updated_at":"2026-06-23 13:47:13","print_times":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u91c7\u8d2d\u9000\u8d27\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
| 13:47:14.131 | 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', 642456, 'a:13:{s:2:"id";i:642456;s:9:"object_id";i:6;s:11:"object_type";i:20003;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:537:"{"id":6,"serial_no":"CGTH-20260623-00001","from_date":null,"wrote_date":"2026-06-23","handler":1011,"supplier_id":431,"purchase_contract_id":4501,"erp_store_id":null,"status":1,"abstract":null,"description":"","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":"300","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2026-06-23 13:47:13","updated_at":"2026-06-23 13:47:13","print_times":null}";s:9:"new_value";s:537:"{"id":6,"serial_no":"CGTH-20260623-00001","from_date":null,"wrote_date":"2026-06-23","handler":1011,"supplier_id":431,"purchase_contract_id":4501,"erp_store_id":null,"status":1,"abstract":null,"description":"","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":"300","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2026-06-23 13:47:13","updated_at":"2026-06-23 13:47:13","print_times":null}";s:11:"description";s:111:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u91c7\u8d2d\u9000\u8d27\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-23 13:47:13";s:9:"is_delete";N;}', '', 1001, '221.216.117.25') |
| 13:47:14.133 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:14.133 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:47:14.133 | 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/purchase-contract/save-new-return', '{"ErpPurchaseReturns":{"id":"4501","supplier_id":"431","supplier_name":"\u5317\u4eac\u60e0\u8054\u8baf\u901a\u4fe1\u606f\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8","handler":"1011","contract_type":"1","serial_no":"\u9000\u8d27\u4e0d\u5f71\u54cd\u91c7\u8d2d\u3001\u9500\u552e\u5408\u540c\u91d1\u989d","signed_at":"2026-06-23","from_date":"","description":"","erpPurchaseReturnVerifyRels":["1001"],"original_amount":"900","returns_amount":"900","returns_number":"2","contractScans":"","erpPurchaseReturnProducts":{"new":[{"product_id":"2267","number":"1","amount":"300","total_amount":"300.00","description":"","erp_purchase_order_id":"2223","erp_purchase_inbound_product_id":"434","erp_inventory_start_product_id":"","erp_inventory_product_id":"511","sns":""}]},"purchaseContractPaymentCollectionRemindDates":"","purchaseContractPaymentCollectionRemindReceivers":"","payment_collection_remind_ahead":""},"web_access_token":"s1xKbg9e3rlah-dvFsDEWCxiJPk9VpSm"}', '{"code":2000,"result":{"id":6},"status":1,"msg":[{"name":"success","success":"\u65b0\u91c7\u8d2d\u9000\u8d27\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"221.216.117.25","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-06-23 13:47:14', 283500032) RETURNING "id" |
| 13:47:14.135 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:47:14.136 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |