| 11:12:51.762 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 11:12:51.762 | trace | yii\base\Module::getModule | Loading module: debug |
| 11:12:51.762 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 11:12:51.763 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 11:12:51.763 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 11:12:51.763 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.763 | info | time tracing start | 1780629171763646976 |
| 11:12:51.763 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 11:12:51.763 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-order/verify' |
| 11:12:51.763 | trace | yii\base\Module::getModule | Loading module: vue |
| 11:12:51.764 | info | yii\web\Session::open | Session started |
| 11:12:51.764 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:12:51.764 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 11:12:51.765 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.765 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.766 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.766 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.766 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.767 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-order/verify |
| 11:12:51.767 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.768 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewErp |
| 11:12:51.768 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 11:12:51.768 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: FinancialAudit |
| 11:12:51.768 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
| 11:12:51.768 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOrderController::actionVerify() |
| 11:12:51.768 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1705' |
| 11:12:51.768 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.768 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.769 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1705) ORDER BY "id" |
| 11:12:51.769 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.769 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.769 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.770 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.770 | trace | yii\db\Transaction::begin | Begin transaction |
| 11:12:51.771 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_verify_rels" SET "status"=1, "description"='', "verify_at"='now()' WHERE "id"=140 |
| 11:12:51.771 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.771 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.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\ErpSalesOrderVerifyRels', 140, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 11:12:51.771 | 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"=1705) ORDER BY "id") "c" |
| 11:12:51.772 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=1705 |
| 11:12:51.772 | 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', 1705, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 11:12:51.773 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1705 |
| 11:12:51.773 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.773 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1705) ORDER BY "id" |
| 11:12:51.774 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_carbon_copy_rels" WHERE "erp_sales_order_id"=1705 |
| 11:12:51.774 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.774 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.774 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1705 |
| 11:12:51.775 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 11:12:51.775 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1001, '20007', 1705, '刘人诚通过了这个审批', TRUE, 'XSDD-20260522-00004') RETURNING "id" |
| 11:12:51.776 | 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', 220733, 'a:11:{s:2:"id";i:220733;s:9:"object_id";i:1705;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-20260522-00004";}', '', 1001, '221.216.117.119') |
| 11:12:51.776 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
| 11:12:51.776 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.777 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.777 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.777 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4151 |
| 11:12:51.778 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.778 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.778 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:51.778 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:51.778 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:51.778 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "next_verify_user"=NULL WHERE "id"=1705 |
| 11:12:51.779 | 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', 1705, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:51.779 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1705 |
| 11:12:51.779 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.780 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.780 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.780 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:12:51.780 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=5 |
| 11:12:51.781 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.781 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.781 | 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', 4151, 1, 1001, 'now()', '["\u5546\u673a\u6210\u4ea4"]', '["\u5546\u673a\u6401\u7f6e"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u5546\u673a\u6401\u7f6e <b>\u53d8\u4e3a<\/b> \u5546\u673a\u6210\u4ea4"]}') |
| 11:12:51.781 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:12:51.781 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=5 |
| 11:12:51.782 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.782 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.782 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.782 | 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', 4151, 1, 1001, 'now()', '["\u5546\u673a\u6210\u4ea4"]', '["\u5546\u673a\u6401\u7f6e"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u5546\u673a\u6401\u7f6e <b>\u53d8\u4e3a<\/b> \u5546\u673a\u6210\u4ea4"]}') |
| 11:12:51.783 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.783 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.783 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_project_status_logs" ("project_id", "old_status", "new_status", "created_by", "created_at") VALUES (4151, 5, 3, 1001, 'now()') RETURNING "id" |
| 11:12:51.783 | 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', 4369, 'a:6:{s:2:"id";i:4369;s:10:"project_id";i:4151;s:10:"new_status";i:3;s:10:"old_status";i:5;s:10:"created_by";i:1001;s:10:"created_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '221.216.117.119') |
| 11:12:51.784 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "project_status"=3, "end_at"=NULL, "change_status_to"=NULL, "is_verify"=FALSE WHERE "id"=4151 |
| 11:12:51.785 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4151) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:51.786 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.786 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.786 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=17825 |
| 11:12:51.787 | 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', 17825, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '221.216.117.119') |
| 11:12:51.787 | 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 (4151, 3, '420000', '0.03', '0', 'now()', NULL) RETURNING "id" |
| 11:12:51.787 | 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', 17865, 'a:8:{s:2:"id";i:17865;s:10:"project_id";i:4151;s:14:"project_status";i:3;s:6:"budget";s:6:"420000";s:10:"profit_pct";s:4:"0.03";s:9:"collected";s:1:"0";s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 11:12:51.788 | 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', 4151, 'a:1:{s:14:"project_status";i:5;}', '', 1001, '221.216.117.119') |
| 11:12:51.788 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.788 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.788 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sources" SET "project_status"=3 WHERE "project_id"=4151 |
| 11:12:51.788 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.789 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.789 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=5 |
| 11:12:51.789 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:12:51.790 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=4151 |
| 11:12:51.790 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4151 |
| 11:12:51.790 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 11:12:51.791 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "is_system", "description", "description2") VALUES (1001, '1', 4151, TRUE, '刘人诚更新了一条商机状态商机搁置变为商机成交', '') RETURNING "id" |
| 11:12:51.791 | 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', 220734, 'a:11:{s:2:"id";i:220734;s:9:"object_id";i:4151;s:11:"object_type";s:1:"1";s:6:"parent";N;s:11:"description";s:66:"刘人诚更新了一条商机状态商机搁置变为商机成交";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:0:"";}', '', 1001, '221.216.117.119') |
| 11:12:51.791 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
| 11:12:51.792 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.792 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:51.792 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:51.792 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:51.792 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=4151 |
| 11:12:51.793 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.793 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.793 | 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:12:51.794 | 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, 2150, 4151, 4151, '420000', '2026-04-07', 1001, 1001, TRUE, TRUE, '2026-06-05-003', '420000') RETURNING "id" |
| 11:12:51.795 | 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', 4493, 'a:45:{s:2:"id";i:4493;s:9:"client_id";i:2150;s:9:"signed_at";s:10:"2026-04-07";s:6:"amount";s:6:"420000";s:7:"handler";i:1001;s:11:"description";N;s:10:"created_by";i:1001;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:4151;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-003";s:31:"payment_collection_remind_ahead";N;s:12:"from_project";i:4151;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:6:"420000";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:12:51.795 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.796 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4151 |
| 11:12:51.796 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "sales_contract_id"=4493 WHERE "id"=1705 |
| 11:12:51.797 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4493 |
| 11:12:51.797 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.797 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.797 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_cash_cost_tickets" SET "sales_contract_id"=4493 WHERE "reimbursement_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_reimbursements" WHERE "project_id"=4151) |
| 11:12:51.799 | 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', 4493, 7, 1001, '2026-06-05 11:12:51', '{"id":4493,"client_id":2150,"signed_at":"2026-04-07","amount":"420000","handler":1001,"description":null,"created_by":1001,"created_at":"2026-06-05 11:12:51","updated_at":"2026-06-05 11:12:51","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":4151,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-003","payment_collection_remind_ahead":"00:00:00","from_project":4151,"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":"420000","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":4493,"client_id":2150,"signed_at":"2026-04-07","amount":"420000","handler":1001,"description":null,"created_by":1001,"created_at":"2026-06-05 11:12:51","updated_at":"2026-06-05 11:12:51","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":4151,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-003","payment_collection_remind_ahead":"00:00:00","from_project":4151,"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":"420000","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\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":[]}') RETURNING "id" |
| 11:12:51.799 | 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', 641288, 'a:13:{s:2:"id";i:641288;s:9:"object_id";i:4493;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:1073:"{"id":4493,"client_id":2150,"signed_at":"2026-04-07","amount":"420000","handler":1001,"description":null,"created_by":1001,"created_at":"2026-06-05 11:12:51","updated_at":"2026-06-05 11:12:51","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":4151,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-003","payment_collection_remind_ahead":"00:00:00","from_project":4151,"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":"420000","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:1073:"{"id":4493,"client_id":2150,"signed_at":"2026-04-07","amount":"420000","handler":1001,"description":null,"created_by":1001,"created_at":"2026-06-05 11:12:51","updated_at":"2026-06-05 11:12:51","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":4151,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-003","payment_collection_remind_ahead":"00:00:00","from_project":4151,"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":"420000","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:93:"{"d1":"\u5218\u4eba\u8bda","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:12:51";s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:51.800 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.800 | 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', 2150, 10, 4493, 7, 1001, '[4493]', '[4493]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-003"]}') RETURNING "id" |
| 11:12:51.800 | 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', 641289, 'a:13:{s:2:"id";i:641289;s:9:"object_id";i:2150;s:11:"object_type";i:10;s:9:"target_id";i:4493;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[4493]";s:9:"new_value";s:6:"[4493]";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-003"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:51.801 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.801 | 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', 4151, 1, 4493, 7, 1001, '[4493]', '[4493]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-003"]}') RETURNING "id" |
| 11:12:51.801 | 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', 641290, 'a:13:{s:2:"id";i:641290;s:9:"object_id";i:4151;s:11:"object_type";i:1;s:9:"target_id";i:4493;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[4493]";s:9:"new_value";s:6:"[4493]";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-003"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:51.802 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.802 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.803 | 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', 4151, 1, 4493, 7, 1001, '4493', '4493', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-003"]}') RETURNING "id" |
| 11:12:51.803 | 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', 171955, 'a:15:{s:2:"id";i:171955;s:9:"object_id";i:4151;s:11:"object_type";i:1;s:9:"target_id";i:4493;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"4493";s:9:"new_value";s:4:"4493";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1001]";s:6:"params";a:0:{}}s:11:"description";s:134:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-003"]}";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:12:51.803 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "project_id"=4151 |
| 11:12:51.804 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.804 | 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', 4151, 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:12:51.804 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.805 | 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', 4151, 1, 1001, 'now()', '["\u63d0\u524d1\u5929"]', '["\u4e0d\u63d0\u9192"]', array[1001], '{"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:12:51.805 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=4151 ORDER BY "id") |
| 11:12:51.806 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "payment_collection_remind_ahead"='1 day', "is_save_collection"=TRUE, "save_collection_at"='now()' WHERE "id"=4493 |
| 11:12:51.806 | 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', 4493, 'a:29:{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:8:"is_draft";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:12:51.806 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.807 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4151 |
| 11:12:51.807 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_contract_default_remind_users" WHERE ("user_id"=1001) AND ("type"=1) |
| 11:12:51.808 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.808 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.808 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_contract_default_remind_users" ("user_id", "remind_user", "type") VALUES (1001, 1001, 1) |
| 11:12:51.808 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4493 |
| 11:12:51.808 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001' |
| 11:12:51.809 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.809 | 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', 4493, 7, 1001, 'now()', '[["\u5218\u4eba\u8bda"]]', '[[]]', '{"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;"]}') |
| 11:12:51.809 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4493 |
| 11:12:51.810 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.810 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.810 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" ("contract_id", "user_id") VALUES (4493, 1001) RETURNING "id" |
| 11:12:51.810 | 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', 10155, 'a:3:{s:2:"id";i:10155;s:11:"contract_id";i:4493;s:7:"user_id";s:4:"1001";}', '', 1001, '221.216.117.119') |
| 11:12:51.810 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4493 |
| 11:12:51.811 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.811 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.811 | 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"=4493 |
| 11:12:51.812 | 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"=4493) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:51.812 | 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"=4493) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:51.813 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4151 |
| 11:12:51.813 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4493 |
| 11:12:51.814 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4151) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:51.815 | 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', 4151, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:51.816 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.816 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4493) AND (amount > paid_amount) ORDER BY "remind_date" |
| 11:12:51.816 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4493 |
| 11:12:51.817 | 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"=4493) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) |
| 11:12:51.817 | 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"=4493) AND ("t"."status" IN (2, 5)) |
| 11:12:51.818 | 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"=4493) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 11:12:51.819 | 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"=4493) AND ("t"."status"=1)) |
| 11:12:51.819 | 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"=4493) AND ("t"."status"=1)) |
| 11:12:51.819 | 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"=4493) AND ("t"."status"=1)) |
| 11:12:51.820 | 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"=4493) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (1, 2, 5)) |
| 11:12:51.820 | 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"=4493) AND ("t"."status" IN (1, 2, 5)) |
| 11:12:51.821 | 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"=4493) AND ("t"."status" IN (1, 2, 5)) |
| 11:12:51.822 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "erp_settle_amount"='0', "erp_un_settle_amount"='420000', "erp_all_settle_amount"='0' WHERE "id"=4493 |
| 11:12:51.822 | 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', 4493, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:51.822 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.823 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4151 |
| 11:12:51.823 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4151 |
| 11:12:51.824 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "collected"='0' WHERE "id"=4151 |
| 11:12:51.828 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4151) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:51.829 | 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', 4151, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:51.829 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.830 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_status_logs" WHERE "project_id"=4151 ORDER BY "created_at" DESC |
| 11:12:51.830 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4493 |
| 11:12:51.831 | 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"=4493 |
| 11:12:51.831 | 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"=4493) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:51.832 | 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"=4493) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:51.832 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4151 |
| 11:12:51.832 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4493 |
| 11:12:51.833 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4151) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:51.835 | 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', 4151, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:51.835 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.835 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4493) AND (amount > paid_amount) ORDER BY "remind_date" |
| 11:12:51.836 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.837 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=2150 |
| 11:12:51.837 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2150) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:51.854 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.854 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.854 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2150, 1001, 'now()', NULL) RETURNING "id" |
| 11:12:51.855 | 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', 199905, 'a:5:{s:2:"id";i:199905;s:9:"client_id";i:2150;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 11:12:51.855 | 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', 2150, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:51.855 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.856 | 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', 2150, 10, 4151, 1, 1001, '[4151]', '[4151]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["PA460 \u8bbe\u5907\u65b0\u8d2d\u9879\u76ee"]}') RETURNING "id" |
| 11:12:51.857 | 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', 641293, 'a:13:{s:2:"id";i:641293;s:9:"object_id";i:2150;s:11:"object_type";i:10;s:9:"target_id";i:4151;s:18:"target_object_type";i:1;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[4151]";s:9:"new_value";s:6:"[4151]";s:11:"description";s:125:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["PA460 \u8bbe\u5907\u65b0\u8d2d\u9879\u76ee"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:51.857 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2150 |
| 11:12:51.857 | 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"=2150) |
| 11:12:51.862 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "cooperate_count"=1 WHERE "id"=2150 |
| 11:12:51.867 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2150) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:51.899 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2150, 1001, 'now()', NULL) RETURNING "id" |
| 11:12:51.900 | 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', 199906, 'a:5:{s:2:"id";i:199906;s:9:"client_id";i:2150;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 11:12:51.900 | 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', 2150, 'a:1:{s:15:"cooperate_count";i:1;}', '', 1001, '221.216.117.119') |
| 11:12:51.901 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:51.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:51.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:51.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:51.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:51.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:51.902 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4151 |
| 11:12:51.905 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=4151) |
| 11:12:51.906 | 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', 1705, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:51.906 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE 0=1 |
| 11:12:51.907 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1705 |
| 11:12:51.907 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.907 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.907 | 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-20260522-00004', '2026-04-07', NULL, NULL, '420000', 2150, NULL, NULL, NULL, 1001, '2026-05-22 17:08:02', '2026-06-05 11:12:51', 1705, '2026-06-05 11:12:51.770866+08') RETURNING "id" |
| 11:12:51.908 | 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', 2932, 'a:17:{s:2:"id";i:2932;s:9:"serial_no";s:19:"XSDD-20260522-00004";s:11:"ticket_type";i:20007;s:10:"wrote_date";s:10:"2026-04-07";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:2150;s:8:"abstract";N;s:11:"description";N;s:9:"verify_at";s:29:"2026-06-05 11:12:51.770866+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-05-22 17:08:02";s:10:"updated_at";s:19:"2026-06-05 11:12:51";s:10:"contact_id";N;s:7:"user_id";N;s:6:"amount";s:6:"420000";s:9:"object_id";i:1705;}', '', 1001, '221.216.117.119') |
| 11:12:51.909 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.909 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.909 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (2932, 1001) |
| 11:12:51.909 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.910 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:51.910 | 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', 1705, 20007, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '[]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u540c\u610f\u4e86","d3":"\u9500\u552e\u8ba2\u5355\u7533\u8bf7","d4":""}') |
| 11:12:51.911 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=20007) AND ("object_id"=1705) AND ("remind_user_id"=1001) AND ("is_read"=FALSE) |
| 11:12:51.936 | trace | yii\db\Transaction::commit | Commit transaction |
| 11:12:51.937 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.937 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:51.938 | 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":"1705","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:12:51', 174415872) RETURNING "id" |
| 11:12:51.939 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:51.939 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |