11:53:28.139 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
11:53:28.139 | trace | yii\base\Module::getModule | Loading module: debug |
11:53:28.139 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
11:53:28.140 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
11:53:28.140 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
11:53:28.140 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.140 | trace | yii\base\Module::getModule | Loading module: gii |
11:53:28.140 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
11:53:28.140 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
11:53:28.140 | trace | yii\web\Application::handleRequest | Route requested: 'v2/approve/save-edit' |
11:53:28.140 | trace | yii\base\Module::getModule | Loading module: v2 |
11:53:28.141 | info | yii\web\Session::open | Session started |
11:53:28.141 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
11:53:28.143 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om' |
11:53:28.146 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.146 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.146 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.146 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.146 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
11:53:28.148 | trace | yii\base\Controller::runAction | Route to run: v2/approve/save-edit |
11:53:28.148 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.149 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
11:53:28.149 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ApproveController::actionSaveEdit() |
11:53:28.149 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_approves" WHERE "id"='2224' |
11:53:28.150 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.150 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.150 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.151 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.152 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'attachmentFiles' in 'app\models\Approves'. |
11:53:28.152 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Approves'. |
11:53:28.152 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661') |
11:53:28.153 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='1791') |
11:53:28.153 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
11:53:28.154 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
11:53:28.154 | info | yii\db\Command::execute | |
11:53:28.154 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=2224 |
11:53:28.155 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=17) AND ("id" IN (1, 2, 184, 189, 317, 349)) |
11:53:28.155 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.156 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.156 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=2224) AND ("term_id"=17) |
11:53:28.157 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.157 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.157 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='317') |
11:53:28.157 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_terms" WHERE "id"=17) |
11:53:28.158 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (17, 317, 2224) RETURNING "id" |
11:53:28.159 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.159 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.159 | 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\TermTaxonomyRelationships', 129207, 'a:9:{s:2:"id";i:129207;s:9:"object_id";i:2224;s:11:"taxonomy_id";s:3:"317";s:7:"term_id";i:17;s:5:"value";N;s:11:"object_type";N;s:9:"extra_int";N;s:9:"in_amount";N;s:10:"out_amount";N;}', '', 1000, '223.104.41.67') |
11:53:28.160 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_approves" SET "client_id"=1661, "project_id"=1791, "borrow_collect_status"=0 WHERE "id"=2224 |
11:53:28.161 | 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\Approves', 2224, 'a:0:{}', '', 1000, '223.104.41.67') |
11:53:28.163 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_contract_payment_approve_rels" WHERE "approve_id"=2224 |
11:53:28.166 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_payment_ticket_approve_payment_settles" WHERE "approve_id"=2224 |
11:53:28.166 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=28) AND ("object_id"=2224) |
11:53:28.168 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.168 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.168 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
11:53:28.169 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.169 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.169 | 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, 'AttachmentRelationships', 2224, 37, 1000, 'now()', '[[]]', '"28113"', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u56fe\u7247","d4":[""]}') |
11:53:28.170 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=28) AND ("object_id"=2224) |
11:53:28.173 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_approve_verify_rels" WHERE "approve_id"=2224 ORDER BY "id" |
11:53:28.173 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.173 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.173 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_approve_verify_rels" WHERE "approve_id"=2224 |
11:53:28.174 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_approve_verify_rels" ("approve_id", "user_id", "status") VALUES (2224, 1000, 0) |
11:53:28.175 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_approve_carbon_copy_rels" WHERE "approve_id"=2224 |
11:53:28.176 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.176 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.176 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_approve_carbon_copy_rels" WHERE "approve_id"=2224 |
11:53:28.177 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_approve_carbon_copy_rels" ("approve_id", "user_id") VALUES (2224, 1011) |
11:53:28.178 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_approve_verify_rels" WHERE ("approve_id"=2224) AND ("status"=0) ORDER BY "id" |
11:53:28.179 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_approves" SET "updated_at"='now()' WHERE "id"=2224 |
11:53:28.179 | 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\Approves', 2224, 'a:0:{}', '', 1000, '223.104.41.67') |
11:53:28.180 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_advance_payment_ticket_approve_payment_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_advance_payment_tickets" "t" ON r.erp_advance_payment_ticket_id = t.id WHERE ("r"."approve_id"=2224) AND ("t"."status" IN (2, 5)) |
11:53:28.181 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_approve_payment_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."approve_id"=2224) AND ("t"."status" IN (2, 5)) |
11:53:28.182 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_approve_payment_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."approve_id"=2224) AND ("t"."status" IN (2, 5)) |
11:53:28.183 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_approves" SET "erp_payment_settle_amount"='0', "erp_payment_un_settle_amount"='0' WHERE "id"=2224 |
11:53:28.184 | 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\Approves', 2224, 'a:0:{}', '', 1000, '223.104.41.67') |
11:53:28.185 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_other_collect_ticket_approve_borrow_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_collect_tickets" "t" ON r.erp_other_collect_ticket_id = t.id WHERE ("r"."approve_id"=2224) AND ("t"."status" IN (2, 5)) |
11:53:28.186 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_approves" SET "borrow_collect_status"=1, "erp_borrow_settle_amount"='0', "erp_borrow_un_settle_amount"='0' WHERE "id"=2224 |
11:53:28.186 | 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\Approves', 2224, 'a:0:{}', '', 1000, '223.104.41.67') |
11:53:28.187 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
11:53:28.188 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_approve_verify_rels" WHERE ("status"=0) AND ("approve_id"=2224) ORDER BY "id" |
11:53:28.188 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.188 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.188 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661' |
11:53:28.190 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=1661 |
11:53:28.191 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=1661) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
11:53:28.201 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.201 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.201 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (1661, 1001, 'now()', NULL) RETURNING "id" |
11:53:28.202 | 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', 180822, 'a:5:{s:2:"id";i:180822;s:9:"client_id";i:1661;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '223.104.41.67') |
11:53:28.203 | 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', 1661, 'a:0:{}', '', 1000, '223.104.41.67') |
11:53:28.204 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
11:53:28.204 | 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', 1661, 10, 2224, 37, 1000, '[2224]', '[2224]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba1\u6279\u7533\u8bf7","d4":["\u5176\u4ed6"]}') RETURNING "id" |
11:53:28.205 | 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', 565075, 'a:13:{s:2:"id";i:565075;s:9:"object_id";s:4:"1661";s:11:"object_type";i:10;s:9:"target_id";i:2224;s:18:"target_object_type";i:37;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[2224]";s:9:"new_value";s:6:"[2224]";s:11:"description";s:107:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba1\u6279\u7533\u8bf7","d4":["\u5176\u4ed6"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.104.41.67') |
11:53:28.206 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.206 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.206 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='1791' |
11:53:28.208 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=1791 |
11:53:28.209 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=1791) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
11:53:28.210 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.211 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.211 | 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', 1791, 'a:1:{s:6:"end_at";s:19:"2021-04-19 22:25:38";}', '', 1000, '223.104.41.67') |
11:53:28.212 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
11:53:28.212 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
11:53:28.213 | 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', 1791, 1, 2224, 37, 1000, '[2224]', '[2224]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba1\u6279\u7533\u8bf7","d4":["\u5176\u4ed6"]}') RETURNING "id" |
11:53:28.213 | 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', 565076, 'a:13:{s:2:"id";i:565076;s:9:"object_id";s:4:"1791";s:11:"object_type";i:1;s:9:"target_id";i:2224;s:18:"target_object_type";i:37;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[2224]";s:9:"new_value";s:6:"[2224]";s:11:"description";s:107:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba1\u6279\u7533\u8bf7","d4":["\u5176\u4ed6"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.104.41.67') |
11:53:28.214 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='1791' |
11:53:28.215 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
11:53:28.215 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
11:53:28.216 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.216 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.216 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "users", "description") VALUES (2, 'update', 1791, 1, 2224, 37, 1000, '2224', '2224', array[1001], '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba1\u6279\u7533\u8bf7","d4":["\u5176\u4ed6"]}') RETURNING "id" |
11:53:28.217 | 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\UserActionLogs', 152318, 'a:15:{s:2:"id";i:152318;s:9:"object_id";s:4:"1791";s:11:"object_type";i:1;s:9:"target_id";i:2224;s:18:"target_object_type";i:37;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:4:"2224";s:9:"new_value";s:4:"2224";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1001]";s:6:"params";a:0:{}}s:11:"description";s:107:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba1\u6279\u7533\u8bf7","d4":["\u5176\u4ed6"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1000, '223.104.41.67') |
11:53:28.218 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:53:28.218 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:53:28.218 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 2, 1149, 'v2/approve/save-edit', '{"Approves":{"attachmentFiles":"","client_id":"1661","description":"\u4ecev\u4e2a","form_approveCarbonCopyRels":["1011"],"form_approveVerifyRels":["1000"],"form_type":"317","id":"2224","project_id":"1791","title":"\u4ecevv"},"access_token":"gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om","device_type":"2","posttime":"1757562752","token":"76605873c79a09139fa479b168742882","version_code":"1149"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u5ba1\u6279\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-09-11 11:53:28') RETURNING "id" |