| 11:32:29.379 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 11:32:29.379 | trace | yii\base\Module::getModule | Loading module: debug |
| 11:32:29.379 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 11:32:29.380 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 11:32:29.380 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 11:32:29.381 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:32:29.383 | info | time tracing start | 1782876749383742208 |
| 11:32:29.384 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 11:32:29.384 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-outbound/save-new' |
| 11:32:29.384 | trace | yii\base\Module::getModule | Loading module: vue |
| 11:32:29.385 | info | yii\web\Session::open | Session started |
| 11:32:29.387 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:32:29.387 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 11:32:29.396 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:32:29.396 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:32:29.397 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:32:29.398 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:32:29.398 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:32:29.398 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:32:29.401 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-outbound/save-new |
| 11:32:29.401 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:32:29.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 11:32:29.403 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOutboundController::actionSaveNew() |
| 11:32:29.405 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpSalesOutbounds'. |
| 11:32:29.405 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:32:29.405 | 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_outbounds'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 11:32:29.413 | 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_outbounds'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 11:32:29.424 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:32:29.424 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 11:32:29.425 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\ErpSalesOutbounds'. |
| 11:32:29.425 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpSalesOutboundVerifyRels' in 'app\models\ErpSalesOutbounds'. |
| 11:32:29.425 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erp_store_name' in 'app\models\ErpSalesOutbounds'. |
| 11:32:29.425 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpSalesOutboundProducts' in 'app\models\ErpSalesOutbounds'. |
| 11:32:29.425 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpSalesOutbounds'. |
| 11:32:29.425 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:32:29.426 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:32:29.427 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE ("created_at" >= '2026-07-01 00:00:00') AND ("created_at" <= '2026-07-01 23:59:59') AND ("serial_no" ILIKE '%XSCKD-20260701-%') AND (LENGTH(serial_no) = 20) ORDER BY "serial_no" DESC |
| 11:32:29.429 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "serial_no"='XSCKD-20260701-00001') |
| 11:32:29.430 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001') |
| 11:32:29.431 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='982') |
| 11:32:29.431 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4161') |
| 11:32:29.432 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='2') |
| 11:32:29.438 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 11:32:29.439 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1699') |
| 11:32:29.440 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "id"=2230 |
| 11:32:29.441 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2261 |
| 11:32:29.441 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id"=2230 |
| 11:32:29.442 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=151 |
| 11:32:29.443 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=446 |
| 11:32:29.445 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_outbound_spent_product_id"=533 |
| 11:32:29.445 | info | yii\db\Command::query | SELECT sum(inventory) as inventory FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE ("product_id"='2261') AND ("erp_store_id"='2') |
| 11:32:29.446 | info | yii\db\Command::query | SELECT "name" FROM "a57be577deb434"."tbl_products" WHERE "id"='2261' |
| 11:32:29.447 | info | yii\db\Command::query | SELECT "title" FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='2' |
| 11:32:29.447 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:32:29.448 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:32:29.448 | 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/save-new', '{"ErpSalesOutbounds":{"id":"","client_id":"982","client_name":"\u4e2d\u56fd\u4fe1\u606f\u5b89\u5168\u7814\u7a76\u6240","erp_send_type_id":"","handler":"1001","project_id":"4161","wrote_date":"2026-07-01","serial_no":"XSCKD-20260701-00001","erpSalesOutboundVerifyRels":"","abstract":"","description":"","erp_store_id":"2","erp_store_name":"\u96f6\u914d\u4ef6","erp_sales_order_id":"1699","erpSalesOutboundProducts":{"new":[{"product_id":"2261","number":"3","amount":"100","total_amount":"300.00","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erp_sales_order_product_id":"2230","erp_store_id":"2","is_check":"0","erpSalesOutboundSpentProducts":""}]},"files":""},"web_access_token":"9OODFZFZk-X86cfjXzRsEqn62HNQjGnS"}', '{"code":500,"result":{},"status":0,"msg":[{"name":"error","success":"","error":"MK-MC300\u5728\u4ed3\u5e93\u3010\u96f6\u914d\u4ef6\u3011\u5e93\u5b58\u4e0d\u8db3"}],"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-07-01 11:32:29', 64533760) RETURNING "id" |
| 11:32:29.453 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:32:29.453 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |