All Latest
6943618c353f6: POST https://beta.jinchangxiao.com/vue/sales-contract/save-new-return at 2025-12-18 10:06:04 am by 223.72.15.22

Log Messages

总计360条数据
TimeLevelCategoryMessage
 
10:06:04.217traceyii\base\Application::bootstrapBootstrap with yii\log\Dispatcher
10:06:04.217traceyii\base\Module::getModuleLoading module: debug
10:06:04.217traceyii\base\Application::bootstrapBootstrap with yii\debug\Module::bootstrap()
10:06:04.218traceyii\redis\Connection::openOpening redis DB connection: redis.server.local:6379, database=1
10:06:04.218traceyii\redis\Connection::executeCommandExecuting Redis Command: SELECT
10:06:04.218traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.218traceyii\base\Module::getModuleLoading module: gii
10:06:04.218traceyii\base\Application::bootstrapBootstrap with yii\gii\Module::bootstrap()
10:06:04.218traceyii\web\UrlManager::parseRequestNo matching URL rules. Using default URL parsing logic.
10:06:04.218traceyii\web\Application::handleRequestRoute requested: 'vue/sales-contract/save-new-return'
10:06:04.218traceyii\base\Module::getModuleLoading module: vue
10:06:04.219infoyii\web\Session::openSession started
10:06:04.219infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
10:06:04.219infoyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
10:06:04.224traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.224traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.224infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
10:06:04.225traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.225traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.225infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
10:06:04.227traceyii\base\Controller::runActionRoute to run: vue/sales-contract/save-new-return
10:06:04.227traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.228traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: Admin
10:06:04.228traceyii\base\InlineAction::runWithParamsRunning action: app\modules\vue\controllers\SalesContractController::actionSaveNewReturn()
10:06:04.229infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"='4253'
10:06:04.230traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.230traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.230traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.230traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'id' in 'app\models\SalesContracts'.
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'client_name' in 'app\models\SalesContracts'.
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'project_name' in 'app\models\SalesContracts'.
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'budget' in 'app\models\SalesContracts'.
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'returns_amount' in 'app\models\SalesContracts'.
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'returns_number' in 'app\models\SalesContracts'.
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erpSalesReturnProducts' in 'app\models\SalesContracts'.
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'salesContractPaymentCollectionRemindDates' in 'app\models\SalesContracts'.
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'salesContractPaymentCollectionRemindReceivers' in 'app\models\SalesContracts'.
10:06:04.232traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'salesSupplierRels' in 'app\models\SalesContracts'.
10:06:04.232infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "serial_no"='2025-12-17-001' LIMIT 2
10:06:04.233infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661')
10:06:04.234infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1')
10:06:04.234infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4048')
10:06:04.235infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)
10:06:04.235infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)
10:06:04.236infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048)
10:06:04.236traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.236traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.236infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "id"=215
10:06:04.237infoyii\db\Command::execute
10:06:04.237infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_sales_contracts" SET "client_id"=1661, "description"='', "updated_at"='now()', "contract_type"=1, "project_id"=4048, "expire_date"=NULL, "sla"='', "remind_ahead"='0 day', "expire_remind_ahead"='0 day', "including_tax"=TRUE, "is_settle"=FALSE, "is_deliver"=FALSE, "is_outbound"=TRUE WHERE "id"=4253
10:06:04.239traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.239traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.239infoyii\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:2:{s:12:"remind_ahead";s:5:"0 day";s:19:"expire_remind_ahead";s:5:"0 day";}', '', 1001, '223.72.15.22')
10:06:04.240infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661'
10:06:04.241traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.241traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.241infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4048'
10:06:04.242traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.242traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.242infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "contract_id"=4253
10:06:04.242infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "contract_id"=4253
10:06:04.244infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "project_id"=4048
10:06:04.250infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4253
10:06:04.250traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.250infoyii\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_sales_contract_payment_collection_remind_receivers' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
10:06:04.255infoyii\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_sales_contract_payment_collection_remind_receivers' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
10:06:04.263traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.263traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
10:06:04.264infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4253
10:06:04.265infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" ("contract_id", "user_id") VALUES (4253, 1001) RETURNING "id"
10:06:04.270infoyii\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\SalesContractPaymentCollectionRemindReceivers', 9203, 'a:3:{s:2:"id";i:9203;s:11:"contract_id";i:4253;s:7:"user_id";s:4:"1001";}', '', 1001, '223.72.15.22')
10:06:04.271infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4253
10:06:04.272infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4253
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'id' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.272traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'client_name' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'project_name' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'contract_type' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'signed_at' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'expire_date' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'expire_remind_ahead' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'budget' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'sla' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'is_outbound' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'is_deliver' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'remind_ahead' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'including_tax' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'returns_amount' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'returns_number' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erpSalesReturnProducts' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'salesContractPaymentCollectionRemindDates' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'salesContractPaymentCollectionRemindReceivers' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'payment_collection_remind_ahead' in 'app\models\ErpSalesReturns'.
10:06:04.272traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'salesSupplierRels' in 'app\models\ErpSalesReturns'.
10:06:04.273infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661'
10:06:04.273infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_returns" WHERE ("created_at" >= '2025-12-18 00:00:00') AND ("created_at" <= '2025-12-18 23:59:59') AND ("serial_no" LIKE '%XSTHD-20251218-%') AND (LENGTH(serial_no) = 20) ORDER BY "serial_no" DESC
10:06:04.274infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_sales_contracts" SET "is_verify"=TRUE WHERE "id"=4253
10:06:04.275infoyii\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')
10:06:04.276infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661'
10:06:04.276infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4048'
10:06:04.277infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4048'
10:06:04.278infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_projects" SET "is_verify"=TRUE WHERE "id"=4048
10:06:04.279infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4048) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1
10:06:04.281traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.281traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.281infoyii\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\Projects', 4048, 'a:0:{}', '', 1001, '223.72.15.22')
10:06:04.282infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661
10:06:04.283infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_returns" ("client_id", "project_id", "serial_no", "description", "is_settle", "handler", "verify_type", "created_by", "wrote_date", "created_at", "status") VALUES (1661, 4048, 'XSTHD-20251218-00001', '', FALSE, 1001, 2, 1001, '2025-12-18', 'now()', 1) RETURNING "id"
10:06:04.286infoyii\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\ErpSalesReturns', 2, 'a:26:{s:2:"id";i:2;s:9:"serial_no";s:20:"XSTHD-20251218-00001";s:9:"from_date";N;s:10:"wrote_date";s:10:"2025-12-18";s:7:"handler";i:1001;s:9:"client_id";s:4:"1661";s:10:"project_id";s:4:"4048";s:12:"erp_store_id";N;s:6:"status";i:1;s:8:"abstract";N;s:11:"description";s:0:"";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";N;s:6:"number";N;s:6:"amount";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:9:"is_settle";s:1:"0";s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"print_times";N;}', '', 1001, '223.72.15.22')
10:06:04.287traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.287infoyii\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_return_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
10:06:04.290infoyii\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_return_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
10:06:04.299traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.299traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
10:06:04.299infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"='215'
10:06:04.300traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.300traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.300infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_return_products" ("erp_sales_return_id", "erp_sales_outbound_spent_product_id", "product_id", "amount", "total_amount", "number", "description", "actual_amount", "total_actual_amount") VALUES (2, 215, 1774, '3333', '3333', '1', '', '80', '80') RETURNING "id"
10:06:04.303infoyii\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\ErpSalesReturnProducts', 2, 'a:11:{s:2:"id";i:2;s:24:"erp_inventory_product_id";N;s:19:"erp_sales_return_id";i:2;s:35:"erp_sales_outbound_spent_product_id";s:3:"215";s:10:"product_id";s:4:"1774";s:11:"description";s:0:"";s:6:"number";s:1:"1";s:6:"amount";s:4:"3333";s:12:"total_amount";s:4:"3333";s:13:"actual_amount";s:2:"80";s:19:"total_actual_amount";d:80;}', '', 1001, '223.72.15.22')
10:06:04.304infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_verify_rels" WHERE ("status"=0) AND ("erp_sales_return_id"=2) ORDER BY "id"
10:06:04.305infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" WHERE 0=1
10:06:04.306infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_returns" SET "amount"='3333', "number"='1', "next_verify_user"=NULL WHERE "id"=2
10:06:04.307infoyii\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\ErpSalesReturns', 2, 'a:1:{s:6:"amount";d:3333;}', '', 1001, '223.72.15.22')
10:06:04.308infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_returns" WHERE "id"=2
10:06:04.308infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_return_id"=2
10:06:04.308infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "id"=215
10:06:04.309infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1774
10:06:04.309traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.309traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.309infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=71
10:06:04.310traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.310traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.310infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_id"=71
10:06:04.311infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_outbound_spent_product_id"=215
10:06:04.311infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_returns" WHERE "id"=2
10:06:04.311infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" WHERE "erp_sales_outbound_spent_product_id"=215
10:06:04.312infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_outbound_spent_products" SET "cancel_number"='1', "cancel_amount"='3333', "cancel_total_amount"='3333' WHERE "id"=215
10:06:04.312infoyii\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\ErpSalesOutboundSpentProducts', 215, 'a:0:{}', '', 1001, '223.72.15.22')
10:06:04.314infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE 0=1
10:06:04.316infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_id"=71
10:06:04.316infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_outbound_id"=71
10:06:04.317traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.317traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.317infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=161
10:06:04.317infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_id"=71
10:06:04.318infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=215
10:06:04.318infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_product_spents" SET "actual_total_amount"='0', "outbound"='0', "total_amount"='0', "sales_outbound"='0' WHERE "id"=314
10:06:04.319infoyii\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\ErpInventoryProductSpents', 314, 'a:4:{s:8:"outbound";i:0;s:14:"sales_outbound";i:0;s:19:"actual_total_amount";s:1:"0";s:12:"total_amount";i:0;}', '', 1001, '223.72.15.22')
10:06:04.320infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_outbounds" SET "is_used"=TRUE WHERE "id"=71
10:06:04.321infoyii\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', 71, 'a:0:{}', '', 1001, '223.72.15.22')
10:06:04.322infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id"=1774
10:06:04.323traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.323traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.323infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=230
10:06:04.324infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
10:06:04.324infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
10:06:04.324infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
10:06:04.325infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
10:06:04.325infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='2', "inventory"='48', "sales_outbound"='2' WHERE "id"=230
10:06:04.326infoyii\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:"2";s:9:"inventory";d:48;s:14:"sales_outbound";s:1:"2";}', '', 1001, '223.72.15.22')
10:06:04.327infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=178
10:06:04.328traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.328traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.328infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='48', "sales_outbound"='2' WHERE "id"=178
10:06:04.329infoyii\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:48;s:14:"sales_outbound";s:1:"2";}', '', 1001, '223.72.15.22')
10:06:04.330traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.330traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.330infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=91
10:06:04.331infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
10:06:04.332infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
10:06:04.334infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
10:06:04.335infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type'
10:06:04.337traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.337traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.337infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point'
10:06:04.337infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='3840' WHERE "id"=230
10:06:04.338infoyii\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:3840;}', '', 1001, '223.72.15.22')
10:06:04.339infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1620
10:06:04.340traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.340traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.340infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1620
10:06:04.341traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.341traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.341infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id"=1979
10:06:04.341infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id" IN (69, 70, 71)
10:06:04.342infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id" IN (159, 160, 161)
10:06:04.342infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_outbound_spent_product_id" IN (213, 214, 215)
10:06:04.342infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_returns" WHERE "id"=2
10:06:04.343infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='1' WHERE "id"=1979
10:06:04.344infoyii\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')
10:06:04.345infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4253
10:06:04.345infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "erp_sales_order_product_id"=1979
10:06:04.346traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.346traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.346infoyii\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))
10:06:04.347infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=161
10:06:04.347infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=215
10:06:04.348infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_project_product_rels" SET "cost"='0', "total_cost"='0' WHERE "id"=11040
10:06:04.349infoyii\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', 11040, 'a:2:{s:4:"cost";d:0;s:10:"total_cost";i:0;}', '', 1001, '223.72.15.22')
10:06:04.349infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "cost"='0', "total_cost"='0' WHERE "id"=1979
10:06:04.350infoyii\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:2:{s:4:"cost";d:0;s:10:"total_cost";i:0;}', '', 1001, '223.72.15.22')
10:06:04.351infoyii\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:0:{}', '', 1001, '223.72.15.22')
10:06:04.352infoyii\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')
10:06:04.353infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661
10:06:04.353infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048
10:06:04.354infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
10:06:04.354infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_verify_rels" WHERE ("status"=0) AND ("erp_sales_return_id"=2) ORDER BY "id"
10:06:04.355infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_returns" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=2
10:06:04.356infoyii\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\ErpSalesReturns', 2, 'a:1:{s:9:"verify_at";s:5:"now()";}', '', 1001, '223.72.15.22')
10:06:04.356infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_returns" WHERE "id"=2
10:06:04.357traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.357traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.357infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_ticket_change_logs" ("status", "ticket_type", "serial_no", "wrote_date", "description", "abstract", "amount", "client_id", "supplier_id", "contact_id", "user_id", "created_by", "created_at", "updated_at", "object_id", "verify_at") VALUES (2, 20009, 'XSTHD-20251218-00001', '2025-12-18', '', NULL, '3333', 1661, NULL, NULL, NULL, 1001, '2025-12-18 10:06:04', '2025-12-18 10:06:04', 2, '2025-12-18 10:06:04.355285+08') RETURNING "id"
10:06:04.360infoyii\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\ErpTicketChangeLogs', 1406, 'a:17:{s:2:"id";i:1406;s:9:"serial_no";s:20:"XSTHD-20251218-00001";s:11:"ticket_type";i:20009;s:10:"wrote_date";s:10:"2025-12-18";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:1661;s:8:"abstract";N;s:11:"description";s:0:"";s:9:"verify_at";s:29:"2025-12-18 10:06:04.355285+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-12-18 10:06:04";s:10:"updated_at";s:19:"2025-12-18 10:06:04";s:10:"contact_id";N;s:7:"user_id";N;s:6:"amount";s:4:"3333";s:9:"object_id";i:2;}', '', 1001, '223.72.15.22')
10:06:04.361traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.361traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.361infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (1406, 1001)
10:06:04.366infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_return_id"=2
10:06:04.366infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "id"=215
10:06:04.367infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1774
10:06:04.367infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "id"=161
10:06:04.368infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "id"=1979
10:06:04.368infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "number"='0', "total_amount"='0' WHERE "id"=1979
10:06:04.369infoyii\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')
10:06:04.370infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "erp_sales_order_product_id"=1979
10:06:04.370infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_project_product_rels" SET "number"=0, "total_amount"='0' WHERE "id"=11040
10:06:04.371infoyii\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', 11040, 'a:1:{s:6:"number";i:1;}', '', 1001, '223.72.15.22')
10:06:04.372infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1620
10:06:04.373infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "number"='0', "amount"='0' WHERE "id"=1620
10:06:04.374infoyii\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:2:{s:6:"amount";i:0;s:6:"number";i:0;}', '', 1001, '223.72.15.22')
10:06:04.374infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=71
10:06:04.375infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1620
10:06:04.375infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4253
10:06:04.376infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_sales_contracts" SET "amount"='0', "is_verify"=FALSE WHERE "id"=4253
10:06:04.377infoyii\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')
10:06:04.377infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661
10:06:04.378infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048
10:06:04.378infoyii\db\Command::querySELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5))
10:06:04.379infoyii\db\Command::querySELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."status" IN (2, 5))
10:06:04.380infoyii\db\Command::querySELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE)
10:06:04.381infoyii\db\Command::querySELECT EXISTS(SELECT "r".* FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."status"=1))
10:06:04.382infoyii\db\Command::querySELECT EXISTS(SELECT "r".* FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."status"=1))
10:06:04.382infoyii\db\Command::querySELECT EXISTS(SELECT "r".* FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."status"=1))
10:06:04.383infoyii\db\Command::querySELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (1, 2, 5))
10:06:04.383infoyii\db\Command::querySELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."status" IN (1, 2, 5))
10:06:04.384infoyii\db\Command::querySELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."status" IN (1, 2, 5))
10:06:04.386infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_sales_contracts" SET "erp_settle_amount"='0', "erp_un_settle_amount"='0', "erp_all_settle_amount"='0' WHERE "id"=4253
10:06:04.387infoyii\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:1:{s:20:"erp_un_settle_amount";s:4:"3333";}', '', 1001, '223.72.15.22')
10:06:04.388infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661
10:06:04.388infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048
10:06:04.389infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048
10:06:04.390infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_projects" SET "collected"='0' WHERE "id"=4048
10:06:04.391infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4048) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1
10:06:04.392infoyii\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\Projects', 4048, 'a:0:{}', '', 1001, '223.72.15.22')
10:06:04.393infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661
10:06:04.394infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4253
10:06:04.394traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.395infoyii\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_sales_contract_payment_collection_remind_dates' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
10:06:04.398infoyii\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_sales_contract_payment_collection_remind_dates' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
10:06:04.406traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.406traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
10:06:04.406infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=4253
10:06:04.406infoyii\db\Command::querySELECT r.amount, t.created_at FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."status" IN (2, 5, 1))
10:06:04.407infoyii\db\Command::querySELECT r.amount, t.created_at FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=4253) AND ("t"."status" IN (2, 5, 1))
10:06:04.408infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048
10:06:04.408infoyii\db\Command::querySELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4253
10:06:04.409infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4048) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1
10:06:04.411infoyii\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\Projects', 4048, 'a:0:{}', '', 1001, '223.72.15.22')
10:06:04.412infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661
10:06:04.412infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048
10:06:04.413infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1774
10:06:04.413infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_product_types" WHERE ("product_type_id"=22) AND ("project_id"=4048)
10:06:04.414traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.414infoyii\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_project_product_types' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
10:06:04.417infoyii\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_project_product_types' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
10:06:04.425traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.425traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
10:06:04.425infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_project_product_types" SET "budget"='0' WHERE "id"=7445
10:06:04.427infoyii\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\ProjectProductTypes', 7445, 'a:1:{s:6:"budget";i:0;}', '', 1001, '223.72.15.22')
10:06:04.428infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_projects" SET "budget"='0', "is_verify"=FALSE WHERE "id"=4048
10:06:04.429infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4048) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1
10:06:04.431infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=17176
10:06:04.434infoyii\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\ProjectChangeLogs', 17176, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '223.72.15.22')
10:06:04.435infoyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_project_change_logs" ("project_id", "project_status", "budget", "profit_pct", "collected", "start_from", "end_at") VALUES (4048, 3, '0', '66', '0', 'now()', NULL) RETURNING "id"
10:06:04.440infoyii\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\ProjectChangeLogs', 17178, 'a:8:{s:2:"id";i:17178;s:10:"project_id";i:4048;s:14:"project_status";i:3;s:6:"budget";i:0;s:10:"profit_pct";s:2:"66";s:9:"collected";s:1:"0";s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '223.72.15.22')
10:06:04.441infoyii\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\Projects', 4048, 'a:1:{s:6:"budget";s:4:"3333";}', '', 1001, '223.72.15.22')
10:06:04.441infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661
10:06:04.442infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_return_id"=2
10:06:04.442infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "id"=215
10:06:04.443infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1774
10:06:04.443infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=71
10:06:04.443infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_id"=71
10:06:04.444infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_outbound_spent_product_id"=215
10:06:04.444infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_returns" WHERE "id"=2
10:06:04.444infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" WHERE "erp_sales_outbound_spent_product_id"=215
10:06:04.445infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_outbound_spent_products" SET "cancel_number"='1', "cancel_amount"='3333', "cancel_total_amount"='3333' WHERE "id"=215
10:06:04.445infoyii\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\ErpSalesOutboundSpentProducts', 215, 'a:0:{}', '', 1001, '223.72.15.22')
10:06:04.446infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE 0=1
10:06:04.446infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_id"=71
10:06:04.447infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_outbound_id"=71
10:06:04.447infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=161
10:06:04.447infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_id"=71
10:06:04.448infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=215
10:06:04.448infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_product_spents" SET "outbound"='0', "total_amount"='0', "sales_outbound"='0' WHERE "id"=314
10:06:04.449infoyii\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\ErpInventoryProductSpents', 314, 'a:0:{}', '', 1001, '223.72.15.22')
10:06:04.450infoyii\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', 71, 'a:0:{}', '', 1001, '223.72.15.22')
10:06:04.450infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id"=1774
10:06:04.451infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=230
10:06:04.452infoyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
10:06:04.452infoyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
10:06:04.452infoyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
10:06:04.452infoyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230
10:06:04.453infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='48' WHERE "id"=230
10:06:04.454infoyii\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')
10:06:04.454infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=178
10:06:04.455infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='48' WHERE "id"=178
10:06:04.456infoyii\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')
10:06:04.456infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=91
10:06:04.457infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
10:06:04.457infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
10:06:04.458infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
10:06:04.458infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type'
10:06:04.458infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point'
10:06:04.458infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='3840' WHERE "id"=230
10:06:04.459infoyii\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')
10:06:04.460infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1620
10:06:04.460infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1620
10:06:04.461infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id"=1979
10:06:04.462infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id" IN (69, 70, 71)
10:06:04.462infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id" IN (159, 160, 161)
10:06:04.462infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_outbound_spent_product_id" IN (213, 214, 215)
10:06:04.463infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_returns" WHERE "id"=2
10:06:04.463infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='0' WHERE "id"=1979
10:06:04.464infoyii\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:1:{s:8:"outbound";s:1:"1";}', '', 1001, '223.72.15.22')
10:06:04.465infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4253
10:06:04.465infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "erp_sales_order_product_id"=1979
10:06:04.466infoyii\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))
10:06:04.466infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=161
10:06:04.467infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=215
10:06:04.467infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_project_product_rels" SET "total_cost"='0' WHERE "id"=11040
10:06:04.468infoyii\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', 11040, 'a:0:{}', '', 1001, '223.72.15.22')
10:06:04.469infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "total_cost"='0' WHERE "id"=1979
10:06:04.470infoyii\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')
10:06:04.471infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "is_used"=FALSE WHERE "id"=1620
10:06:04.471infoyii\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:0:{}', '', 1001, '223.72.15.22')
10:06:04.472infoyii\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')
10:06:04.473infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661
10:06:04.474infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048
10:06:04.474infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
10:06:04.474traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.475traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.475infoyii\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', 2, 20009, 1001, '2025-12-18 10:06:04', '{"id":2,"serial_no":"XSTHD-20251218-00001","from_date":null,"wrote_date":"2025-12-18","handler":1001,"client_id":1661,"project_id":4048,"erp_store_id":null,"status":2,"abstract":null,"description":"","verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"3333","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-12-18 10:06:04","updated_at":"1970-01-01 08:00:00","print_times":null}', '{"id":2,"serial_no":"XSTHD-20251218-00001","from_date":null,"wrote_date":"2025-12-18","handler":1001,"client_id":1661,"project_id":4048,"erp_store_id":null,"status":2,"abstract":null,"description":"","verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"3333","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-12-18 10:06:04","updated_at":"1970-01-01 08:00:00","print_times":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u9000\u8d27\u5355\u7533\u8bf7","d4":[]}') RETURNING "id"
10:06:04.476infoyii\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', 590889, 'a:13:{s:2:"id";i:590889;s:9:"object_id";i:2;s:11:"object_type";i:20009;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:531:"{"id":2,"serial_no":"XSTHD-20251218-00001","from_date":null,"wrote_date":"2025-12-18","handler":1001,"client_id":1661,"project_id":4048,"erp_store_id":null,"status":2,"abstract":null,"description":"","verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"3333","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-12-18 10:06:04","updated_at":"1970-01-01 08:00:00","print_times":null}";s:9:"new_value";s:531:"{"id":2,"serial_no":"XSTHD-20251218-00001","from_date":null,"wrote_date":"2025-12-18","handler":1001,"client_id":1661,"project_id":4048,"erp_store_id":null,"status":2,"abstract":null,"description":"","verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"3333","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-12-18 10:06:04","updated_at":"1970-01-01 08:00:00","print_times":null}";s:11:"description";s:111:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u9000\u8d27\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-12-18 10:06:04";s:9:"is_delete";N;}', '', 1001, '223.72.15.22')
10:06:04.477traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.477traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
10:06:04.477infoyii\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/sales-contract/save-new-return', '{"ErpSalesReturns":{"id":"4253","client_id":"1661","client_name":"\u5317\u4eac\u7f51\u4fe1\u5143\u79d1\u6280\u6709\u9650\u516c\u53f8","project_id":"4048","project_name":"\u6d4b\u8bd5\u5220\u9664\u5546\u673a\u540e\uff0c\u9500\u552e\u8ba2\u5355\u662f\u5426\u540c\u6b65\u5220\u9664","serial_no":"2025-12-17-001","contract_type":"1","signed_at":"2025-12-15","expire_date":"","expire_remind_ahead":"","description":"","budget":"0","sla":"","is_outbound":"1","is_settle":"0","is_deliver":"0","remind_ahead":"","including_tax":"1","returns_amount":"3333","returns_number":"0","erpSalesReturnProducts":{"new":[{"product_id":"1774","number":"1","amount":"3333","total_amount":"3333","description":"","erp_sales_outbound_spent_product_id":"215","sns":""}]},"salesContractPaymentCollectionRemindDates":"","salesContractPaymentCollectionRemindReceivers":["1001"],"payment_collection_remind_ahead":"1 day","salesSupplierRels":""},"web_access_token":"0ZGi0JftuKohgRfEvCcy0r4OKxU49PtY"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u65b0\u9500\u552e\u9000\u8d27\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-18 10:06:04') RETURNING "id"
10:06:04.479traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
10:06:04.479traceyii\redis\Connection::executeCommandExecuting Redis Command: SET