| 16:44:31.880 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 16:44:31.880 | trace | yii\base\Module::getModule | Loading module: debug |
| 16:44:31.881 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 16:44:31.881 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 16:44:31.881 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 16:44:31.881 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:44:31.881 | info | time tracing start | 1780476271881906944 |
| 16:44:31.882 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 16:44:31.882 | trace | yii\web\Application::handleRequest | Route requested: 'vue/sales-order-item/get-edit' |
| 16:44:31.882 | trace | yii\base\Module::getModule | Loading module: vue |
| 16:44:31.882 | info | yii\web\Session::open | Session started |
| 16:44:31.883 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=5495 |
| 16:44:31.883 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 16:44:31.884 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:44:31.885 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:44:31.885 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:44:31.885 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:44:31.885 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5495 |
| 16:44:31.886 | trace | yii\base\Controller::runAction | Route to run: vue/sales-order-item/get-edit |
| 16:44:31.887 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:44:31.888 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 16:44:31.888 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewSalesOrder |
| 16:44:31.888 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 16:44:31.888 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
| 16:44:31.888 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 16:44:31.888 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Treasurer |
| 16:44:31.888 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\SalesOrderItemController::actionGetEdit() |
| 16:44:31.888 | info | yii\db\Command::query | SELECT si.* FROM "o6a13e2c574d5a"."tbl_sales_order_items" "si" WHERE "si"."id"='1' |
| 16:44:31.889 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sales_rep", "logo" FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 16:44:31.890 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 16:44:31.890 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "o6a13e2c574d5a"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5493) |
| 16:44:31.891 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "project_title" AS "name" FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 16:44:31.891 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_products" WHERE "id"=1 |
| 16:44:31.892 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "o6a13e2c574d5a"."tbl_product_types" WHERE "id"=1 |
| 16:44:31.892 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "o6a13e2c574d5a"."tbl_product_components" WHERE "id"=1 |
| 16:44:31.892 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "o6a13e2c574d5a"."tbl_product_brands" WHERE "id"=1 |
| 16:44:31.893 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "o6a13e2c574d5a"."tbl_product_series" WHERE "id"=1 |
| 16:44:31.893 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "o6a13e2c574d5a"."tbl_suppliers" WHERE "id"=1 |
| 16:44:31.893 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 16:44:31.894 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "o6a13e2c574d5a"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5493) |
| 16:44:31.894 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "o6a13e2c574d5a"."tbl_departments" WHERE "id"=1 |
| 16:44:31.895 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_order_item_remind_receivers" WHERE "sales_order_item_id"=1 |
| 16:44:31.895 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 16:44:31.896 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "o6a13e2c574d5a"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5493) |
| 16:44:31.896 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_order_item_renew_logs" WHERE "sales_order_item_id"=1 ORDER BY "sales_date", "created_at" |
| 16:44:31.896 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_attachement_relationships" WHERE ("object_type"=27) AND ("object_id"=1) |
| 16:44:31.897 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:44:31.897 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:44:31.897 | info | yii\db\Command::query | SELECT EXISTS(SELECT DISTINCT s.* FROM "o6a13e2c574d5a"."tbl_sales_order_items" "s" LEFT JOIN "o6a13e2c574d5a"."tbl_clients" "client" ON client.id = s.client_id WHERE (("client"."sales_rep"=5493) OR ("client"."sales_rep" IS NULL) OR ("client"."id" IN (SELECT "client_id" FROM "o6a13e2c574d5a"."tbl_user_visit_clients" WHERE "user_id"=5495))) AND ("s"."id"=1)) |
| 16:44:31.898 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateSalesOrder |
| 16:44:31.898 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 16:44:31.898 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Treasurer |
| 16:44:31.898 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: deleteSalesOrder |
| 16:44:31.898 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 16:44:31.898 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "o6a13e2c574d5a"."tbl_departments" ORDER BY "order" |
| 16:44:31.899 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "department_id", "pinyin_shortcut" FROM "o6a13e2c574d5a"."tbl_users" WHERE ("user_status"='1') AND ("department_id" IN (1, 2, 3, 4, 5, 6, 7, 8)) ORDER BY
pinyin1 nulls first, namecut1 nulls first,
pinyin2 nulls first, namecut2 nulls first,
pinyin3 nulls first, namecut3 nulls first,
pinyin4 nulls first, namecut4 nulls first |
| 16:44:31.899 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "o6a13e2c574d5a"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (5493, 5495)) |
| 16:44:31.900 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:44:31.900 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:44:31.901 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_visit_object_histories" WHERE ("user_id"=5495) AND ("object_type"=34) AND ("object_id"='1') |
| 16:44:31.901 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:44:31.901 | 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_visit_object_histories'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 16:44:31.905 | 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_visit_object_histories'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 16:44:31.925 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:44:31.926 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 16:44:31.926 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_visit_object_histories" ("user_id", "object_type", "object_id", "last_visit_at") VALUES (5495, 34, 1, 'now()') RETURNING "id" |
| 16:44:31.929 | info | yii\db\Command::query | SELECT "id" FROM "o6a13e2c574d5a"."tbl_visit_object_histories" WHERE "user_id"=5495 ORDER BY "last_visit_at" DESC LIMIT 10 |
| 16:44:31.930 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_visit_object_histories" WHERE ("id" NOT IN (16, 11, 12, 13, 1, 8, 5, 4, 2)) AND ("user_id"=5495) |
| 16:44:31.930 | 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, 'o6a13e2c574d5a', 5495, 5, 'vue/sales-order-item/get-edit', '{"id":"1","web_access_token":"y5bkfO5HuIJNqY-Jlz2UmvGim2HR_PGe"}', '{"code":2000,"result":{"model":{"id":1,"sales_order_id":"","product_id":1,"parent":"","sn":"","supplier_id":1,"order":0,"created_by":5493,"created_at":"2026-06-01 15:19:56","updated_at":"2026-06-01 15:19:56","pn":"","product_type":"","product_component":"","product_brand":"","product_serie":"","product_misc":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","new_hardware_deadline":"","new_software_deadline":"","new_maintenance_deadline":"","client_id":1,"project_id":1,"sales_rep":5493,"sales_date":"2026-06-01","description":"","software_reminded":false,"hardware_reminded":false,"maintenance_reminded":false,"software_advance_reminded":false,"hardware_advance_reminded":false,"maintenance_advance_reminded":false,"is_system":true,"amount":"10000","cost":"","is_renew":false,"renew_to_sales_order_item_id":"","number":1,"is_merge":false,"need_sn":true,"erp_sales_outbound_id":1,"erp_sales_gift_id":"","client":{"id":1,"key":1,"name":"\u903b\u8f91\u6d4b\u8bd5-\u9500\u552e\u5408\u540c","sales_rep":5493,"logo":"","salesRep":{"id":5493,"key":5493,"name":"97289742","avatar":{}}},"project":{"id":1,"key":1,"name":"\u9500\u552e\u7ebf\u7d22\u751f\u621020260527001"},"product":{"id":1,"name":"\u6df1\u4fe1\u670d AF-1210-A","product_type":1,"product_component":1,"product_brand":1,"product_serie":1,"product_misc":"","product_qa":"","pn":"","description":"","created_by":5493,"created_at":"2026-05-25 13:48:53","updated_at":"2026-06-01 15:21:10","pinyin_shortcut":"","product_unit":"","is_renew":false,"in_out_at":"2026-06-01 15:21:10.749785+08","productType":{"id":1,"key":1,"name":"\u9632\u706b\u5899"},"productComponent":{"id":1,"key":1,"name":"\u786c\u4ef6\u4e3b\u673a"},"productBrand":{"id":1,"key":1,"name":"\u6df1\u4fe1\u670d"},"productSerie":{"id":1,"key":1,"name":"\u6df1\u4fe1\u670dAF-1210"}},"supplier":{"id":1,"key":1,"name":"\u91c7\u8d2d\u903b\u8f91-\u5546\u52a1\u4e13\u5458"},"createdBy":{"id":5493,"key":5493,"name":"97289742","sex":"M","department_id":1,"avatar":{},"department":{"id":1,"key":1,"name":"\u603b\u7ecf\u7406"}},"salesOrderItemRemindReceivers":[{"id":1,"sales_order_item_id":1,"user_id":5493,"user":{"id":5493,"key":5493,"name":"97289742","sex":"M","avatar":{}}}],"renewLogs":[],"files":[],"renewToSalesOrderItem":{},"can_update":true,"can_delete":false},"options":{"SalesOrderItems[salesOrderItemRemindReceivers]":{"key":"SalesOrderItems[salesOrderItemRemindReceivers]","name":"\u63d0\u9192\u4eba","value":[{"id":1,"key":1,"name":"\u603b\u7ecf\u7406","child":[{"id":5493,"key":5493,"name":"97289742","department_id":1,"pinyin_shortcut":"97289742","avatar":{}}]},{"id":2,"key":2,"name":"\u9500\u552e\u90e8","child":[]},{"id":3,"key":3,"name":"\u6280\u672f\u90e8","child":[]},{"id":4,"key":4,"name":"\u5546\u52a1\u90e8","child":[{"id":5495,"key":5495,"name":"\u903b\u8f91\u6d4b\u8bd5","department_id":4,"pinyin_shortcut":"ljcs","avatar":{}}]},{"id":5,"key":5,"name":"\u9879\u76ee\u90e8","child":[]},{"id":6,"key":6,"name":"\u4eba\u529b\u8d44\u6e90\u90e8","child":[]},{"id":7,"key":7,"name":"\u8d22\u52a1\u90e8","child":[]},{"id":8,"key":8,"name":"\u5e93\u623f\u90e8","child":[]}]}}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"43.224.72.82","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-03 16:44:31', 48445952) RETURNING "id" |
| 16:44:31.931 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:44:31.931 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |