All Latest
6a20effb1e9d1: POST https://beta.jinchangxiao.com/vue/erp-inventory-lost/save-edit at 2026-06-04 11:24:43 am by 221.216.117.119

Log Messages

总计199条数据
TimeLevelCategoryMessage
 
11:24:43.125traceyii\base\Application::bootstrapBootstrap with yii\log\Dispatcher
11:24:43.125traceyii\base\Module::getModuleLoading module: debug
11:24:43.125traceyii\base\Application::bootstrapBootstrap with yii\debug\Module::bootstrap()
11:24:43.125traceyii\redis\Connection::openOpening redis DB connection: redis.server.local:6379, database=1
11:24:43.125traceyii\redis\Connection::executeCommandExecuting Redis Command: SELECT
11:24:43.125traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.125infotime tracing start1780543483125889024
11:24:43.126traceyii\web\UrlManager::parseRequestNo matching URL rules. Using default URL parsing logic.
11:24:43.126traceyii\web\Application::handleRequestRoute requested: 'vue/erp-inventory-lost/save-edit'
11:24:43.126traceyii\base\Module::getModuleLoading module: vue
11:24:43.126infoyii\web\Session::openSession started
11:24:43.126infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
11:24:43.126infoyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
11:24:43.127traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.128traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.128traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.128traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.128infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:24:43.129traceyii\base\Controller::runActionRoute to run: vue/erp-inventory-lost/save-edit
11:24:43.129traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.130traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: Admin
11:24:43.130traceyii\base\InlineAction::runWithParamsRunning action: app\modules\vue\controllers\ErpInventoryLostController::actionSaveEdit()
11:24:43.130infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_losts" WHERE "id"='8'
11:24:43.130traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.130traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.131infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_lost_verify_rels" WHERE ("status" != 0) AND ("erp_inventory_lost_id"=8) ORDER BY "id"
11:24:43.131traceuranus\rbac\DbManager::checkAccessFromCacheChecking permission: updateErpInventoryLost
11:24:43.131traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: StoreKeeper
11:24:43.131traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: Admin
11:24:43.132traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'id' in 'app\models\ErpInventoryLosts'.
11:24:43.132traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erpInventoryLostVerifyRels' in 'app\models\ErpInventoryLosts'.
11:24:43.132traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erp_store_name' in 'app\models\ErpInventoryLosts'.
11:24:43.132traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erpInventoryLostProducts' in 'app\models\ErpInventoryLosts'.
11:24:43.132traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'files' in 'app\models\ErpInventoryLosts'.
11:24:43.132infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_erp_inventory_losts" WHERE "serial_no"='BSD-20260604-00001' LIMIT 2
11:24:43.132infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001')
11:24:43.133infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1')
11:24:43.133infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)
11:24:43.134infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_losts" WHERE ("created_at" >= '2026-06-04 00:00:00') AND ("created_at" <= '2026-06-04 23:59:59') AND ("serial_no" ILIKE '%BSD-20260604-%') AND (LENGTH(serial_no) = 18) ORDER BY "serial_no" DESC
11:24:43.134infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_lost_products" WHERE "erp_inventory_lost_id"=8
11:24:43.135traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.135infoyii\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_lost_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:24:43.138infoyii\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_lost_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:24:43.152traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.152traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.152traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.152traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.152infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=508
11:24:43.153traceyii\db\Transaction::beginBegin transaction
11:24:43.153infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:24:43.154traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.154infoyii\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_object_change_logs' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:24:43.157infoyii\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_object_change_logs' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:24:43.167traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.168traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.168infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'serial_no', 8, 20004, 1001, 'now()', '["BSD-20260604-00001"]', '[null]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u7f16\u53f7","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> BSD-20260604-00001"]}'), (2, 'wrote_date', 8, 20004, 1001, 'now()', '["2026-06-04"]', '["2026-04-30"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5f55\u5355\u65e5\u671f","d4":["2026-04-30 <b>\u53d8\u4e3a<\/b> 2026-06-04"]}')
11:24:43.176infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_losts" SET "serial_no"='BSD-20260604-00001', "wrote_date"='2026-06-04', "handler"=1001, "erp_store_id"=1, "status"=1, "created_at"='now()' WHERE "id"=8
11:24:43.180traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.180traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.180infoyii\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\ErpInventoryLosts', 8, 'a:2:{s:10:"wrote_date";s:10:"2026-06-04";s:9:"serial_no";s:18:"BSD-20260604-00001";}', '', 1001, '221.216.117.119')
11:24:43.181infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_losts" WHERE "id"=8
11:24:43.181infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:24:43.181infoyii\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', 8, 20004, 1001, '2026-06-04 11:24:43', '{"id":8,"serial_no":"BSD-20260604-00001","from_date":null,"wrote_date":"2026-06-04","handler":1001,"supplier_id":null,"erp_store_id":1,"status":1,"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":"0","amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2026-06-04 11:24:43","updated_at":"2026-04-30 13:40:05","print_times":null}', '{"id":8,"serial_no":"BSD-20260604-00001","from_date":null,"wrote_date":"2026-06-04","handler":1001,"supplier_id":null,"erp_store_id":1,"status":1,"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":"0","amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2026-06-04 11:24:43","updated_at":"2026-04-30 13:40:05","print_times":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u62a5\u635f\u5355\u7533\u8bf7","d4":[]}') RETURNING "id"
11:24:43.183infoyii\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', 641078, 'a:13:{s:2:"id";i:641078;s:9:"object_id";i:8;s:11:"object_type";i:20004;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:506:"{"id":8,"serial_no":"BSD-20260604-00001","from_date":null,"wrote_date":"2026-06-04","handler":1001,"supplier_id":null,"erp_store_id":1,"status":1,"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":"0","amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2026-06-04 11:24:43","updated_at":"2026-04-30 13:40:05","print_times":null}";s:9:"new_value";s:506:"{"id":8,"serial_no":"BSD-20260604-00001","from_date":null,"wrote_date":"2026-06-04","handler":1001,"supplier_id":null,"erp_store_id":1,"status":1,"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":"0","amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2026-06-04 11:24:43","updated_at":"2026-04-30 13:40:05","print_times":null}";s:11:"description";s:99:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u62a5\u635f\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-04 11:24:43";s:9:"is_delete";N;}', '', 1001, '221.216.117.119')
11:24:43.184infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20008) AND ("object_id"=8)
11:24:43.186infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20008) AND ("object_id"=8)
11:24:43.188infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_lost_verify_rels" WHERE "erp_inventory_lost_id"=8 ORDER BY "id"
11:24:43.188traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.188infoyii\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_lost_verify_rels' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:24:43.191infoyii\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_lost_verify_rels' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:24:43.202traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.202traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.202infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_erp_inventory_lost_verify_rels" WHERE "erp_inventory_lost_id"=8
11:24:43.203infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_erp_inventory_lost_verify_rels" ("erp_inventory_lost_id", "user_id", "status") VALUES (8, 1001, 0)
11:24:43.207infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_lost_carbon_copy_rels" WHERE "erp_inventory_lost_id"=8
11:24:43.207infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_erp_inventory_lost_carbon_copy_rels" WHERE "erp_inventory_lost_id"=8
11:24:43.207traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.207infoyii\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_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:24:43.210infoyii\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_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:24:43.235traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.236traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.236infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2171
11:24:43.236infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_lost_product_sns" WHERE "erp_inventory_lost_product_id"=19
11:24:43.237infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"='2177'
11:24:43.237infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:24:43.238infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'erpInventoryLostProducts', 8, 20004, 1001, 'now()', '[["\u6df1\u4fe1\u670dSDDC\u57fa\u7840\u8fd0\u7ef4\u8f6f\u4ef6V1.0:\u6570\u91cf 1 \u91d1\u989d 232323\u5143\u672a\u8bbe\u7f6e SN:\u672a\u8bbe\u7f6e"]]', '[["\u91d1\u7545\u900dCRM\u8f6f\u4ef6\u670d\u52a1:\u6570\u91cf \u91d1\u989d \u5143 SN:\u672a\u8bbe\u7f6e"]]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u4ea7\u54c1\u660e\u7ec6","d4":["\u91d1\u7545\u900dCRM\u8f6f\u4ef6\u670d\u52a1:\u6570\u91cf \u91d1\u989d \u5143 SN:\u672a\u8bbe\u7f6e; <b>\u53d8\u4e3a<\/b> \u6df1\u4fe1\u670dSDDC\u57fa\u7840\u8fd0\u7ef4\u8f6f\u4ef6V1.0:\u6570\u91cf 1 \u91d1\u989d 232323\u5143\u672a\u8bbe\u7f6e SN:\u672a\u8bbe\u7f6e;"]}')
11:24:43.239infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_erp_inventory_lost_products" WHERE "erp_inventory_lost_id"=8
11:24:43.239infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_inventory_lost_products" ("erp_inventory_lost_id", "erp_inventory_product_id", "product_id", "amount", "total_amount", "number", "description") VALUES (8, 508, 2177, '232323', '232323.00', '1', '') RETURNING "id"
11:24:43.241infoyii\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\ErpInventoryLostProducts', 20, 'a:8:{s:2:"id";i:20;s:21:"erp_inventory_lost_id";i:8;s:24:"erp_inventory_product_id";s:3:"508";s:10:"product_id";s:4:"2177";s:11:"description";s:0:"";s:6:"number";s:1:"1";s:6:"amount";d:232323;s:12:"total_amount";s:9:"232323.00";}', '', 1001, '221.216.117.119')
11:24:43.242infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_erp_inventory_lost_products" WHERE "id"=19
11:24:43.246infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_losts" SET "number"='1', "amount"='232323' WHERE "id"=8
11:24:43.247infoyii\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\ErpInventoryLosts', 8, 'a:2:{s:6:"number";s:1:"0";s:6:"amount";d:232323;}', '', 1001, '221.216.117.119')
11:24:43.248infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_lost_verify_rels" WHERE ("erp_inventory_lost_id"=8) AND ("status"=0) ORDER BY "id"
11:24:43.248infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_losts" SET "updated_at"='now()' WHERE "id"=8
11:24:43.249infoyii\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\ErpInventoryLosts', 8, 'a:0:{}', '', 1001, '221.216.117.119')
11:24:43.249infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_losts" WHERE "id"=8
11:24:43.251infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE 0=1
11:24:43.254infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_lost_id"=8
11:24:43.258infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_lost_id"=8
11:24:43.258infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_lost_products" WHERE "erp_inventory_lost_id"=8
11:24:43.258infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=508
11:24:43.259traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.261infoyii\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_product_spents' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:24:43.267infoyii\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_product_spents' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:24:43.306traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.306traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.306infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_inventory_lost_id", "wrote_date", "erp_inventory_lost_product_id", "erp_inventory_product_id", "outbound", "amount", "total_amount", "lost_outbound", "actual_amount", "actual_total_amount") VALUES (8, '2026-06-04', 20, 508, '1', '232323', '232323', '1', '232323', '232323')
11:24:43.312infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id"=2177
11:24:43.313infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=508
11:24:43.314infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.314infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.315infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.315infoyii\db\Command::querySELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.316infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.316infoyii\db\Command::querySELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.317infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='1', "inventory"='0', "lost_outbound"='1', "build_spent_outbound"='0', "sales_outbound"='0', "sales_gift_outbound"='0', "disassemble_spent_outbound"='0' WHERE "id"=508
11:24:43.317infoyii\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', 508, 'a:0:{}', '', 1001, '221.216.117.119')
11:24:43.319infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1
11:24:43.321infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:24:43.323infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:24:43.326infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1
11:24:43.327infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:24:43.330infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE "id"=12
11:24:43.332traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.332infoyii\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_overflow_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:24:43.337infoyii\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_overflow_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:24:43.354traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.354traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.354infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_overflow_products" SET "inventory"='0', "lost_outbound"='1', "build_spent_outbound"='0', "disassemble_spent_outbound"='0', "sales_outbound"='0', "sales_gift_outbound"='0' WHERE "id"=12
11:24:43.355infoyii\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\ErpInventoryOverflowProducts', 12, 'a:0:{}', '', 1001, '221.216.117.119')
11:24:43.355traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.355infoyii\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_overflows' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:24:43.359infoyii\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_overflows' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:24:43.373traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.373traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.373infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_overflows" SET "is_used"=TRUE WHERE "id"=8
11:24:43.375infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type'
11:24:43.378traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.378infoyii\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:24:43.381infoyii\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:24:43.392traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.392traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.392infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point'
11:24:43.393infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='0' WHERE "id"=508
11:24:43.394infoyii\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', 508, 'a:0:{}', '', 1001, '221.216.117.119')
11:24:43.394infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id" IN (487, '508')
11:24:43.395infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=487
11:24:43.395infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=487
11:24:43.396infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=487
11:24:43.396infoyii\db\Command::querySELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=487
11:24:43.397infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=487
11:24:43.397infoyii\db\Command::querySELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=487
11:24:43.398infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='0', "inventory"='1', "lost_outbound"='0', "build_spent_outbound"='0', "sales_outbound"='0', "sales_gift_outbound"='0', "disassemble_spent_outbound"='0' WHERE "id"=487
11:24:43.398infoyii\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', 487, 'a:0:{}', '', 1001, '221.216.117.119')
11:24:43.399infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1
11:24:43.399infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:24:43.399infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:24:43.400infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1
11:24:43.400infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE "id"=23
11:24:43.402traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.402infoyii\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_gift_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:24:43.407infoyii\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_gift_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:24:43.432traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.432traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.432infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_gift_products" SET "inventory"='1', "lost_outbound"='0', "build_spent_outbound"='0', "sales_outbound"='0', "sales_gift_outbound"='0', "disassemble_spent_outbound"='0' WHERE "id"=23
11:24:43.433infoyii\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\ErpPurchaseGiftProducts', 23, 'a:0:{}', '', 1001, '221.216.117.119')
11:24:43.433traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.433infoyii\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_gifts' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:24:43.439infoyii\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_gifts' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:24:43.475traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.475traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
11:24:43.475infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_gifts" SET "is_used"=FALSE WHERE "id"=21
11:24:43.476infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE 0=1
11:24:43.477infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.477infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.478infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.478infoyii\db\Command::querySELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.478infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.479infoyii\db\Command::querySELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=508
11:24:43.479infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='0', "build_spent_outbound"='0', "sales_outbound"='0', "sales_gift_outbound"='0', "disassemble_spent_outbound"='0' WHERE "id"=508
11:24:43.480infoyii\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', 508, 'a:0:{}', '', 1001, '221.216.117.119')
11:24:43.481infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1
11:24:43.481infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:24:43.482infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:24:43.482infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1
11:24:43.482infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:24:43.483infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE "id"=12
11:24:43.483infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_overflow_products" SET "inventory"='0', "build_spent_outbound"='0', "disassemble_spent_outbound"='0', "sales_outbound"='0', "sales_gift_outbound"='0' WHERE "id"=12
11:24:43.484infoyii\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\ErpInventoryOverflowProducts', 12, 'a:0:{}', '', 1001, '221.216.117.119')
11:24:43.484infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_overflows" SET "is_used"=TRUE WHERE "id"=8
11:24:43.485infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:24:43.486infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_lost_verify_rels" WHERE ("status"=0) AND ("erp_inventory_lost_id"=8) ORDER BY "id"
11:24:43.486infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_lost_verify_rels" WHERE ("status"=0) AND ("erp_inventory_lost_id"=8) ORDER BY "id"
11:24:43.487traceyii\db\Transaction::commitCommit transaction
11:24:43.488traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.488traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
11:24:43.489infoyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-inventory-lost/save-edit', '{"ErpInventoryLosts":{"id":"8","handler":"1001","wrote_date":"2026-06-04","serial_no":"BSD-20260604-00001","erpInventoryLostVerifyRels":["1001"],"abstract":"","description":"","erp_store_id":"1","erp_store_name":"\u62d3\u5b9e\u4ed3\u5e93","erpInventoryLostProducts":{"new":[{"product_id":"2177","number":"1","amount":"232323","total_amount":"232323.00","description":"","erp_purchase_order_id":"","erp_inventory_product_id":"508","sns":""}]},"files":""},"web_access_token":"RxNsgwK6AoRe247CZ3IJbk6VpAgcDvb0"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u62a5\u635f\u5355\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0,"ip":"221.216.117.119","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-04 11:24:43', 363106048) RETURNING "id"
11:24:43.490traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
11:24:43.490traceyii\redis\Connection::executeCommandExecuting Redis Command: SET