| 21:44:14.005 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 21:44:14.005 | trace | yii\base\Module::getModule | Loading module: debug |
| 21:44:14.006 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 21:44:14.013 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 21:44:14.014 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 21:44:14.014 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.021 | info | time tracing start | 1783172654021667840 |
| 21:44:14.021 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 21:44:14.021 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-outbound/check-scan-sn' |
| 21:44:14.022 | trace | yii\base\Module::getModule | Loading module: vue |
| 21:44:14.023 | info | yii\web\Session::open | Session started |
| 21:44:14.025 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 21:44:14.025 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 21:44:14.027 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.027 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:44:14.027 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.028 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:44:14.028 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 21:44:14.029 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-outbound/check-scan-sn |
| 21:44:14.029 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOutboundController::actionCheckScanSn() |
| 21:44:14.030 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "sn"='222' |
| 21:44:14.031 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.031 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:44:14.032 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id" IN (470, 517) |
| 21:44:14.032 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.033 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:44:14.033 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id" IN (2261, 870) |
| 21:44:14.033 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.034 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:44:14.034 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE ("id"=1) AND ("is_delete"=FALSE)) |
| 21:44:14.035 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "id"=83 |
| 21:44:14.035 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "id"=83 |
| 21:44:14.036 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=470 |
| 21:44:14.036 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2261 |
| 21:44:14.037 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=4 |
| 21:44:14.037 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.038 | 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_product_brands'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 21:44:14.041 | 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_product_brands'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 21:44:14.050 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:44:14.050 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:44:14.050 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_product_types" WHERE "id"=4 |
| 21:44:14.051 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.051 | 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_product_types'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 21:44:14.054 | 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_product_types'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 21:44:14.063 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:44:14.063 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 21:44:14.064 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "id"=83 |
| 21:44:14.065 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.065 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:44:14.066 | 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-sales-outbound/check-scan-sn', '{"ErpSalesOutbounds":{"erpSalesOutboundProducts":{"450":{"product_id":"2261","number":"1","amount":"400","total_amount":"400.00","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","erp_sales_order_product_id":"2233","erp_store_id":"1","maintenance_to":"","is_check":"0","erpSalesOutboundSpentProducts":[{"erp_inventory_product_id":"485","number":"1"}],"sns":""}}},"erp_sales_outbound_id":"154","scan_sn":"222"}', '{"code":2000,"result":{"scan_result":{"scan_sn":"222","status":1,"msg":"\u626b\u7801\u6210\u529f"},"scan_list":{"sns":[{"erp_inventory_product_sn_id":83,"erp_inventory_product_id":470,"sn":"222"}],"groups":[{"product_id":2261,"product_name":"MK-MC300","product_model":"","brand_name":"\u8054\u60f3","category_name":"\u7f51\u7edc\u8bbe\u5907 ","erp_store_id":1,"erp_inventory_product_id":470,"number":1,"error_number":0,"sns":[{"erp_inventory_product_sn_id":83,"erp_inventory_product_id":470,"sn":"222","is_error":false,"error_display":""}]}]}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"115.171.251.90","ua":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/149.0.0.0 Safari\/537.36"}', FALSE, '2026-07-04 21:44:14', 44250112) RETURNING "id" |
| 21:44:14.068 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:44:14.068 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |