| 14:20:57.946 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 14:20:57.946 | trace | yii\base\Module::getModule | Loading module: debug |
| 14:20:57.946 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 14:20:57.946 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 14:20:57.946 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 14:20:57.947 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:57.947 | trace | yii\base\Module::getModule | Loading module: gii |
| 14:20:57.947 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
| 14:20:57.947 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 14:20:57.947 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-outbound/save-sn' |
| 14:20:57.947 | trace | yii\base\Module::getModule | Loading module: vue |
| 14:20:57.947 | info | yii\web\Session::open | Session started |
| 14:20:57.948 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:20:57.948 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 14:20:57.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:57.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:57.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:57.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:57.953 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 14:20:57.955 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-outbound/save-sn |
| 14:20:57.955 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:57.956 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 14:20:57.956 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOutboundController::actionSaveSn() |
| 14:20:57.956 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"='73' |
| 14:20:57.957 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:57.957 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:57.957 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateErpSalesOutbound |
| 14:20:57.957 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: CommercialAttache |
| 14:20:57.957 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 14:20:57.958 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_id"=73 |
| 14:20:57.958 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:57.958 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:57.958 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" WHERE "erp_sales_outbound_spent_product_id"=216 |
| 14:20:57.959 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" WHERE "erp_sales_outbound_spent_product_id"=216 |
| 14:20:57.959 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:57.959 | 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_sales_outbound_spent_product_sns'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:20:57.964 | 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_sales_outbound_spent_product_sns'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:20:57.973 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:57.973 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:20:57.973 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" ("erp_sales_outbound_spent_product_id", "erp_inventory_product_sn_id", "sn") VALUES (216, 13, '556565656') |
| 14:20:57.980 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "id"='13' |
| 14:20:57.981 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:57.981 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:57.983 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_inventory_lost_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_lost_products" "eprp" ON eprp.id = r.erp_inventory_lost_product_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_losts" "epr" ON eprp.erp_inventory_lost_id = epr.id WHERE ("r"."erp_inventory_product_sn_id"=13) AND ("epr"."status" IN (1, 2)) |
| 14:20:57.990 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_inventory_build_spent_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_build_spent_products" "eprp" ON eprp.id = r.erp_inventory_build_spent_product_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_builds" "epr" ON eprp.erp_inventory_build_id = epr.id WHERE ("r"."erp_inventory_product_sn_id"=13) AND ("epr"."status" IN (1, 2)) |
| 14:20:57.993 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbound_spent_products" "eprp" ON eprp.id = r.erp_sales_outbound_spent_product_id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "epr" ON eprp.erp_sales_outbound_id = epr.id WHERE ("r"."is_cancel"=FALSE) AND ("r"."erp_inventory_product_sn_id"=13) AND ("epr"."status" IN (1, 2)) |
| 14:20:57.996 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_gift_spent_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_gift_spent_products" "eprp" ON eprp.id = r.erp_sales_gift_spent_product_id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "epr" ON eprp.erp_sales_gift_id = epr.id WHERE ("r"."is_cancel"=FALSE) AND ("r"."erp_inventory_product_sn_id"=13) AND ("epr"."status" IN (1, 2)) |
| 14:20:58.000 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_product_sns" SET "is_used"=TRUE, "used_erp_sales_outbound_spent_product_sn_id"=1 WHERE "id"=13 |
| 14:20:58.002 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:58.002 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:58.002 | 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\ErpInventoryProductSns', 13, 'a:2:{s:7:"is_used";b:1;s:43:"used_erp_sales_outbound_spent_product_sn_id";i:1;}', '', 1001, '223.72.15.22') |
| 14:20:58.003 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" WHERE "id"=13 |
| 14:20:58.003 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:58.003 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:58.004 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" SET "is_used"=TRUE WHERE "id"=13 |
| 14:20:58.005 | 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\ErpPurchaseInboundProductSns', 13, 'a:1:{s:7:"is_used";b:1;}', '', 1001, '223.72.15.22') |
| 14:20:58.006 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_product_sns" WHERE 0=1 |
| 14:20:58.008 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_product_sns" WHERE 0=1 |
| 14:20:58.010 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_product_sns" WHERE 0=1 |
| 14:20:58.014 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:58.014 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:58.014 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-12-18') |
| 14:20:58.018 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:58.018 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:20:58.018 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=786, "last_visit_at"='now()' WHERE "id"=59588 |
| 14:20:58.019 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-sales-outbound/save-sn', '{"sns":{"216":[{"erp_inventory_product_sn_id":"13","sn":"556565656"}]},"id":"73"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u9500\u552e\u51fa\u5e93\u5355\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0,"ip":"223.72.15.22","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko\/20100101 Firefox\/146.0"}', FALSE, '2025-12-18 14:20:58') RETURNING "id" |
| 14:20:58.021 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:20:58.021 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |