| 11:31:42.522 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 11:31:42.522 | trace | yii\base\Module::getModule | Loading module: debug |
| 11:31:42.523 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 11:31:42.523 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 11:31:42.523 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 11:31:42.524 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:31:42.524 | info | time tracing start | 1782876702524477952 |
| 11:31:42.524 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 11:31:42.524 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-outbound/search-inventory-product-list' |
| 11:31:42.524 | trace | yii\base\Module::getModule | Loading module: vue |
| 11:31:42.526 | info | yii\web\Session::open | Session started |
| 11:31:42.527 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:31:42.527 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 11:31:42.536 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:31:42.536 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:31:42.538 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:31:42.539 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:31:42.539 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:31:42.539 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:31:42.541 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-outbound/search-inventory-product-list |
| 11:31:42.542 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOutboundController::actionSearchInventoryProductList() |
| 11:31:42.546 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:31:42.546 | 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_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 11:31:42.554 | 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_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 11:31:42.566 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:31:42.567 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 11:31:42.570 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:31:42.572 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:31:42.573 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT eip.* FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" LEFT JOIN "a57be577deb434"."tbl_products" "p" ON eip.product_id = p.id LEFT JOIN "a57be577deb434"."tbl_product_brands" "pb" ON p.product_brand = pb.id LEFT JOIN "a57be577deb434"."tbl_product_types" "pt" ON p.product_type = pt.id LEFT JOIN "a57be577deb434"."tbl_product_series" "ps" ON p.product_serie = ps.id LEFT JOIN "a57be577deb434"."tbl_product_components" "pc" ON p.product_component = pc.id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbounds" "epis" ON epis.id = eip.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbound_projects" "epips" ON epis.id = epips.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_starts" "eiss" ON eiss.id = eip.erp_inventory_start_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_builds" "eibs" ON eibs.id = eip.erp_inventory_build_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_disassembles" "eids" ON eids.id = eip.erp_inventory_disassemble_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_gifts" "epgs" ON epgs.id = eip.erp_purchase_gift_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_overflows" "eios" ON eios.id = eip.erp_inventory_overflow_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_overflow_projects" "eiops" ON eiops.erp_inventory_overflow_id = eios.id WHERE ("eip"."product_id"='2261') AND ("eip"."erp_store_id"='2') AND ((eip.inventory > 0) OR (0=1)) GROUP BY "eip"."id" ORDER BY eip.wrote_date ASC, eip.created_at ASC) "c" |
| 11:31:42.579 | info | yii\db\Command::query | SELECT eip.* FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" LEFT JOIN "a57be577deb434"."tbl_products" "p" ON eip.product_id = p.id LEFT JOIN "a57be577deb434"."tbl_product_brands" "pb" ON p.product_brand = pb.id LEFT JOIN "a57be577deb434"."tbl_product_types" "pt" ON p.product_type = pt.id LEFT JOIN "a57be577deb434"."tbl_product_series" "ps" ON p.product_serie = ps.id LEFT JOIN "a57be577deb434"."tbl_product_components" "pc" ON p.product_component = pc.id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbounds" "epis" ON epis.id = eip.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbound_projects" "epips" ON epis.id = epips.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_starts" "eiss" ON eiss.id = eip.erp_inventory_start_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_builds" "eibs" ON eibs.id = eip.erp_inventory_build_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_disassembles" "eids" ON eids.id = eip.erp_inventory_disassemble_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_gifts" "epgs" ON epgs.id = eip.erp_purchase_gift_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_overflows" "eios" ON eios.id = eip.erp_inventory_overflow_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_overflow_projects" "eiops" ON eiops.erp_inventory_overflow_id = eios.id WHERE ("eip"."product_id"='2261') AND ("eip"."erp_store_id"='2') AND ((eip.inventory > 0) OR (0=1)) GROUP BY "eip"."id" ORDER BY eip.wrote_date ASC, eip.created_at ASC LIMIT 20 |
| 11:31:42.583 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "serial_no", "serial_no" AS "name" FROM "a57be577deb434"."tbl_erp_inventory_overflows" WHERE "id"=5 |
| 11:31:42.583 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2261 |
| 11:31:42.584 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id"=4 |
| 11:31:42.585 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id"=52 |
| 11:31:42.585 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=4 |
| 11:31:42.586 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id"=1769 |
| 11:31:42.586 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id"=3 |
| 11:31:42.587 | info | yii\db\Command::query | SELECT eip.* FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" LEFT JOIN "a57be577deb434"."tbl_products" "p" ON eip.product_id = p.id LEFT JOIN "a57be577deb434"."tbl_product_brands" "pb" ON p.product_brand = pb.id LEFT JOIN "a57be577deb434"."tbl_product_types" "pt" ON p.product_type = pt.id LEFT JOIN "a57be577deb434"."tbl_product_series" "ps" ON p.product_serie = ps.id LEFT JOIN "a57be577deb434"."tbl_product_components" "pc" ON p.product_component = pc.id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbounds" "epis" ON epis.id = eip.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbound_projects" "epips" ON epis.id = epips.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_starts" "eiss" ON eiss.id = eip.erp_inventory_start_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_builds" "eibs" ON eibs.id = eip.erp_inventory_build_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_disassembles" "eids" ON eids.id = eip.erp_inventory_disassemble_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_gifts" "epgs" ON epgs.id = eip.erp_purchase_gift_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_overflows" "eios" ON eios.id = eip.erp_inventory_overflow_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_overflow_projects" "eiops" ON eiops.erp_inventory_overflow_id = eios.id WHERE ("eip"."product_id"='2261') AND ("eip"."erp_store_id"='2') AND ((eip.inventory > 0) OR (0=1)) GROUP BY "eip"."id" ORDER BY eip.wrote_date ASC, eip.created_at ASC |
| 11:31:42.589 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "serial_no", "serial_no" AS "name" FROM "a57be577deb434"."tbl_erp_inventory_overflows" WHERE "id"=5 |
| 11:31:42.590 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2261 |
| 11:31:42.590 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id"=4 |
| 11:31:42.591 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id"=52 |
| 11:31:42.591 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=4 |
| 11:31:42.591 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id"=1769 |
| 11:31:42.592 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id"=3 |
| 11:31:42.593 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:31:42.593 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:31:42.593 | 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/search-inventory-product-list', '{"ErpSalesOutbounds":{"erpSalesOutboundProducts":{"new":[{"product_id":"2261","number":"","amount":"900","total_amount":"","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erp_sales_order_product_id":"2243","erp_store_id":"2","is_check":"1","erpSalesOutboundSpentProducts":""}]}},"id":"","web_access_token":"9OODFZFZk-X86cfjXzRsEqn62HNQjGnS"}', '{"code":2000,"result":{"list":[{"id":502,"product_id":2261,"erp_purchase_inbound_id":"","erp_purchase_order_id":"","erp_purchase_inbound_product_id":"","erp_purchase_order_product_id":"","erp_store_id":2,"wrote_date":"2026-05-20","number":"1","outbound":"0","inventory":"1","amount":"1","total_amount":"1.00","actual_amount":"1","actual_total_amount":"1","is_build":false,"created_at":"2026-05-20 14:04:02","lost_outbound":"","erp_inventory_start_id":"","erp_inventory_start_product_id":"","erp_inventory_build_id":"","erp_inventory_build_product_id":"","build_spent_outbound":"","sales_outbound":"","erp_purchase_gift_id":"","erp_purchase_gift_product_id":"","sales_gift_outbound":"","erp_inventory_disassemble_id":"","erp_inventory_disassemble_product_id":"","disassemble_spent_outbound":"","erp_inventory_overflow_id":5,"erp_inventory_overflow_product_id":6,"erpPurchaseInbound":{},"erpInventoryBuild":{},"erpInventoryDisassemble":{},"erpInventoryStart":{},"erpPurchaseGift":{},"erpInventoryOverflow":{"id":5,"key":5,"serial_no":"BYD-20260520-00005","name":"BYD-20260520-00005"},"product":{"id":2261,"name":"MK-MC300","product_type":4,"product_component":52,"product_brand":4,"product_serie":1769,"product_misc":"","product_qa":"","pn":"","description":"MK-MC300\u62fe\u97f3\u9ea6\u514b\u98ce\uff0c\u542b5\u7c73\u7ebf","created_by":1013,"created_at":"2026-03-16 10:07:43","updated_at":"2026-05-21 18:10:51","pinyin_shortcut":"MKMC300","product_unit":3,"is_renew":false,"in_out_at":"2026-05-21 18:10:51.145864+08","productType":{"id":4,"key":4,"name":"\u7f51\u7edc\u8bbe\u5907 "},"productComponent":{"id":52,"key":52,"name":"\u534f\u4f5c"},"productBrand":{"id":4,"key":4,"name":"\u8054\u60f3"},"productSerie":{"id":1769,"key":1769,"name":"\u5168\u5411\u9ea6\u514b\u98ce"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}},"serial_no":"BYD-20260520-00005"}],"checkList":[],"pagenation":{"totalcount":1,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","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-07-01 11:31:42', 69308928) RETURNING "id" |
| 11:31:42.600 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:31:42.601 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |