All Latest
6944c9499a537: POST https://beta.jinchangxiao.com/vue/erp-sales-outbound/save-new at 2025-12-19 11:40:57 am by 223.72.15.22

Log Messages

总计288条数据
TimeLevelCategoryMessage
 
11:40:57.631traceyii\base\Application::bootstrapBootstrap with yii\log\Dispatcher
11:40:57.631traceyii\base\Module::getModuleLoading module: debug
11:40:57.632traceyii\base\Application::bootstrapBootstrap with yii\debug\Module::bootstrap()
11:40:57.632traceyii\redis\Connection::openOpening redis DB connection: redis.server.local:6379, database=1
11:40:57.632traceyii\redis\Connection::executeCommandExecuting Redis Command: SELECT
11:40:57.632traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.632traceyii\base\Module::getModuleLoading module: gii
11:40:57.632traceyii\base\Application::bootstrapBootstrap with yii\gii\Module::bootstrap()
11:40:57.632traceyii\web\UrlManager::parseRequestNo matching URL rules. Using default URL parsing logic.
11:40:57.632traceyii\web\Application::handleRequestRoute requested: 'vue/erp-sales-outbound/save-new'
11:40:57.632traceyii\base\Module::getModuleLoading module: vue
11:40:57.633infoyii\web\Session::openSession started
11:40:57.633infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
11:40:57.633infoyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
11:40:57.638traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.638traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.638infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
11:40:57.639traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.640traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.640infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:40:57.641traceyii\base\Controller::runActionRoute to run: vue/erp-sales-outbound/save-new
11:40:57.642traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.643traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: Admin
11:40:57.643traceyii\base\InlineAction::runWithParamsRunning action: app\modules\vue\controllers\ErpSalesOutboundController::actionSaveNew()
11:40:57.643traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'id' in 'app\models\ErpSalesOutbounds'.
11:40:57.643traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.644traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.644traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'client_name' in 'app\models\ErpSalesOutbounds'.
11:40:57.644traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erpSalesOutboundVerifyRels' in 'app\models\ErpSalesOutbounds'.
11:40:57.644traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erp_store_name' in 'app\models\ErpSalesOutbounds'.
11:40:57.644traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erpSalesOutboundProducts' in 'app\models\ErpSalesOutbounds'.
11:40:57.644traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'files' in 'app\models\ErpSalesOutbounds'.
11:40:57.644traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.644traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.645infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE ("created_at" >= '2025-12-19 00:00:00') AND ("created_at" <= '2025-12-19 23:59:59') AND ("serial_no" ILIKE '%XSCKD-20251219-%') AND (LENGTH(serial_no) = 20) ORDER BY "serial_no" DESC
11:40:57.646infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "serial_no"='XSCKD-20251219-00001')
11:40:57.647infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001')
11:40:57.648infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661')
11:40:57.649infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4048')
11:40:57.649infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1')
11:40:57.650infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)
11:40:57.650infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1620')
11:40:57.652infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "id"=1980
11:40:57.653infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1774
11:40:57.653infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id"=1980
11:40:57.654infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "id"=1981
11:40:57.654infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2166
11:40:57.655infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id"=1981
11:40:57.655infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1774 GROUP BY "id"
11:40:57.656infoyii\db\Command::querySELECT "product_id", sum(outbound) as outbound, sum(number) as number, sum(inventory) as inventory, avg(actual_amount) as avg_amount, avg(actual_amount * inventory) as avg_total_amount, sum(actual_amount * inventory) as amount FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=1774 GROUP BY "product_id"
11:40:57.656infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2166 GROUP BY "id"
11:40:57.657infoyii\db\Command::querySELECT "product_id", sum(outbound) as outbound, sum(number) as number, sum(inventory) as inventory, avg(actual_amount) as avg_amount, avg(actual_amount * inventory) as avg_total_amount, sum(actual_amount * inventory) as amount FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2166 GROUP BY "product_id"
11:40:57.657infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_outbounds" ("client_id", "erp_send_type_id", "handler", "project_id", "wrote_date", "serial_no", "abstract", "description", "erp_store_id", "erp_sales_order_id", "created_by", "created_at", "verify_type", "status", "is_resubmitted", "outbound_status") VALUES (1661, NULL, 1001, 4048, '2025-12-19', 'XSCKD-20251219-00001', NULL, NULL, 1, 1620, 1001, 'now()', 2, 1, FALSE, FALSE) RETURNING "id"
11:40:57.662traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.662traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.662infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutbounds', 76, 'a:31:{s:2:"id";i:76;s:9:"serial_no";s:20:"XSCKD-20251219-00001";s:9:"from_date";N;s:10:"wrote_date";s:10:"2025-12-19";s:7:"handler";s:4:"1001";s:18:"erp_sales_order_id";s:4:"1620";s:9:"client_id";s:4:"1661";s:10:"project_id";s:4:"4048";s:12:"erp_store_id";s:1:"1";s:6:"status";i:1;s:16:"erp_send_type_id";s:0:"";s:8:"abstract";N;s:11:"description";N;s:11:"verify_type";s:1:"2";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";b:0;s:6:"number";N;s:6:"amount";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:15:"outbound_status";b:0;s:9:"is_settle";N;s:7:"is_used";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"print_times";N;s:20:"is_sales_order_ready";N;}', '', 1001, '223.72.15.22')
11:40:57.664infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20012) AND ("object_id"=76)
11:40:57.666infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE "erp_sales_outbound_id"=76
11:40:57.666traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.667infoyii\db\Command::querySELECT 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_verify_rels' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:40:57.671infoyii\db\Command::queryselect 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_verify_rels' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:40:57.679traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.680traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:40:57.680infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" ("erp_sales_outbound_id", "user_id", "status") VALUES (76, 1001, 0), (76, 1000, 0), (76, 5250, 0), (76, 5016, 0), (76, 5064, 0)
11:40:57.683traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.683traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.684infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_products" ("erp_sales_outbound_id", "erp_sales_order_id", "erp_sales_order_product_id", "erp_store_id", "product_id", "number", "amount", "total_amount", "description", "hardware_from", "hardware_to", "software_from", "software_to", "maintenance_from", "maintenance_to") VALUES (76, 1620, 1980, 1, 1774, '1', '5345', '5345.00', '', NULL, NULL, NULL, NULL, NULL, NULL) RETURNING "id"
11:40:57.687infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutboundProducts', 166, 'a:17:{s:2:"id";i:166;s:21:"erp_sales_outbound_id";i:76;s:18:"erp_sales_order_id";s:4:"1620";s:26:"erp_sales_order_product_id";s:4:"1980";s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:4:"1774";s:11:"description";s:0:"";s:8:"outbound";N;s:6:"number";s:1:"1";s:6:"amount";s:4:"5345";s:12:"total_amount";s:7:"5345.00";s:13:"hardware_from";s:0:"";s:13:"software_from";s:0:"";s:16:"maintenance_from";s:0:"";s:11:"hardware_to";s:0:"";s:11:"software_to";s:0:"";s:14:"maintenance_to";s:0:"";}', '', 1001, '223.72.15.22')
11:40:57.689traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.689infoyii\db\Command::querySELECT 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:40:57.693infoyii\db\Command::queryselect 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:40:57.707traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.708traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:40:57.714infoyii\db\Command::querySELECT 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_purchase_gifts" "epgs" ON epgs.id = eip.erp_purchase_gift_id WHERE (eip.inventory > 0) AND ("eip"."product_id"='1774') GROUP BY "eip"."id" ORDER BY eip.wrote_date ASC, eip.created_at ASC
11:40:57.724traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.725traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.725infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='45' WHERE "id"=230
11:40:57.727infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:1:{s:9:"inventory";d:45;}', '', 1001, '223.72.15.22')
11:40:57.728infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_spent_products" ("erp_sales_outbound_id", "erp_sales_outbound_product_id", "erp_inventory_product_id", "product_id", "number", "amount", "total_amount") VALUES (76, 166, 230, 1774, '1', '5345', '5345') RETURNING "id"
11:40:57.733infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutboundSpentProducts', 220, 'a:12:{s:2:"id";i:220;s:21:"erp_sales_outbound_id";i:76;s:29:"erp_sales_outbound_product_id";i:166;s:24:"erp_inventory_product_id";i:230;s:10:"product_id";s:4:"1774";s:11:"description";N;s:6:"number";s:1:"1";s:6:"amount";s:4:"5345";s:12:"total_amount";d:5345;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;}', '', 1001, '223.72.15.22')
11:40:57.734infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_products" ("erp_sales_outbound_id", "erp_sales_order_id", "erp_sales_order_product_id", "erp_store_id", "product_id", "number", "amount", "total_amount", "description", "hardware_from", "hardware_to", "software_from", "software_to", "maintenance_from", "maintenance_to") VALUES (76, 1620, 1981, 1, 2166, '1', '4554', '4554.00', '', NULL, NULL, NULL, NULL, NULL, NULL) RETURNING "id"
11:40:57.735infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutboundProducts', 167, 'a:17:{s:2:"id";i:167;s:21:"erp_sales_outbound_id";i:76;s:18:"erp_sales_order_id";s:4:"1620";s:26:"erp_sales_order_product_id";s:4:"1981";s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:4:"2166";s:11:"description";s:0:"";s:8:"outbound";N;s:6:"number";s:1:"1";s:6:"amount";s:4:"4554";s:12:"total_amount";s:7:"4554.00";s:13:"hardware_from";s:0:"";s:13:"software_from";s:0:"";s:16:"maintenance_from";s:0:"";s:11:"hardware_to";s:0:"";s:11:"software_to";s:0:"";s:14:"maintenance_to";s:0:"";}', '', 1001, '223.72.15.22')
11:40:57.737infoyii\db\Command::querySELECT 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_purchase_gifts" "epgs" ON epgs.id = eip.erp_purchase_gift_id WHERE (eip.inventory > 0) AND ("eip"."product_id"='2166') GROUP BY "eip"."id" ORDER BY eip.wrote_date ASC, eip.created_at ASC
11:40:57.740infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='1' WHERE "id"=227
11:40:57.741infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:1:{s:9:"inventory";s:1:"2";}', '', 1001, '223.72.15.22')
11:40:57.742infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_spent_products" ("erp_sales_outbound_id", "erp_sales_outbound_product_id", "erp_inventory_product_id", "product_id", "number", "amount", "total_amount") VALUES (76, 167, 227, 2166, '1', '4554', '4554') RETURNING "id"
11:40:57.743infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutboundSpentProducts', 221, 'a:12:{s:2:"id";i:221;s:21:"erp_sales_outbound_id";i:76;s:29:"erp_sales_outbound_product_id";i:167;s:24:"erp_inventory_product_id";i:227;s:10:"product_id";s:4:"2166";s:11:"description";N;s:6:"number";s:1:"1";s:6:"amount";s:4:"4554";s:12:"total_amount";d:4554;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;}', '', 1001, '223.72.15.22')
11:40:57.744infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE ("status"=0) AND ("erp_sales_outbound_id"=76) ORDER BY "id"
11:40:57.745infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_outbounds" SET "amount"='9899', "number"='2', "next_verify_user"=1001 WHERE "id"=76
11:40:57.746infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOutbounds', 76, 'a:1:{s:6:"amount";d:9899;}', '', 1001, '223.72.15.22')
11:40:57.747infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id" IN (230, 227)
11:40:57.748infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.749infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.749infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.750infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.750infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='46' WHERE "id"=230
11:40:57.751infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:1:{s:9:"inventory";d:46;}', '', 1001, '223.72.15.22')
11:40:57.753infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=178
11:40:57.756traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.756infoyii\db\Command::querySELECT 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_purchase_inbound_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:40:57.761infoyii\db\Command::queryselect 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_purchase_inbound_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:40:57.777traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.778traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:40:57.778infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='46' WHERE "id"=178
11:40:57.782infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 178, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.788traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.788traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.789infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=91
11:40:57.791infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:40:57.793infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:40:57.797infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:40:57.806infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.809infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.810infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.810infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.811infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='2' WHERE "id"=227
11:40:57.815infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:1:{s:9:"inventory";d:2;}', '', 1001, '223.72.15.22')
11:40:57.819infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=172
11:40:57.820infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='2' WHERE "id"=172
11:40:57.828infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 172, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.838infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=88
11:40:57.839infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:40:57.840infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:40:57.840infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:40:57.840infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=76
11:40:57.841infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_id"=76
11:40:57.842infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_outbound_id"=76
11:40:57.842infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id" IN (166, 167)
11:40:57.843infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_id"=76
11:40:57.843infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=220
11:40:57.844traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.844traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.844infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=230
11:40:57.845infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_sales_outbound_id", "wrote_date", "erp_sales_outbound_spent_product_id", "erp_inventory_product_id", "actual_amount", "amount", "outbound", "total_amount", "sales_outbound", "actual_total_amount") VALUES (76, '2025-12-19', 220, 230, '80', '5345', '1', '5345', '1', '80') RETURNING "id"
11:40:57.859infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpInventoryProductSpents', 326, 'a:25:{s:2:"id";i:326;s:21:"erp_purchase_order_id";N;s:23:"erp_purchase_inbound_id";N;s:24:"erp_inventory_product_id";i:230;s:10:"wrote_date";s:10:"2025-12-19";s:13:"actual_amount";s:2:"80";s:19:"actual_total_amount";d:80;s:8:"outbound";d:1;s:6:"amount";s:4:"5345";s:12:"total_amount";d:5345;s:13:"lost_outbound";N;s:29:"erp_inventory_lost_product_id";N;s:21:"erp_inventory_lost_id";N;s:22:"erp_inventory_start_id";N;s:22:"erp_inventory_build_id";N;s:20:"build_spent_outbound";N;s:36:"erp_inventory_build_spent_product_id";N;s:28:"erp_inventory_build_spent_id";N;s:14:"sales_outbound";d:1;s:35:"erp_sales_outbound_spent_product_id";i:220;s:21:"erp_sales_outbound_id";i:76;s:20:"erp_purchase_gift_id";N;s:19:"sales_gift_outbound";N;s:31:"erp_sales_gift_spent_product_id";N;s:17:"erp_sales_gift_id";N;}', '', 1001, '223.72.15.22')
11:40:57.860infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=221
11:40:57.861infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=227
11:40:57.862infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_sales_outbound_id", "wrote_date", "erp_sales_outbound_spent_product_id", "erp_inventory_product_id", "actual_amount", "amount", "outbound", "total_amount", "sales_outbound", "actual_total_amount") VALUES (76, '2025-12-19', 221, 227, '500', '4554', '1', '4554', '1', '500') RETURNING "id"
11:40:57.863infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpInventoryProductSpents', 327, 'a:25:{s:2:"id";i:327;s:21:"erp_purchase_order_id";N;s:23:"erp_purchase_inbound_id";N;s:24:"erp_inventory_product_id";i:227;s:10:"wrote_date";s:10:"2025-12-19";s:13:"actual_amount";s:3:"500";s:19:"actual_total_amount";d:500;s:8:"outbound";d:1;s:6:"amount";s:4:"4554";s:12:"total_amount";d:4554;s:13:"lost_outbound";N;s:29:"erp_inventory_lost_product_id";N;s:21:"erp_inventory_lost_id";N;s:22:"erp_inventory_start_id";N;s:22:"erp_inventory_build_id";N;s:20:"build_spent_outbound";N;s:36:"erp_inventory_build_spent_product_id";N;s:28:"erp_inventory_build_spent_id";N;s:14:"sales_outbound";d:1;s:35:"erp_sales_outbound_spent_product_id";i:221;s:21:"erp_sales_outbound_id";i:76;s:20:"erp_purchase_gift_id";N;s:19:"sales_gift_outbound";N;s:31:"erp_sales_gift_spent_product_id";N;s:17:"erp_sales_gift_id";N;}', '', 1001, '223.72.15.22')
11:40:57.864infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_outbounds" SET "is_used"=FALSE WHERE "id"=76
11:40:57.865infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOutbounds', 76, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.866traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.869traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.869infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id" IN (1774, 2166)
11:40:57.871infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=230
11:40:57.871infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.872infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.872infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.872infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.873infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='5', "inventory"='45', "sales_outbound"='5' WHERE "id"=230
11:40:57.874infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:3:{s:8:"outbound";s:1:"5";s:9:"inventory";d:45;s:14:"sales_outbound";s:1:"5";}', '', 1001, '223.72.15.22')
11:40:57.875infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=178
11:40:57.875infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='45', "sales_outbound"='5' WHERE "id"=178
11:40:57.877infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 178, 'a:2:{s:9:"inventory";d:45;s:14:"sales_outbound";s:1:"5";}', '', 1001, '223.72.15.22')
11:40:57.878infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=91
11:40:57.879infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:40:57.879infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:40:57.880infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:40:57.881infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type'
11:40:57.881traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.882infoyii\db\Command::querySELECT 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_settings' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:40:57.886infoyii\db\Command::queryselect 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_settings' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:40:57.898traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.898traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:40:57.898infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point'
11:40:57.899infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='3600' WHERE "id"=230
11:40:57.900infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:1:{s:19:"actual_total_amount";d:3600;}', '', 1001, '223.72.15.22')
11:40:57.901infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=227
11:40:57.902infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.902infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.903infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.903infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.904infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='2', "inventory"='1', "sales_outbound"='2' WHERE "id"=227
11:40:57.905infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.906infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=172
11:40:57.906infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='1', "sales_outbound"='2' WHERE "id"=172
11:40:57.907infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 172, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.909infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=88
11:40:57.910infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:40:57.910infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:40:57.910infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:40:57.911infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type'
11:40:57.911infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point'
11:40:57.912infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='500' WHERE "id"=227
11:40:57.913infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:1:{s:19:"actual_total_amount";s:4:"1000";}', '', 1001, '223.72.15.22')
11:40:57.914infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1620'
11:40:57.914traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.915traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.915infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1620
11:40:57.916traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.916traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.916infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id" IN (1979, 1980, 1981)
11:40:57.917infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id" IN (69, 70, 71, 76)
11:40:57.917infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id" IN (159, 160, 161, 166, 167)
11:40:57.918infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_outbound_spent_product_id" IN (213, 214, 215, 220, 221)
11:40:57.919traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.919traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.919infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_returns" WHERE "id"=2
11:40:57.920traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.920traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.920infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='0' WHERE "id"=1979
11:40:57.922infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1979, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.923infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4253
11:40:57.924traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.924traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.925infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "erp_sales_order_product_id"=1979
11:40:57.926traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.926traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.926infoyii\db\Command::querySELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_outbound_products" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON r.erp_sales_outbound_id = t.id WHERE ("r"."erp_sales_order_product_id"=1979) AND ("t"."status" IN (2, 5, 1))
11:40:57.927infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=161
11:40:57.928infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=215
11:40:57.928infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_project_product_rels" SET "total_cost"='0' WHERE "id"=11043
11:40:57.930infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectProductRels', 11043, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.931infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "total_cost"='0' WHERE "id"=1979
11:40:57.932infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1979, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.933infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='1' WHERE "id"=1980
11:40:57.934infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1980, 'a:1:{s:8:"outbound";s:1:"0";}', '', 1001, '223.72.15.22')
11:40:57.935infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "erp_sales_order_product_id"=1980
11:40:57.936infoyii\db\Command::querySELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_outbound_products" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON r.erp_sales_outbound_id = t.id WHERE ("r"."erp_sales_order_product_id"=1980) AND ("t"."status" IN (2, 5, 1))
11:40:57.937infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=166
11:40:57.937infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=220
11:40:57.938infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_project_product_rels" SET "cost"='80', "total_cost"='80' WHERE "id"=11044
11:40:57.939infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectProductRels', 11044, 'a:2:{s:4:"cost";d:80;s:10:"total_cost";d:80;}', '', 1001, '223.72.15.22')
11:40:57.940infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "cost"='80', "total_cost"='80' WHERE "id"=1980
11:40:57.941infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1980, 'a:2:{s:4:"cost";d:80;s:10:"total_cost";d:80;}', '', 1001, '223.72.15.22')
11:40:57.942infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='1' WHERE "id"=1981
11:40:57.942infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1981, 'a:1:{s:8:"outbound";s:1:"0";}', '', 1001, '223.72.15.22')
11:40:57.943infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "erp_sales_order_product_id"=1981
11:40:57.944infoyii\db\Command::querySELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_outbound_products" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON r.erp_sales_outbound_id = t.id WHERE ("r"."erp_sales_order_product_id"=1981) AND ("t"."status" IN (2, 5, 1))
11:40:57.945infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=167
11:40:57.945infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=221
11:40:57.945infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_project_product_rels" SET "cost"='500', "total_cost"='500' WHERE "id"=11045
11:40:57.946infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectProductRels', 11045, 'a:2:{s:4:"cost";d:500;s:10:"total_cost";d:500;}', '', 1001, '223.72.15.22')
11:40:57.947infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "cost"='500', "total_cost"='500' WHERE "id"=1981
11:40:57.948infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1981, 'a:2:{s:4:"cost";d:500;s:10:"total_cost";d:500;}', '', 1001, '223.72.15.22')
11:40:57.949infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "is_used"=TRUE WHERE "id"=1620
11:40:57.950infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1620, 'a:1:{s:7:"is_used";b:1;}', '', 1001, '223.72.15.22')
11:40:57.951infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 4253, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.952infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661
11:40:57.953traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.953traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.953infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048
11:40:57.954traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.954traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.954infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id" IN (230, 227)
11:40:57.954infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.955infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.955infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.955infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
11:40:57.955infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='45' WHERE "id"=230
11:40:57.956infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.957infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=178
11:40:57.957infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='45' WHERE "id"=178
11:40:57.958infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 178, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.959infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=91
11:40:57.960infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:40:57.960infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:40:57.960infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:40:57.960infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.961infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.961infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.961infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227
11:40:57.962infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='1' WHERE "id"=227
11:40:57.962infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.963infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=172
11:40:57.964infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='1' WHERE "id"=172
11:40:57.964infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 172, 'a:0:{}', '', 1001, '223.72.15.22')
11:40:57.965infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=88
11:40:57.966infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:40:57.966infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:40:57.966infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:40:57.967infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:40:57.967infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE ("status"=0) AND ("erp_sales_outbound_id"=76) ORDER BY "id"
11:40:57.968infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE ("status"=0) AND ("erp_sales_outbound_id"=76) ORDER BY "id"
11:40:57.968infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:40:57.969traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.969traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.969infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 76, 20008, 1001, '2025-12-19 11:40:57', '{"id":76,"serial_no":"XSCKD-20251219-00001","from_date":null,"wrote_date":"2025-12-19","handler":1001,"erp_sales_order_id":1620,"client_id":1661,"project_id":4048,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"9899","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-12-19 11:40:57","updated_at":"2025-12-19 11:40:57","print_times":null,"is_sales_order_ready":false}', '{"id":76,"serial_no":"XSCKD-20251219-00001","from_date":null,"wrote_date":"2025-12-19","handler":1001,"erp_sales_order_id":1620,"client_id":1661,"project_id":4048,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"9899","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-12-19 11:40:57","updated_at":"2025-12-19 11:40:57","print_times":null,"is_sales_order_ready":false}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u51fa\u5e93\u5355\u7533\u8bf7","d4":[]}') RETURNING "id"
11:40:57.970infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 591562, 'a:13:{s:2:"id";i:591562;s:9:"object_id";i:76;s:11:"object_type";i:20008;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:647:"{"id":76,"serial_no":"XSCKD-20251219-00001","from_date":null,"wrote_date":"2025-12-19","handler":1001,"erp_sales_order_id":1620,"client_id":1661,"project_id":4048,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"9899","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-12-19 11:40:57","updated_at":"2025-12-19 11:40:57","print_times":null,"is_sales_order_ready":false}";s:9:"new_value";s:647:"{"id":76,"serial_no":"XSCKD-20251219-00001","from_date":null,"wrote_date":"2025-12-19","handler":1001,"erp_sales_order_id":1620,"client_id":1661,"project_id":4048,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"9899","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-12-19 11:40:57","updated_at":"2025-12-19 11:40:57","print_times":null,"is_sales_order_ready":false}";s:11:"description";s:111:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u51fa\u5e93\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-12-19 11:40:57";s:9:"is_delete";N;}', '', 1001, '223.72.15.22')
11:40:57.971traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.971traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.972infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-12-19')
11:40:57.975traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.976traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:40:57.976infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=71, "last_visit_at"='now()' WHERE "id"=59605
11:40:57.977infoyii\db\Command::queryINSERT 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/save-new', '{"ErpSalesOutbounds":{"id":"","client_id":"1661","client_name":"\u5317\u4eac\u7f51\u4fe1\u5143\u79d1\u6280\u6709\u9650\u516c\u53f8","erp_send_type_id":"","handler":"1001","project_id":"4048","wrote_date":"2025-12-19","serial_no":"XSCKD-20251219-00001","erpSalesOutboundVerifyRels":["1001","1000","5250","5016","5064"],"abstract":"","description":"","erp_store_id":"1","erp_store_name":"\u62d3\u5b9e\u4ed3\u5e93","erp_sales_order_id":"1620","erpSalesOutboundProducts":{"new":[{"product_id":"1774","number":"1","amount":"5345","total_amount":"5345.00","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erp_sales_order_product_id":"1980","erp_store_id":"1","is_check":"0","erpSalesOutboundSpentProducts":""},{"product_id":"2166","number":"1","amount":"4554","total_amount":"4554.00","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erp_sales_order_product_id":"1981","erp_store_id":"1","is_check":"0","erpSalesOutboundSpentProducts":""}]},"files":""},"web_access_token":"yb8YvQDqCxvGUQWSJnYL2S9XtkD7pVRr"}', '{"code":2000,"result":{"id":76},"status":1,"msg":[{"name":"success","success":"\u65b0\u9500\u552e\u51fa\u5e93\u5355\u5df2\u521b\u5efa\u6210\u529f","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-19 11:40:57') RETURNING "id"
11:40:57.978traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:40:57.978traceyii\redis\Connection::executeCommandExecuting Redis Command: SET