| 11:14:46.558 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 11:14:46.558 | trace | yii\base\Module::getModule | Loading module: debug |
| 11:14:46.558 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 11:14:46.559 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 11:14:46.559 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 11:14:46.559 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.559 | info | time tracing start | 1780629286559539968 |
| 11:14:46.559 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 11:14:46.559 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-order/verify' |
| 11:14:46.559 | trace | yii\base\Module::getModule | Loading module: vue |
| 11:14:46.560 | info | yii\web\Session::open | Session started |
| 11:14:46.560 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:14:46.560 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 11:14:46.561 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.561 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.561 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.562 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.562 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.562 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-order/verify |
| 11:14:46.563 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.564 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewErp |
| 11:14:46.564 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 11:14:46.564 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: FinancialAudit |
| 11:14:46.564 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
| 11:14:46.564 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOrderController::actionVerify() |
| 11:14:46.564 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1717' |
| 11:14:46.564 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.564 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.564 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1717) ORDER BY "id" |
| 11:14:46.565 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.565 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.565 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.566 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.566 | trace | yii\db\Transaction::begin | Begin transaction |
| 11:14:46.566 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_verify_rels" SET "status"=1, "description"='', "verify_at"='now()' WHERE "id"=146 |
| 11:14:46.567 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.567 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.567 | 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\ErpSalesOrderVerifyRels', 146, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 11:14:46.568 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1717) ORDER BY "id") "c" |
| 11:14:46.568 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=1717 |
| 11:14:46.569 | 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', 1717, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 11:14:46.569 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1717 |
| 11:14:46.569 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 11:14:46.570 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1717) ORDER BY "id" |
| 11:14:46.570 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_carbon_copy_rels" WHERE "erp_sales_order_id"=1717 |
| 11:14:46.571 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.571 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.571 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1717 |
| 11:14:46.572 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 11:14:46.572 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1001, '20007', 1717, '刘人诚通过了这个审批', TRUE, 'XSDD-20260605-00006') RETURNING "id" |
| 11:14:46.573 | 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\Comments', 220741, 'a:11:{s:2:"id";i:220741;s:9:"object_id";i:1717;s:11:"object_type";s:5:"20007";s:6:"parent";N;s:11:"description";s:30:"刘人诚通过了这个审批";s:10:"created_by";i:1001;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:19:"XSDD-20260605-00006";}', '', 1001, '221.216.117.119') |
| 11:14:46.573 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.573 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.573 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (1717, '20007', 220741, 5087) |
| 11:14:46.576 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=5087) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
| 11:14:46.578 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.578 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.579 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.579 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3957 |
| 11:14:46.579 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.579 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.580 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:14:46.580 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:14:46.580 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:14:46.580 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "next_verify_user"=NULL WHERE "id"=1717 |
| 11:14:46.581 | 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', 1717, 'a:1:{s:16:"next_verify_user";i:1001;}', '', 1001, '221.216.117.119') |
| 11:14:46.581 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1717 |
| 11:14:46.581 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 11:14:46.582 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.582 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.582 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:14:46.582 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=2 |
| 11:14:46.583 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.583 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.583 | 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, 'project_status', 3957, 1, 1001, 'now()', '["\u5546\u673a\u6210\u4ea4"]', '["\u660e\u786e\u9700\u6c42"]', '{"d1":"\u5218\u5fae","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u660e\u786e\u9700\u6c42 <b>\u53d8\u4e3a<\/b> \u5546\u673a\u6210\u4ea4"]}') |
| 11:14:46.583 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:14:46.584 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=2 |
| 11:14:46.584 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.584 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.584 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.584 | 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, 'project_status', 3957, 1, 1001, 'now()', '["\u5546\u673a\u6210\u4ea4"]', '["\u660e\u786e\u9700\u6c42"]', array[5087], '{"d1":"\u5218\u5fae","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u660e\u786e\u9700\u6c42 <b>\u53d8\u4e3a<\/b> \u5546\u673a\u6210\u4ea4"]}') |
| 11:14:46.585 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.585 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.585 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_project_status_logs" ("project_id", "old_status", "new_status", "created_by", "created_at") VALUES (3957, 2, 3, 5087, 'now()') RETURNING "id" |
| 11:14:46.586 | 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\ProjectStatusLogs', 4373, 'a:6:{s:2:"id";i:4373;s:10:"project_id";i:3957;s:10:"new_status";i:3;s:10:"old_status";i:2;s:10:"created_by";i:5087;s:10:"created_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '221.216.117.119') |
| 11:14:46.587 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "project_status"=3, "change_status_to"=NULL, "is_verify"=FALSE WHERE "id"=3957 |
| 11:14:46.588 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3957) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:14:46.590 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.590 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.590 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=17867 |
| 11:14:46.590 | 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\ProjectChangeLogs', 17867, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '221.216.117.119') |
| 11:14:46.591 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_project_change_logs" ("project_id", "project_status", "budget", "profit_pct", "collected", "start_from", "end_at") VALUES (3957, 3, '20000000', '20', '0', 'now()', NULL) RETURNING "id" |
| 11:14:46.591 | 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\ProjectChangeLogs', 17869, 'a:8:{s:2:"id";i:17869;s:10:"project_id";i:3957;s:14:"project_status";i:3;s:6:"budget";s:8:"20000000";s:10:"profit_pct";s:2:"20";s:9:"collected";s:1:"0";s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.591 | 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', 3957, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:14:46.592 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.592 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.592 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sources" SET "project_status"=3 WHERE "project_id"=3957 |
| 11:14:46.593 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.593 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 11:14:46.594 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=2 |
| 11:14:46.594 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:14:46.594 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3957 |
| 11:14:46.594 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.594 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.595 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3957 |
| 11:14:46.595 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087) |
| 11:14:46.595 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "is_system", "description", "description2") VALUES (5087, '1', 3957, TRUE, '刘微更新了一条商机状态明确需求变为商机成交', '预算2000万') RETURNING "id" |
| 11:14:46.596 | 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\Comments', 220742, 'a:11:{s:2:"id";i:220742;s:9:"object_id";i:3957;s:11:"object_type";s:1:"1";s:6:"parent";N;s:11:"description";s:63:"刘微更新了一条商机状态明确需求变为商机成交";s:10:"created_by";i:5087;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:13:"预算2000万";}', '', 1001, '221.216.117.119') |
| 11:14:46.596 | info | yii\db\Command::execute | |
| 11:14:46.596 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1001) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
| 11:14:46.596 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 11:14:46.597 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:14:46.597 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:14:46.597 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:14:46.597 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3957 |
| 11:14:46.598 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.598 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.598 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE ("created_at" >= '2026-06-05 00:00:00') AND ("created_at" <= '2026-06-05 23:59:59') AND ("serial_no" ILIKE '%2026-06-05-%') AND (LENGTH(serial_no) = 14) ORDER BY "serial_no" DESC |
| 11:14:46.602 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_contracts" ("contract_type", "client_id", "project_id", "from_project", "amount", "signed_at", "handler", "created_by", "build_by_project", "need_analysis", "serial_no", "erp_un_settle_amount") VALUES (1, 2130, 3957, 3957, '20000000', '2026-06-05', 5087, 5087, TRUE, TRUE, '2026-06-05-006', '20000000') RETURNING "id" |
| 11:14:46.603 | 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\SalesContracts', 4496, 'a:45:{s:2:"id";i:4496;s:9:"client_id";i:2130;s:9:"signed_at";s:10:"2026-06-05";s:6:"amount";s:8:"20000000";s:7:"handler";i:5087;s:11:"description";N;s:10:"created_by";i:5087;s:10:"created_at";N;s:10:"updated_at";N;s:13:"contract_scan";N;s:12:"receipt_scan";N;s:13:"contract_type";i:1;s:10:"project_id";i:3957;s:10:"valid_date";N;s:11:"expire_date";N;s:3:"sla";N;s:12:"remind_ahead";N;s:19:"expire_remind_ahead";N;s:15:"expire_reminded";N;s:9:"serial_no";s:14:"2026-06-05-006";s:31:"payment_collection_remind_ahead";N;s:12:"from_project";i:3957;s:12:"receipt_date";N;s:11:"verify_date";N;s:13:"including_tax";N;s:16:"build_by_project";b:1;s:13:"need_analysis";b:1;s:9:"is_settle";N;s:10:"is_deliver";N;s:11:"is_outbound";N;s:18:"is_save_collection";N;s:18:"save_collection_at";N;s:9:"is_verify";N;s:8:"is_draft";N;s:17:"erp_settle_amount";N;s:20:"erp_un_settle_amount";s:8:"20000000";s:28:"erp_payment_ticket_is_verify";N;s:28:"erp_collect_ticket_is_verify";N;s:30:"erp_cash_cost_ticket_is_verify";N;s:21:"erp_all_settle_amount";N;s:21:"receipt_scan_uploaded";N;s:20:"verify_scan_uploaded";N;s:22:"contract_scan_uploaded";N;s:14:"is_edit_verify";N;s:20:"is_chargeback_verify";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.604 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.604 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3957 |
| 11:14:46.604 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "sales_contract_id"=4496 WHERE "id"=1717 |
| 11:14:46.605 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4496 |
| 11:14:46.605 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.606 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.606 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_cash_cost_tickets" SET "sales_contract_id"=4496 WHERE "reimbursement_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_reimbursements" WHERE "project_id"=3957) |
| 11:14:46.609 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 4496, 7, 1001, '2026-06-05 11:14:46', '{"id":4496,"client_id":2130,"signed_at":"2026-06-05","amount":"20000000","handler":5087,"description":null,"created_by":5087,"created_at":"2026-06-05 11:14:46","updated_at":"2026-06-05 11:14:46","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3957,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-006","payment_collection_remind_ahead":"00:00:00","from_project":3957,"receipt_date":null,"verify_date":null,"including_tax":true,"build_by_project":true,"need_analysis":true,"is_settle":false,"is_deliver":false,"is_outbound":false,"is_save_collection":false,"save_collection_at":null,"is_verify":false,"is_draft":false,"erp_settle_amount":null,"erp_un_settle_amount":"20000000","erp_payment_ticket_is_verify":false,"erp_collect_ticket_is_verify":false,"erp_cash_cost_ticket_is_verify":false,"erp_all_settle_amount":"0","receipt_scan_uploaded":false,"verify_scan_uploaded":false,"contract_scan_uploaded":false,"is_edit_verify":false,"is_chargeback_verify":false}', '{"id":4496,"client_id":2130,"signed_at":"2026-06-05","amount":"20000000","handler":5087,"description":null,"created_by":5087,"created_at":"2026-06-05 11:14:46","updated_at":"2026-06-05 11:14:46","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3957,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-006","payment_collection_remind_ahead":"00:00:00","from_project":3957,"receipt_date":null,"verify_date":null,"including_tax":true,"build_by_project":true,"need_analysis":true,"is_settle":false,"is_deliver":false,"is_outbound":false,"is_save_collection":false,"save_collection_at":null,"is_verify":false,"is_draft":false,"erp_settle_amount":null,"erp_un_settle_amount":"20000000","erp_payment_ticket_is_verify":false,"erp_collect_ticket_is_verify":false,"erp_cash_cost_ticket_is_verify":false,"erp_all_settle_amount":"0","receipt_scan_uploaded":false,"verify_scan_uploaded":false,"contract_scan_uploaded":false,"is_edit_verify":false,"is_chargeback_verify":false}', '{"d1":"\u5218\u5fae","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":[]}') RETURNING "id" |
| 11:14:46.611 | 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', 641318, 'a:13:{s:2:"id";i:641318;s:9:"object_id";i:4496;s:11:"object_type";i:7;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:1077:"{"id":4496,"client_id":2130,"signed_at":"2026-06-05","amount":"20000000","handler":5087,"description":null,"created_by":5087,"created_at":"2026-06-05 11:14:46","updated_at":"2026-06-05 11:14:46","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3957,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-006","payment_collection_remind_ahead":"00:00:00","from_project":3957,"receipt_date":null,"verify_date":null,"including_tax":true,"build_by_project":true,"need_analysis":true,"is_settle":false,"is_deliver":false,"is_outbound":false,"is_save_collection":false,"save_collection_at":null,"is_verify":false,"is_draft":false,"erp_settle_amount":null,"erp_un_settle_amount":"20000000","erp_payment_ticket_is_verify":false,"erp_collect_ticket_is_verify":false,"erp_cash_cost_ticket_is_verify":false,"erp_all_settle_amount":"0","receipt_scan_uploaded":false,"verify_scan_uploaded":false,"contract_scan_uploaded":false,"is_edit_verify":false,"is_chargeback_verify":false}";s:9:"new_value";s:1077:"{"id":4496,"client_id":2130,"signed_at":"2026-06-05","amount":"20000000","handler":5087,"description":null,"created_by":5087,"created_at":"2026-06-05 11:14:46","updated_at":"2026-06-05 11:14:46","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3957,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-006","payment_collection_remind_ahead":"00:00:00","from_project":3957,"receipt_date":null,"verify_date":null,"including_tax":true,"build_by_project":true,"need_analysis":true,"is_settle":false,"is_deliver":false,"is_outbound":false,"is_save_collection":false,"save_collection_at":null,"is_verify":false,"is_draft":false,"erp_settle_amount":null,"erp_un_settle_amount":"20000000","erp_payment_ticket_is_verify":false,"erp_collect_ticket_is_verify":false,"erp_cash_cost_ticket_is_verify":false,"erp_all_settle_amount":"0","receipt_scan_uploaded":false,"verify_scan_uploaded":false,"contract_scan_uploaded":false,"is_edit_verify":false,"is_chargeback_verify":false}";s:11:"description";s:87:"{"d1":"\u5218\u5fae","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-05 11:14:46";s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.613 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.617 | 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 (1, 'create', 2130, 10, 4496, 7, 1001, '[4496]', '[4496]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-006"]}') RETURNING "id" |
| 11:14:46.618 | 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', 641319, 'a:13:{s:2:"id";i:641319;s:9:"object_id";i:2130;s:11:"object_type";i:10;s:9:"target_id";i:4496;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[4496]";s:9:"new_value";s:6:"[4496]";s:11:"description";s:134:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-006"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.618 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.619 | 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 (1, 'create', 3957, 1, 4496, 7, 1001, '[4496]', '[4496]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-006"]}') RETURNING "id" |
| 11:14:46.620 | 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', 641320, 'a:13:{s:2:"id";i:641320;s:9:"object_id";i:3957;s:11:"object_type";i:1;s:9:"target_id";i:4496;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[4496]";s:9:"new_value";s:6:"[4496]";s:11:"description";s:134:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-006"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.620 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.621 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.622 | 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 (1, 'create', 3957, 1, 4496, 7, 1001, '4496', '4496', array[5087], '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-006"]}') RETURNING "id" |
| 11:14:46.622 | 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', 171966, 'a:15:{s:2:"id";i:171966;s:9:"object_id";i:3957;s:11:"object_type";i:1;s:9:"target_id";i:4496;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"4496";s:9:"new_value";s:4:"4496";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[5087]";s:6:"params";a:0:{}}s:11:"description";s:134:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-006"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.623 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "project_id"=3957 |
| 11:14:46.624 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.624 | 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, 'payment_collection_remind_ahead', 3957, 1, 1001, 'now()', '["\u63d0\u524d1\u5929"]', '["\u4e0d\u63d0\u9192"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u6536\u6b3e\u63d0\u9192\u65f6\u95f4","d4":["\u4e0d\u63d0\u9192 <b>\u53d8\u4e3a<\/b> \u63d0\u524d1\u5929"]}') |
| 11:14:46.625 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.625 | 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, 'payment_collection_remind_ahead', 3957, 1, 1001, 'now()', '["\u63d0\u524d1\u5929"]', '["\u4e0d\u63d0\u9192"]', array[5087], '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u6536\u6b3e\u63d0\u9192\u65f6\u95f4","d4":["\u4e0d\u63d0\u9192 <b>\u53d8\u4e3a<\/b> \u63d0\u524d1\u5929"]}') |
| 11:14:46.626 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3957 ORDER BY "id") |
| 11:14:46.627 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "payment_collection_remind_ahead"='1 day', "is_draft"=TRUE, "is_save_collection"=TRUE, "save_collection_at"='now()' WHERE "id"=4496 |
| 11:14:46.628 | 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', 4496, 'a:28:{s:11:"description";N;s:13:"contract_scan";N;s:12:"receipt_scan";N;s:10:"valid_date";N;s:11:"expire_date";N;s:3:"sla";N;s:12:"remind_ahead";N;s:19:"expire_remind_ahead";N;s:15:"expire_reminded";N;s:31:"payment_collection_remind_ahead";s:5:"1 day";s:12:"receipt_date";N;s:11:"verify_date";N;s:13:"including_tax";N;s:9:"is_settle";N;s:10:"is_deliver";N;s:11:"is_outbound";N;s:18:"save_collection_at";s:5:"now()";s:9:"is_verify";N;s:17:"erp_settle_amount";N;s:28:"erp_payment_ticket_is_verify";N;s:28:"erp_collect_ticket_is_verify";N;s:30:"erp_cash_cost_ticket_is_verify";N;s:21:"erp_all_settle_amount";N;s:21:"receipt_scan_uploaded";N;s:20:"verify_scan_uploaded";N;s:22:"contract_scan_uploaded";N;s:14:"is_edit_verify";N;s:20:"is_chargeback_verify";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.628 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.629 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3957 |
| 11:14:46.630 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_contract_default_remind_users" WHERE ("user_id"=5087) AND ("type"=1) |
| 11:14:46.630 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.630 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.630 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_contract_default_remind_users" ("user_id", "remind_user", "type") VALUES (5087, 1001, 1), (5087, 5087, 1) |
| 11:14:46.631 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4496 |
| 11:14:46.632 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001' |
| 11:14:46.633 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='5087' |
| 11:14:46.633 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.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, 'salesContractPaymentCollectionRemindReceivers', 4496, 7, 1001, 'now()', '[["\u5218\u4eba\u8bda","\u5218\u5fae"]]', '[[]]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u6536\u6b3e\u63d0\u9192\u4eba","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u5218\u4eba\u8bda;\u5218\u5fae;"]}') |
| 11:14:46.634 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4496 |
| 11:14:46.635 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.635 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.635 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" ("contract_id", "user_id") VALUES (4496, 1001) RETURNING "id" |
| 11:14:46.636 | 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\SalesContractPaymentCollectionRemindReceivers', 10159, 'a:3:{s:2:"id";i:10159;s:11:"contract_id";i:4496;s:7:"user_id";s:4:"1001";}', '', 1001, '221.216.117.119') |
| 11:14:46.637 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" ("contract_id", "user_id") VALUES (4496, 5087) RETURNING "id" |
| 11:14:46.637 | 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\SalesContractPaymentCollectionRemindReceivers', 10160, 'a:3:{s:2:"id";i:10160;s:11:"contract_id";i:4496;s:7:"user_id";s:4:"5087";}', '', 1001, '221.216.117.119') |
| 11:14:46.638 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4496 |
| 11:14:46.638 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.639 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.639 | 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"=4496 |
| 11:14:46.639 | 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"=4496) AND ("t"."status" IN (2, 5, 1)) |
| 11:14:46.640 | info | yii\db\Command::query | SELECT r.amount, t.wrote_date as 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"=4496) AND ("t"."status" IN (2, 5, 1)) |
| 11:14:46.642 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3957 |
| 11:14:46.642 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4496 |
| 11:14:46.644 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3957) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:14:46.646 | 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', 3957, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:14:46.646 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.647 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4496) AND (amount > paid_amount) ORDER BY "remind_date" |
| 11:14:46.648 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4496 |
| 11:14:46.648 | 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"=4496) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) |
| 11:14:46.649 | 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"=4496) AND ("t"."status" IN (2, 5)) |
| 11:14:46.650 | 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"=4496) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 11:14:46.653 | 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"=4496) AND ("t"."status"=1)) |
| 11:14:46.653 | 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"=4496) AND ("t"."status"=1)) |
| 11:14:46.654 | 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"=4496) AND ("t"."status"=1)) |
| 11:14:46.655 | 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"=4496) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (1, 2, 5)) |
| 11:14:46.656 | 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"=4496) AND ("t"."status" IN (1, 2, 5)) |
| 11:14:46.656 | 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"=4496) AND ("t"."status" IN (1, 2, 5)) |
| 11:14:46.657 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "erp_settle_amount"='0', "erp_un_settle_amount"='20000000', "erp_all_settle_amount"='0' WHERE "id"=4496 |
| 11:14:46.658 | 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', 4496, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:14:46.659 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.659 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3957 |
| 11:14:46.660 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3957 |
| 11:14:46.661 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "collected"='0' WHERE "id"=3957 |
| 11:14:46.662 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3957) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:14:46.665 | 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', 3957, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:14:46.665 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.666 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_status_logs" WHERE "project_id"=3957 ORDER BY "created_at" DESC |
| 11:14:46.667 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4496 |
| 11:14:46.668 | 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"=4496 |
| 11:14:46.668 | 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"=4496) AND ("t"."status" IN (2, 5, 1)) |
| 11:14:46.669 | info | yii\db\Command::query | SELECT r.amount, t.wrote_date as 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"=4496) AND ("t"."status" IN (2, 5, 1)) |
| 11:14:46.669 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3957 |
| 11:14:46.670 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4496 |
| 11:14:46.671 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3957) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:14:46.674 | 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', 3957, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:14:46.674 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.675 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4496) AND (amount > paid_amount) ORDER BY "remind_date" |
| 11:14:46.675 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.677 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=2130 |
| 11:14:46.678 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2130) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:14:46.716 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.716 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.716 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2130, 5087, 'now()', NULL) RETURNING "id" |
| 11:14:46.717 | 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', 199915, 'a:5:{s:2:"id";i:199915;s:9:"client_id";i:2130;s:9:"sales_rep";i:5087;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.718 | 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', 2130, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:14:46.718 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.719 | 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', 2130, 10, 3957, 1, 1001, '[3957]', '[3957]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u4e2d\u56fd\u4eba\u6c11\u89e3\u653e\u519b\u603b\u53c2\u8c0b\u90e8\u7b2c\u4e94\u5341\u4e00\u7814\u7a76\u6240\u8bd5\u5236\u5de5\u5382-\u9ad8\u6027\u80fd"]}') RETURNING "id" |
| 11:14:46.719 | 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', 641323, 'a:13:{s:2:"id";i:641323;s:9:"object_id";i:2130;s:11:"object_type";i:10;s:9:"target_id";i:3957;s:18:"target_object_type";i:1;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3957]";s:9:"new_value";s:6:"[3957]";s:11:"description";s:234:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u4e2d\u56fd\u4eba\u6c11\u89e3\u653e\u519b\u603b\u53c2\u8c0b\u90e8\u7b2c\u4e94\u5341\u4e00\u7814\u7a76\u6240\u8bd5\u5236\u5de5\u5382-\u9ad8\u6027\u80fd"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.720 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2130 |
| 11:14:46.720 | info | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2026-01-01 00:00:00') AND ("bargain_date" <= '2026-12-31 23:59:59') AND ("client_id"=2130) |
| 11:14:46.730 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "cooperate_count"=1 WHERE "id"=2130 |
| 11:14:46.733 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2130) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:14:46.770 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2130, 5087, 'now()', NULL) RETURNING "id" |
| 11:14:46.770 | 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', 199916, 'a:5:{s:2:"id";i:199916;s:9:"client_id";i:2130;s:9:"sales_rep";i:5087;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 11:14:46.771 | 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', 2130, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:14:46.771 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:14:46.771 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:14:46.771 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:14:46.771 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:14:46.772 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:14:46.772 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:14:46.772 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3957 |
| 11:14:46.772 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=3957) |
| 11:14:46.773 | 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', 1717, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:14:46.774 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE 0=1 |
| 11:14:46.774 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1717 |
| 11:14:46.775 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.775 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.775 | info | yii\db\Command::query | INSERT 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, 20007, 'XSDD-20260605-00006', '2026-06-05', NULL, NULL, '20000000', 2130, NULL, NULL, NULL, 5087, '2026-06-05 11:14:07', '2026-06-05 11:14:46', 1717, '2026-06-05 11:14:46.56681+08') RETURNING "id" |
| 11:14:46.778 | 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\ErpTicketChangeLogs', 2935, 'a:17:{s:2:"id";i:2935;s:9:"serial_no";s:19:"XSDD-20260605-00006";s:11:"ticket_type";i:20007;s:10:"wrote_date";s:10:"2026-06-05";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:2130;s:8:"abstract";N;s:11:"description";N;s:9:"verify_at";s:28:"2026-06-05 11:14:46.56681+08";s:10:"created_by";i:5087;s:10:"created_at";s:19:"2026-06-05 11:14:07";s:10:"updated_at";s:19:"2026-06-05 11:14:46";s:10:"contact_id";N;s:7:"user_id";N;s:6:"amount";s:8:"20000000";s:9:"object_id";i:1717;}', '', 1001, '221.216.117.119') |
| 11:14:46.778 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.781 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.785 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (2935, 5087) |
| 11:14:46.792 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.799 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:14:46.805 | 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 (6, 'status', 1717, 20007, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '[]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u540c\u610f\u4e86","d3":"\u9500\u552e\u8ba2\u5355\u7533\u8bf7","d4":""}') |
| 11:14:46.805 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=20007) AND ("object_id"=1717) AND ("remind_user_id"=1001) AND ("is_read"=FALSE) |
| 11:14:46.837 | trace | yii\db\Transaction::commit | Commit transaction |
| 11:14:46.840 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.841 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:14:46.841 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-sales-order/verify', '{"id":"1717","description":"","web_access_token":"l4p3M_87vSdo8QF-blMLH4iPaepKw7vp"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u9500\u552e\u8ba2\u5355\u5ba1\u6279\u901a\u8fc7","error":""}],"mod":0,"ip":"221.216.117.119","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-05 11:14:46', 281601024) RETURNING "id" |
| 11:14:46.842 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:14:46.843 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |