22:16:38.721 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
22:16:38.721 | trace | yii\base\Module::getModule | Loading module: debug |
22:16:38.721 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
22:16:38.721 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
22:16:38.721 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
22:16:38.721 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.722 | trace | yii\base\Module::getModule | Loading module: gii |
22:16:38.722 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
22:16:38.722 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
22:16:38.722 | trace | yii\web\Application::handleRequest | Route requested: 'v2/project/change-status' |
22:16:38.722 | trace | yii\base\Module::getModule | Loading module: v2 |
22:16:38.722 | info | yii\web\Session::open | Session started |
22:16:38.723 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
22:16:38.725 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
22:16:38.728 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.728 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.728 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.728 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.729 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
22:16:38.730 | trace | yii\base\Controller::runAction | Route to run: v2/project/change-status |
22:16:38.730 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.731 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
22:16:38.731 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ProjectController::actionChangeStatus() |
22:16:38.731 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3805' |
22:16:38.732 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.732 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.732 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.733 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.733 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Projects'. |
22:16:38.733 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesForecast' in 'app\models\Projects'. |
22:16:38.734 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3805 |
22:16:38.734 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=13) AND ("id" IN (5, 130, 142, 184, 200, 374)) ORDER BY "sort" |
22:16:38.735 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.735 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.736 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("client_id"=2815) AND ("project_title"='哈哈电话') AND ("id" != 3805)) |
22:16:38.736 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"=1) |
22:16:38.737 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815) |
22:16:38.737 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3335) |
22:16:38.738 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_progresses" WHERE "id"=10) |
22:16:38.738 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=1) |
22:16:38.739 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004) |
22:16:38.739 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
22:16:38.739 | info | yii\db\Command::execute | |
22:16:38.740 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("client_id"=2815) AND ("project_title"='哈哈电话') AND ("id" != 3805)) |
22:16:38.740 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"=1) |
22:16:38.740 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815) |
22:16:38.741 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3335) |
22:16:38.741 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_progresses" WHERE "id"=10) |
22:16:38.741 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=1) |
22:16:38.742 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004) |
22:16:38.743 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()', "forecast_updated_at"='now()' WHERE "id"=3805 |
22:16:38.744 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3805) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
22:16:38.746 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.746 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.746 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.746 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.746 | 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', 3805, 'a:0:{}', '', 1000, '211.137.80.11') |
22:16:38.747 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
22:16:38.748 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.748 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.748 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=142 |
22:16:38.749 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='181' |
22:16:38.749 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.749 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.749 | 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, 'salesForecast', 3805, 1, 1000, 'now()', '["\u6211\u81ea\u5df1\u505a\u5e84"]', '["\u6211\u4e0e\u5ba2\u6237\u8054\u624b"]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u9884\u6d4b","d4":["\u6211\u4e0e\u5ba2\u6237\u8054\u624b <b>\u53d8\u4e3a<\/b> \u6211\u81ea\u5df1\u505a\u5e84"]}') |
22:16:38.751 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3805) AND ("term_id"=13) |
22:16:38.752 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.752 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.752 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (13, 181, 3805) |
22:16:38.754 | 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', 2815, 10, 3805, 1, 1000, '3805', '3805', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u54c8\u54c8\u7535\u8bdd"]}') RETURNING "id" |
22:16:38.755 | 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', 509513, 'a:13:{s:2:"id";i:509513;s:9:"object_id";i:2815;s:11:"object_type";i:10;s:9:"target_id";i:3805;s:18:"target_object_type";i:1;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:4:"3805";s:9:"new_value";s:4:"3805";s:11:"description";s:107:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u54c8\u54c8\u7535\u8bdd"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '211.137.80.11') |
22:16:38.756 | info | yii\db\Command::query | SELECT *, now() - status_updated_at as remain, now() - p.progress_updated_at as progress_remain, now() - p.forecast_updated_at as forecast_remain, (SELECT sum(amount) FROM a57be577deb434.tbl_invoices i WHERE i.project_id = p.id) as issued_invoices FROM "a57be577deb434"."tbl_projects" "p" WHERE "p"."id"='3805' |
22:16:38.758 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
22:16:38.758 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3335 |
22:16:38.758 | info | yii\db\Command::query | SELECT "project_id", "contribution", "engineer_id", "u"."name" FROM "a57be577deb434"."tbl_project_architects" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON engineer_id = u.id WHERE "a57be577deb434"."tbl_project_architects"."project_id"=3805 |
22:16:38.759 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "project_status" AS "name" FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=1 |
22:16:38.759 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "project_progress" AS "name" FROM "a57be577deb434"."tbl_project_progresses" WHERE "id"=10 |
22:16:38.760 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
22:16:38.760 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
22:16:38.760 | info | yii\db\Command::query | SELECT id, product_type_id, product_type_id as key, name, coalesce(budget, 0) as budget, coalesce(pct, 0) as pct, project_id FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3805 |
22:16:38.761 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3805 |
22:16:38.761 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=13) AND ("id" IN (5, 130, 181, 184, 200, 374)) ORDER BY "sort" |
22:16:38.762 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3805 |
22:16:38.762 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=10) AND ("id" IN (5, 130, 181, 184, 200, 374)) ORDER BY "sort" |
22:16:38.762 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3805 |
22:16:38.762 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=9) AND ("id" IN (5, 130, 181, 184, 200, 374)) ORDER BY "sort" |
22:16:38.763 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
22:16:38.763 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1004) |
22:16:38.763 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "type" AS "name" FROM "a57be577deb434"."tbl_contract_types" WHERE "id"=1 |
22:16:38.764 | info | yii\db\Command::query | SELECT "id", "user_id", "user_id" AS "key", "project_id" FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3805 |
22:16:38.764 | info | yii\db\Command::query | SELECT "id", "from_project", "payment_collection_remind_ahead", "serial_no" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3805 |
22:16:38.765 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=1) AND ("object_id"=3805) GROUP BY "object_id" |
22:16:38.782 | info | yii\db\Command::query | SELECT "project_id", count(id) as count FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("project_id"=3805) GROUP BY "project_id" |
22:16:38.783 | info | yii\db\Command::query | SELECT "project_id", count(id) as count FROM "a57be577deb434"."tbl_cases" WHERE "project_id"=3805 GROUP BY "project_id" |
22:16:38.784 | info | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=1) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=3805) GROUP BY "object_id" |
22:16:38.799 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:16:38.799 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:16:38.800 | 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, 1141, 'v2/project/change-status', '{"Projects":{"id":"3805","salesForecast":"181"},"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"2","posttime":"1750774656","token":"047d120ed1a6f51d7d6d4dc94e96818f","version_code":"1141"}', '{"code":200,"data":{"model":{"id":3805,"client_id":2815,"project_status":1,"project_progress":10,"budget":"9988","profit_pct":"4","bargain_date":"2025-10-02","description":"","created_by":1004,"created_at":"2025-05-12 10:20:17","updated_at":"2025-06-24 22:16:38","engineer_id":null,"project_title":"\u54c8\u54c8\u7535\u8bdd","collected":"0","status_updated_at":"2025-05-12 10:20:17.599313+08","success_rate":null,"comment":"","contract_type":1,"progress_updated_at":"2025-06-24 22:16:16.593381+08","forecast_updated_at":"2025-06-24 22:16:38.743424+08","end_at":"","pinyin_shortcut":"hhdh","creator":1004,"used_client":3335,"from_contact":null,"total_contact_point":null,"paid_contact_point":null,"project_product_version_id":null,"is_sales_order_ready":false,"collected_plan":null,"remain":"43 days 11:56:21.157801","progress_remain":"00:00:22.163733","forecast_remain":"00:00:00.01369","issued_invoices":null,"client":{"id":2815,"key":2815,"name":"\u4e2d\u56fd\u9ec4\u91d1","logo":null,"sales_rep":1004},"usedClient":{"id":3335,"key":3335,"name":"\u56fd\u9632\u79d1\u6280\u521b\u65b0\u7814\u7a76\u9662"},"projectArchitects":[],"projectStatus":{"id":1,"key":1,"name":"\u9690\u6027\u9700\u6c42"},"projectProgress":{"id":10,"key":10,"name":"\u4ea4\u8d27\u4e2d"},"salesRep":{"id":1004,"key":1004,"name":"\u4f0a\u5cfb\u8fb0"},"projectProductTypes":[{"id":6257,"product_type_id":2,"key":2,"name":"\u670d\u52a1\u5668","budget":"9988.00","pct":"4","project_id":3805}],"salesForecast":{"id":181,"key":181,"name":"\u6211\u81ea\u5df1\u505a\u5e84"},"opportunityFrom":null,"purchaseType":{"id":130,"key":130,"name":"\u7ade\u4e89\u8c08\u5224"},"createdBy":{"id":1004,"key":1004,"name":"\u4f0a\u5cfb\u8fb0","sex":"M","avatar":{"id":10,"user_id":1004,"name":"\/files\/cdn\/a57be577deb434\/avatar\/fc8d836d-8085-35fc-8a48-54a276f664a6.png"}},"contractType":{"id":1,"key":1,"name":"\u4ea7\u54c1\u9500\u552e"},"projectRemindReceivers":[],"buildContract":null,"commentCount":{"object_id":3805,"comment":4},"workLogCount":{"project_id":3805,"count":1},"caseCount":{"project_id":3805,"count":3},"unreadComments":null,"fromContact":null,"unissued_invoice":9988,"remain_display":43,"progress_remain_display":0,"forecast_remain_display":0,"is_exceeded":false,"can_update":true,"can_delete":true,"contract_type_display":"\u4ea7\u54c1\u9500\u552e"}},"status":1,"msg":[{"name":"success","success":"\u5546\u673a\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-06-24 22:16:38') RETURNING "id" |