17:01:06.597 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
17:01:06.597 | trace | yii\base\Module::getModule | Loading module: debug |
17:01:06.598 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
17:01:06.598 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
17:01:06.598 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
17:01:06.598 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.598 | trace | yii\base\Module::getModule | Loading module: gii |
17:01:06.598 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
17:01:06.599 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
17:01:06.599 | trace | yii\web\Application::handleRequest | Route requested: 'v2/project/save-edit' |
17:01:06.599 | trace | yii\base\Module::getModule | Loading module: v2 |
17:01:06.599 | info | yii\web\Session::open | Session started |
17:01:06.600 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
17:01:06.601 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om' |
17:01:06.604 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.604 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.605 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.605 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.605 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:01:06.606 | trace | yii\base\Controller::runAction | Route to run: v2/project/save-edit |
17:01:06.607 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.608 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:01:06.608 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ProjectController::actionSaveEdit() |
17:01:06.608 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3959' |
17:01:06.609 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.609 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.609 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.609 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseType' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesForecast' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectArchitects' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductTypes' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectRemindReceivers' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractPaymentCollectionRemindDates' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'payment_collection_remind_ahead' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseType' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesForecast' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectArchitects' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductTypes' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectRemindReceivers' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractPaymentCollectionRemindDates' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Projects'. |
17:01:06.610 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'payment_collection_remind_ahead' in 'app\models\Projects'. |
17:01:06.610 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3959 |
17:01:06.611 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=13) AND ("id" IN (5, 226, 129, 136, 139, 142, 184, 189, 349)) ORDER BY "sort" |
17:01:06.612 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.612 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.612 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("client_id"='1661') AND ("project_title"='吉德科娃') AND ("id" != 3959)) |
17:01:06.613 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1') |
17:01:06.614 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661') |
17:01:06.614 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_progresses" WHERE "id"='2') |
17:01:06.615 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"='3') |
17:01:06.615 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
17:01:06.615 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:01:06.616 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3959 |
17:01:06.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.617 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.617 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3959 |
17:01:06.618 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.618 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.618 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_product_types" WHERE "id"=7 |
17:01:06.618 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_project_product_types" ("project_id", "product_type_id", "name", "budget", "pct", "profit") VALUES (3959, 7, '软件', '788888', 99.98, '788730.2224') |
17:01:06.620 | info | yii\db\Command::execute | |
17:01:06.620 | info | yii\db\Command::execute | |
17:01:06.621 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "client_id"=1661, "project_status"=3, "project_progress"=2, "budget"='788888', "profit_pct"='99.98', "updated_at"='now()', "contract_type"=1, "used_client"=NULL, "from_contact"=NULL WHERE "id"=3959 |
17:01:06.622 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3959) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:01:06.624 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.624 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.625 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.625 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.625 | 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', 3959, 'a:0:{}', '', 1000, '223.73.39.229') |
17:01:06.627 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661' |
17:01:06.628 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.628 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.628 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:01:06.629 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3959 |
17:01:06.629 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.629 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.629 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5085 |
17:01:06.630 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1022 |
17:01:06.630 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1023 |
17:01:06.631 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5085 |
17:01:06.631 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5248 |
17:01:06.631 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1015 |
17:01:06.632 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1022 |
17:01:06.632 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1023 |
17:01:06.633 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:01:06.633 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.633 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.633 | 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, 'projectArchitects', 3959, 1, 1000, 'now()', '[["\u970d\u4e1c\u9633 10%","\u5f90\u7855 50%","\u5468\u5b50\u5065 40%"]]', '[["\u970d\u4e1c\u9633 10%","\u6587\u4f73\u9f99 0%","\u5434\u660a 0%","\u5f90\u7855 50%","\u5468\u5b50\u5065 40%"]]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u552e\u524d\u652f\u6301","d4":["\u970d\u4e1c\u9633 10%;\u6587\u4f73\u9f99 0%;\u5434\u660a 0%;\u5f90\u7855 50%;\u5468\u5b50\u5065 40%; <b>\u53d8\u4e3a<\/b> \u970d\u4e1c\u9633 10%;\u5f90\u7855 50%;\u5468\u5b50\u5065 40%;"]}') |
17:01:06.636 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661' |
17:01:06.637 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:01:06.637 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.637 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.637 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (2, 'projectArchitects', 3959, 1, 1000, 'now()', '[["\u970d\u4e1c\u9633 10%","\u5f90\u7855 50%","\u5468\u5b50\u5065 40%"]]', '[["\u970d\u4e1c\u9633 10%","\u6587\u4f73\u9f99 0%","\u5434\u660a 0%","\u5f90\u7855 50%","\u5468\u5b50\u5065 40%"]]', array[1001], '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u552e\u524d\u652f\u6301","d4":["\u970d\u4e1c\u9633 10%;\u6587\u4f73\u9f99 0%;\u5434\u660a 0%;\u5f90\u7855 50%;\u5468\u5b50\u5065 40%; <b>\u53d8\u4e3a<\/b> \u970d\u4e1c\u9633 10%;\u5f90\u7855 50%;\u5468\u5b50\u5065 40%;"]}') |
17:01:06.638 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3959 |
17:01:06.639 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_project_architects" ("project_id", "engineer_id", "contribution", "created_by") VALUES (3959, 5085, '0.1', 1000), (3959, 1022, '0.5', 1000), (3959, 1023, '0.4', 1000) |
17:01:06.641 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3959 |
17:01:06.641 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=9) AND ("id" IN (5, 226, 129, 136, 139, 142, 184, 189, 349)) ORDER BY "sort" |
17:01:06.641 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=129 |
17:01:06.642 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='129' |
17:01:06.642 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3959) AND ("term_id"=9) |
17:01:06.643 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.643 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.643 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (9, 129, 3959) |
17:01:06.646 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=142 |
17:01:06.646 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='142' |
17:01:06.646 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3959) AND ("term_id"=13) |
17:01:06.647 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (13, 142, 3959) |
17:01:06.648 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3959 |
17:01:06.648 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3959 |
17:01:06.649 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3959 |
17:01:06.650 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.650 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.650 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3959) |
17:01:06.650 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "amount"='788888', "contract_type"=1, "save_collection_at"='now()' WHERE "id"=4140 |
17:01:06.652 | 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\SalesContracts', 4140, 'a:1:{s:18:"save_collection_at";s:5:"now()";}', '', 1000, '223.73.39.229') |
17:01:06.653 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
17:01:06.653 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3959 |
17:01:06.653 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_contract_default_remind_users" WHERE ("user_id"=1000) AND ("type"=1) |
17:01:06.654 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4140 |
17:01:06.654 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4140 |
17:01:06.655 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4140 |
17:01:06.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.655 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=4140 |
17:01:06.656 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status" IN (2, 5, 1)) |
17:01:06.656 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status" IN (2, 5, 1)) |
17:01:06.657 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3959 |
17:01:06.658 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4140 |
17:01:06.659 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3959) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:01:06.660 | 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', 3959, 'a:0:{}', '', 1000, '223.73.39.229') |
17:01:06.661 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
17:01:06.661 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4140 |
17:01:06.662 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status" IN (2, 5)) |
17:01:06.662 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status" IN (2, 5)) |
17:01:06.663 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
17:01:06.664 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status"=1)) |
17:01:06.664 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status"=1)) |
17:01:06.665 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status"=1)) |
17:01:06.665 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "erp_settle_amount"='0', "erp_un_settle_amount"='788888' WHERE "id"=4140 |
17:01:06.666 | 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\SalesContracts', 4140, 'a:0:{}', '', 1000, '223.73.39.229') |
17:01:06.667 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
17:01:06.668 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3959 |
17:01:06.668 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3959 |
17:01:06.669 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "collected"='0' WHERE "id"=3959 |
17:01:06.670 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3959) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:01:06.671 | 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', 3959, 'a:0:{}', '', 1000, '223.73.39.229') |
17:01:06.672 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
17:01:06.673 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4140 |
17:01:06.673 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=4140 |
17:01:06.673 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status" IN (2, 5, 1)) |
17:01:06.674 | info | yii\db\Command::query | SELECT 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"=4140) AND ("t"."status" IN (2, 5, 1)) |
17:01:06.674 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3959 |
17:01:06.675 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4140 |
17:01:06.675 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3959) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:01:06.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 ('UPDATE', 'app\models\Projects', 3959, 'a:0:{}', '', 1000, '223.73.39.229') |
17:01:06.678 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
17:01:06.678 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661' |
17:01:06.679 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=1661 |
17:01:06.680 | 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 |
17:01:06.694 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.694 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.694 | 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" |
17:01:06.695 | 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', 180845, 'a:5:{s:2:"id";i:180845;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.73.39.229') |
17:01:06.696 | 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.73.39.229') |
17:01:06.697 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:01:06.698 | 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, 3959, 1, 1000, '[3959]', '[3959]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u5409\u5fb7\u79d1\u5a03"]}') RETURNING "id" |
17:01:06.699 | 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', 565239, 'a:13:{s:2:"id";i:565239;s:9:"object_id";s:4:"1661";s:11:"object_type";i:10;s:9:"target_id";i:3959;s:18:"target_object_type";i:1;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3959]";s:9:"new_value";s:6:"[3959]";s:11:"description";s:107:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u5409\u5fb7\u79d1\u5a03"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.73.39.229') |
17:01:06.699 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661' |
17:01:06.700 | info | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2025-01-01 00:00:00') AND ("bargain_date" <= '2025-12-31 23:59:59') AND ("client_id"=1661) |
17:01:06.701 | 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 |
17:01:06.710 | 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" |
17:01:06.711 | 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', 180846, 'a:5:{s:2:"id";i:180846;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.73.39.229') |
17:01:06.711 | 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.73.39.229') |
17:01:06.713 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
17:01:06.713 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
17:01:06.713 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
17:01:06.713 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
17:01:06.713 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
17:01:06.713 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
17:01:06.713 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3959 |
17:01:06.713 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=3959) |
17:01:06.714 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.714 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.715 | 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\ErpSalesOrders', 1586, 'a:0:{}', '', 1000, '223.73.39.229') |
17:01:06.716 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:01:06.716 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:01:06.716 | 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, NULL, NULL, 'v2/project/save-edit', '{"Projects":{"purchaseType":"129","comment":"\u91d1\u5a1c\u5a1c","salesForecast":"142","projectArchitects":{"5085":"0.1","1022":"0.5","1023":"0.4"},"project_status":"3","used_client":"","project_progress":"2","contract_type":"1","projectProductTypes":{"7":{"pct":"99.98","budget":"788888"}},"project_title":"\u5409\u5fb7\u79d1\u5a03","projectRemindReceivers":"","description":"","salesContractPaymentCollectionRemindDates":"","from_contact":"","id":"3959","payment_collection_remind_ahead":"","bargain_date":"2025-09-11","client_id":"1661"},"access_token":"gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om","device_type":"0","version_code":"266","token":"abc93ed0ee98c8d968a0d9bb61d72473","posttime":"1757667667"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u5546\u673a\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-09-12 17:01:06') RETURNING "id" |