| 14:21:07.637 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 14:21:07.637 | trace | yii\base\Module::getModule | Loading module: debug |
| 14:21:07.637 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 14:21:07.638 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 14:21:07.638 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 14:21:07.638 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.638 | trace | yii\base\Module::getModule | Loading module: gii |
| 14:21:07.638 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
| 14:21:07.638 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 14:21:07.638 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-outbound/make-sales-order' |
| 14:21:07.638 | trace | yii\base\Module::getModule | Loading module: vue |
| 14:21:07.639 | info | yii\web\Session::open | Session started |
| 14:21:07.639 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:21:07.639 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 14:21:07.644 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.644 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.644 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.644 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.645 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 14:21:07.646 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-outbound/make-sales-order |
| 14:21:07.647 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.647 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 14:21:07.648 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOutboundController::actionMakeSalesOrder() |
| 14:21:07.648 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"='73' |
| 14:21:07.648 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.649 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.649 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "id"=163 |
| 14:21:07.649 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.650 | 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_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:21:07.655 | 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_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:21:07.664 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.664 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:21:07.665 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=163 |
| 14:21:07.665 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.665 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.665 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" WHERE "erp_sales_outbound_spent_product_id"=216 |
| 14:21:07.666 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.666 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.666 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=226 |
| 14:21:07.667 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.667 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.667 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=171 |
| 14:21:07.668 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.668 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.668 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=87 |
| 14:21:07.668 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.669 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.669 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 14:21:07.672 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 14:21:07.673 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1624 |
| 14:21:07.674 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.674 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.676 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.676 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.676 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.676 | 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_clients'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:21:07.681 | 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_clients'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:21:07.691 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.691 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:21:07.691 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3286 |
| 14:21:07.694 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_order_items" ("erp_sales_outbound_id", "client_id", "project_id", "product_id", "amount", "is_system", "sales_date", "supplier_id", "hardware_from", "software_from", "maintenance_from", "hardware_to", "software_to", "maintenance_to", "new_hardware_deadline", "new_software_deadline", "new_maintenance_deadline", "is_renew", "number", "is_merge", "need_sn", "sn", "created_by", "sales_rep", "updated_at") VALUES (73, 3286, 4014, 1624, '1289.9999295774', TRUE, '2025-12-18', 90, '2025-12-18', NULL, NULL, '2025-12-31', NULL, NULL, '2025-12-31', NULL, NULL, FALSE, 1, FALSE, TRUE, '556565656', 1001, 1001, 'now()') RETURNING "id" |
| 14:21:07.702 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.702 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.702 | 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 ('INSERT', 'app\models\SalesOrderItems', 13483, 'a:46:{s:2:"id";i:13483;s:14:"sales_order_id";N;s:10:"product_id";i:1624;s:6:"parent";N;s:2:"sn";s:9:"556565656";s:11:"supplier_id";i:90;s:5:"order";N;s:10:"created_by";i:1001;s:10:"created_at";N;s:10:"updated_at";s:19:"1970-01-01 08:00:00";s:2:"pn";N;s:12:"product_type";N;s:17:"product_component";N;s:13:"product_brand";N;s:13:"product_serie";N;s:12:"product_misc";N;s:13:"hardware_from";s:10:"2025-12-18";s:13:"software_from";s:0:"";s:16:"maintenance_from";s:0:"";s:11:"hardware_to";s:10:"2025-12-31";s:11:"software_to";s:0:"";s:14:"maintenance_to";s:0:"";s:21:"new_hardware_deadline";s:10:"2025-12-31";s:21:"new_software_deadline";s:0:"";s:24:"new_maintenance_deadline";s:0:"";s:9:"client_id";i:3286;s:10:"project_id";i:4014;s:9:"sales_rep";i:1001;s:10:"sales_date";s:10:"2025-12-18";s:11:"description";N;s:17:"software_reminded";N;s:17:"hardware_reminded";N;s:20:"maintenance_reminded";N;s:25:"software_advance_reminded";N;s:25:"hardware_advance_reminded";N;s:28:"maintenance_advance_reminded";N;s:9:"is_system";b:1;s:6:"amount";s:15:"1289.9999295774";s:4:"cost";N;s:8:"is_renew";b:0;s:28:"renew_to_sales_order_item_id";N;s:6:"number";i:1;s:8:"is_merge";b:0;s:7:"need_sn";b:1;s:21:"erp_sales_outbound_id";i:73;s:17:"erp_sales_gift_id";N;}', '', 1001, '223.72.15.22') |
| 14:21:07.704 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.704 | 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_sales_order_item_remind_receivers'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:21:07.707 | 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_sales_order_item_remind_receivers'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:21:07.716 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.716 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:21:07.716 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_order_item_remind_receivers" ("sales_order_item_id", "user_id") VALUES (13483, 1001) RETURNING "id" |
| 14:21:07.723 | 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 ('INSERT', 'app\models\SalesOrderItemRemindReceivers', 12212, 'a:3:{s:2:"id";i:12212;s:19:"sales_order_item_id";i:13483;s:7:"user_id";i:1001;}', '', 1001, '223.72.15.22') |
| 14:21:07.724 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_order_items" WHERE "id"=13483 |
| 14:21:07.724 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.725 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.725 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 13483, 34, 1001, '2025-12-18 14:21:07', '{"id":13483,"sales_order_id":null,"product_id":1624,"parent":null,"sn":"556565656","supplier_id":90,"order":0,"created_by":1001,"created_at":"2025-12-18 14:21:07","updated_at":"2025-12-18 14:21:07","pn":null,"product_type":null,"product_component":null,"product_brand":null,"product_serie":null,"product_misc":null,"hardware_from":"2025-12-18","software_from":null,"maintenance_from":null,"hardware_to":"2025-12-31","software_to":null,"maintenance_to":null,"new_hardware_deadline":"2025-12-31","new_software_deadline":null,"new_maintenance_deadline":null,"client_id":3286,"project_id":4014,"sales_rep":1001,"sales_date":"2025-12-18","description":null,"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":"1289.9999295774","cost":null,"is_renew":false,"renew_to_sales_order_item_id":null,"number":1,"is_merge":false,"need_sn":true,"erp_sales_outbound_id":73,"erp_sales_gift_id":null}', '{"id":13483,"sales_order_id":null,"product_id":1624,"parent":null,"sn":"556565656","supplier_id":90,"order":0,"created_by":1001,"created_at":"2025-12-18 14:21:07","updated_at":"2025-12-18 14:21:07","pn":null,"product_type":null,"product_component":null,"product_brand":null,"product_serie":null,"product_misc":null,"hardware_from":"2025-12-18","software_from":null,"maintenance_from":null,"hardware_to":"2025-12-31","software_to":null,"maintenance_to":null,"new_hardware_deadline":"2025-12-31","new_software_deadline":null,"new_maintenance_deadline":null,"client_id":3286,"project_id":4014,"sales_rep":1001,"sales_date":"2025-12-18","description":null,"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":"1289.9999295774","cost":null,"is_renew":false,"renew_to_sales_order_item_id":null,"number":1,"is_merge":false,"need_sn":true,"erp_sales_outbound_id":73,"erp_sales_gift_id":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":[]}') RETURNING "id" |
| 14:21:07.731 | 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 ('INSERT', 'app\models\ObjectChangeLogs', 590903, 'a:13:{s:2:"id";i:590903;s:9:"object_id";i:13483;s:11:"object_type";i:34;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:1042:"{"id":13483,"sales_order_id":null,"product_id":1624,"parent":null,"sn":"556565656","supplier_id":90,"order":0,"created_by":1001,"created_at":"2025-12-18 14:21:07","updated_at":"2025-12-18 14:21:07","pn":null,"product_type":null,"product_component":null,"product_brand":null,"product_serie":null,"product_misc":null,"hardware_from":"2025-12-18","software_from":null,"maintenance_from":null,"hardware_to":"2025-12-31","software_to":null,"maintenance_to":null,"new_hardware_deadline":"2025-12-31","new_software_deadline":null,"new_maintenance_deadline":null,"client_id":3286,"project_id":4014,"sales_rep":1001,"sales_date":"2025-12-18","description":null,"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":"1289.9999295774","cost":null,"is_renew":false,"renew_to_sales_order_item_id":null,"number":1,"is_merge":false,"need_sn":true,"erp_sales_outbound_id":73,"erp_sales_gift_id":null}";s:9:"new_value";s:1042:"{"id":13483,"sales_order_id":null,"product_id":1624,"parent":null,"sn":"556565656","supplier_id":90,"order":0,"created_by":1001,"created_at":"2025-12-18 14:21:07","updated_at":"2025-12-18 14:21:07","pn":null,"product_type":null,"product_component":null,"product_brand":null,"product_serie":null,"product_misc":null,"hardware_from":"2025-12-18","software_from":null,"maintenance_from":null,"hardware_to":"2025-12-31","software_to":null,"maintenance_to":null,"new_hardware_deadline":"2025-12-31","new_software_deadline":null,"new_maintenance_deadline":null,"client_id":3286,"project_id":4014,"sales_rep":1001,"sales_date":"2025-12-18","description":null,"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":"1289.9999295774","cost":null,"is_renew":false,"renew_to_sales_order_item_id":null,"number":1,"is_merge":false,"need_sn":true,"erp_sales_outbound_id":73,"erp_sales_gift_id":null}";s:11:"description";s:93:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-12-18 14:21:07";s:9:"is_delete";N;}', '', 1001, '223.72.15.22') |
| 14:21:07.732 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3286 |
| 14:21:07.757 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=3286 |
| 14:21:07.761 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3286) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 14:21:07.782 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.782 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.782 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3286, 1001, 'now()', NULL) RETURNING "id" |
| 14:21:07.788 | 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 ('INSERT', 'app\models\ClientAmChangeLogs', 187297, 'a:5:{s:2:"id";i:187297;s:9:"client_id";i:3286;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '223.72.15.22') |
| 14:21:07.789 | 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\Clients', 3286, 'a:0:{}', '', 1001, '223.72.15.22') |
| 14:21:07.790 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1624 |
| 14:21:07.790 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 3286, 10, 13483, 34, 1001, '[13483]', '[13483]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":["PAN-SOFTWARE-NGFW-CR"]}') RETURNING "id" |
| 14:21:07.791 | 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 ('INSERT', 'app\models\ObjectChangeLogs', 590904, 'a:13:{s:2:"id";i:590904;s:9:"object_id";i:3286;s:11:"object_type";i:10;s:9:"target_id";i:13483;s:18:"target_object_type";i:34;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[13483]";s:9:"new_value";s:7:"[13483]";s:11:"description";s:115:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":["PAN-SOFTWARE-NGFW-CR"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '223.72.15.22') |
| 14:21:07.792 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.792 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.792 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4014 |
| 14:21:07.794 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=4014 |
| 14:21:07.798 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4014) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 14:21:07.804 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.804 | 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_project_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:21:07.807 | 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_project_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:21:07.816 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.816 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:21:07.816 | 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\Projects', 4014, 'a:0:{}', '', 1001, '223.72.15.22') |
| 14:21:07.817 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3286 |
| 14:21:07.818 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 4014, 1, 13483, 34, 1001, '[13483]', '[13483]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":["PAN-SOFTWARE-NGFW-CR"]}') RETURNING "id" |
| 14:21:07.819 | 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 ('INSERT', 'app\models\ObjectChangeLogs', 590905, 'a:13:{s:2:"id";i:590905;s:9:"object_id";i:4014;s:11:"object_type";i:1;s:9:"target_id";i:13483;s:18:"target_object_type";i:34;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[13483]";s:9:"new_value";s:7:"[13483]";s:11:"description";s:115:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":["PAN-SOFTWARE-NGFW-CR"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '223.72.15.22') |
| 14:21:07.820 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 90, 12, 13483, 34, 1001, '[13483]', '[13483]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":["PAN-SOFTWARE-NGFW-CR"]}') RETURNING "id" |
| 14:21:07.821 | 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 ('INSERT', 'app\models\ObjectChangeLogs', 590906, 'a:13:{s:2:"id";i:590906;s:9:"object_id";i:90;s:11:"object_type";i:12;s:9:"target_id";i:13483;s:18:"target_object_type";i:34;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[13483]";s:9:"new_value";s:7:"[13483]";s:11:"description";s:115:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":["PAN-SOFTWARE-NGFW-CR"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '223.72.15.22') |
| 14:21:07.821 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_outbound_id"=73 |
| 14:21:07.822 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_order_items" WHERE "erp_sales_outbound_id"=73 |
| 14:21:07.824 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_outbounds" SET "is_sales_order_ready"=TRUE WHERE "id"=73 |
| 14:21:07.825 | 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\ErpSalesOutbounds', 73, 'a:0:{}', '', 1001, '223.72.15.22') |
| 14:21:07.826 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4014 |
| 14:21:07.826 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4014 |
| 14:21:07.828 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=4014 ORDER BY "id" |
| 14:21:07.831 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.831 | 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_project_product_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 14:21:07.834 | 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_project_product_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 14:21:07.843 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.843 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 14:21:07.843 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.844 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.845 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_order_items" WHERE ("project_id"=4014) AND (erp_sales_outbound_id is not null) |
| 14:21:07.849 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4014) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 14:21:07.850 | 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\Projects', 4014, 'a:0:{}', '', 1001, '223.72.15.22') |
| 14:21:07.851 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3286 |
| 14:21:07.852 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'sales_outbound', 73, 20008, 1001, 'now()', '[]', '[]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u751f\u6210\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":[]}'), (1, 'sales_outbound', 4014, 1, 1001, 'now()', '[]', '[]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u751f\u6210\u4e86","d3":"\u9500\u552e\u8bb0\u5f55","d4":[]}') |
| 14:21:07.853 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.853 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.853 | 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:21:07.857 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.857 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 14:21:07.857 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=791, "last_visit_at"='now()' WHERE "id"=59588 |
| 14:21:07.858 | 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/make-sales-order', '{"id":"73","items":{"163":{"is_merge":"0","hardware_from":"2025-12-18","hardware_to":"2025-12-31","software_from":"","software_to":"","maintenance_from":"","maintenance_to":""}}}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","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:21:07') RETURNING "id" |
| 14:21:07.860 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 14:21:07.860 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |