10:25:27.620 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
10:25:27.620 | trace | yii\base\Module::getModule | Loading module: debug |
10:25:27.620 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
10:25:27.620 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
10:25:27.620 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
10:25:27.621 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.621 | trace | yii\base\Module::getModule | Loading module: gii |
10:25:27.621 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
10:25:27.621 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
10:25:27.621 | trace | yii\web\Application::handleRequest | Route requested: 'vue/purchase-contract/save-edit-cost' |
10:25:27.621 | trace | yii\base\Module::getModule | Loading module: vue |
10:25:27.621 | info | yii\web\Session::open | Session started |
10:25:27.622 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
10:25:27.622 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
10:25:27.626 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.626 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.627 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.627 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.627 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
10:25:27.628 | trace | yii\base\Controller::runAction | Route to run: vue/purchase-contract/save-edit-cost |
10:25:27.628 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.629 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:25:27.629 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\PurchaseContractController::actionSaveEditCost() |
10:25:27.629 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='3851' |
10:25:27.630 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.630 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.630 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.631 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.632 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\PurchaseContracts'. |
10:25:27.632 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contractScans' in 'app\models\PurchaseContracts'. |
10:25:27.632 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'receiptScans' in 'app\models\PurchaseContracts'. |
10:25:27.632 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseClientRels' in 'app\models\PurchaseContracts'. |
10:25:27.632 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'PurchaseContractInvoices' in 'app\models\PurchaseContracts'. |
10:25:27.632 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'costContractAmounts' in 'app\models\PurchaseContracts'. |
10:25:27.632 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='689') |
10:25:27.633 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1011') |
10:25:27.633 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
10:25:27.633 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.634 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.634 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'amount', 3851, 13, 1001, 'now()', '["867867\u5143"]', '["875845\u5143"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5408\u540c\u603b\u989d","d4":["875845\u5143 <b>\u53d8\u4e3a<\/b> 867867\u5143"]}') |
10:25:27.635 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("term_id"=18) AND ("object_type"=8) AND ("object_id"=3851) ORDER BY "id" |
10:25:27.636 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.636 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.636 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.636 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.636 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=369 |
10:25:27.636 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=372 |
10:25:27.637 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='372' |
10:25:27.637 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'costContractAmounts', 3851, 13, 1001, 'now()', '[["\u98de\u673a\u7968:867867\u5143"]]', '[["\u9910\u996e\u8d39:7978\u5143","\u98de\u673a\u7968:867867\u5143"]]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u4fe1\u606f","d4":["\u9910\u996e\u8d39:7978\u5143;\u98de\u673a\u7968:867867\u5143; <b>\u53d8\u4e3a<\/b> \u98de\u673a\u7968:867867\u5143;"]}') |
10:25:27.638 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3851) AND ("term_id"=18) AND ("object_type"=8) |
10:25:27.639 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "object_type", "taxonomy_id", "out_amount", "value", "object_id", "extra_int") VALUES (18, 8, 372, '867867', '', 3851, 183) |
10:25:27.640 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=108) AND ("object_id"=3851) |
10:25:27.641 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=108) AND ("object_id"=3851) |
10:25:27.643 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=111) AND ("object_id"=3851) |
10:25:27.644 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=111) AND ("object_id"=3851) |
10:25:27.645 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=3851 |
10:25:27.645 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.645 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.645 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=3851 |
10:25:27.646 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "purchase_id"=3851 |
10:25:27.647 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_purchase_client_rels" ("contract_id", "client_id", "project_id") VALUES (3851, 982, 1018) RETURNING "id" |
10:25:27.648 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.649 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.649 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\PurchaseClientRels', 3143, 'a:4:{s:2:"id";i:3143;s:11:"contract_id";i:3851;s:9:"client_id";s:3:"982";s:10:"project_id";s:4:"1018";}', '', 1001, '114.254.1.137') |
10:25:27.650 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"='1018' |
10:25:27.651 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_purchase_contract_invoices" WHERE "contract_id"=3851 |
10:25:27.651 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=3851 |
10:25:27.651 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_invoices" WHERE 0=1 |
10:25:27.652 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_contract_invoices" WHERE 0=1 |
10:25:27.652 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='689') |
10:25:27.652 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1011') |
10:25:27.653 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
10:25:27.653 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "supplier_id"=689, "amount"='867867', "handler"=1011, "updated_at"='now()', "including_tax"=TRUE WHERE "id"=3851 |
10:25:27.654 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\PurchaseContracts', 3851, 'a:1:{s:6:"amount";i:867867;}', '', 1001, '114.254.1.137') |
10:25:27.655 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='689' |
10:25:27.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.655 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='689') |
10:25:27.656 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1011') |
10:25:27.656 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
10:25:27.656 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\PurchaseContracts', 3851, 'a:0:{}', '', 1001, '114.254.1.137') |
10:25:27.657 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='689' |
10:25:27.657 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=3851 |
10:25:27.658 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=3851 ORDER BY "id" |
10:25:27.658 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.658 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.658 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=982 |
10:25:27.660 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=982 |
10:25:27.661 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=982) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
10:25:27.676 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.676 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.676 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (982, 1001, 'now()', NULL) RETURNING "id" |
10:25:27.677 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 165061, 'a:5:{s:2:"id";i:165061;s:9:"client_id";i:982;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '114.254.1.137') |
10:25:27.678 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 982, 'a:0:{}', '', 1001, '114.254.1.137') |
10:25:27.679 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 982, 10, 3851, 13, 1001, '[3851]', '[3851]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}') RETURNING "id" |
10:25:27.680 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 509886, 'a:13:{s:2:"id";i:509886;s:9:"object_id";i:982;s:11:"object_type";i:10;s:9:"target_id";i:3851;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3851]";s:9:"new_value";s:6:"[3851]";s:11:"description";s:140:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.254.1.137') |
10:25:27.681 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.681 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.681 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=1018 |
10:25:27.682 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=1018 |
10:25:27.683 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=1018) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
10:25:27.685 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.685 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.685 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1018, 'a:1:{s:6:"end_at";s:19:"2022-08-02 11:44:02";}', '', 1001, '114.254.1.137') |
10:25:27.686 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=982 |
10:25:27.686 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 1018, 1, 3851, 13, 1001, '[3851]', '[3851]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}') RETURNING "id" |
10:25:27.687 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 509887, 'a:13:{s:2:"id";i:509887;s:9:"object_id";i:1018;s:11:"object_type";i:1;s:9:"target_id";i:3851;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3851]";s:9:"new_value";s:6:"[3851]";s:11:"description";s:140:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.254.1.137') |
10:25:27.688 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 689, 12, 3851, 13, 1001, '[3851]', '[3851]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}') RETURNING "id" |
10:25:27.689 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 509888, 'a:13:{s:2:"id";i:509888;s:9:"object_id";i:689;s:11:"object_type";i:12;s:9:"target_id";i:3851;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3851]";s:9:"new_value";s:6:"[3851]";s:11:"description";s:140:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:(\u672a\u8bbe\u7f6e)"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.254.1.137') |
10:25:27.690 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.690 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:25:27.690 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/purchase-contract/save-edit-cost', '{"PurchaseContracts":{"id":"3851","supplier_id":"689","amount":"867867","handler":"1011","serial_no":"","signed_at":"2025-07-04","description":"","including_tax":"1","contractScans":"","receiptScans":"","purchaseClientRels":[{"client_id":"982","project_id":"1018"}],"PurchaseContractInvoices":"","costContractAmounts":[{"id":"372","amount":"867867","description":"","parent_id":"183"}]},"web_access_token":"er_liQPTz011rRwTshQzixBLTwcD6PCJ"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u91c7\u8d2d\u5408\u540c\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0}', FALSE, '2025-07-04 10:25:27') RETURNING "id" |
10:25:27.692 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:25:27.692 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |