| 11:12:59.690 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 11:12:59.690 | trace | yii\base\Module::getModule | Loading module: debug |
| 11:12:59.690 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 11:12:59.690 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 11:12:59.691 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 11:12:59.691 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.691 | info | time tracing start | 1780629179691476992 |
| 11:12:59.691 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 11:12:59.691 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-order/verify' |
| 11:12:59.691 | trace | yii\base\Module::getModule | Loading module: vue |
| 11:12:59.692 | info | yii\web\Session::open | Session started |
| 11:12:59.692 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:12:59.692 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 11:12:59.694 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.694 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.694 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.695 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.695 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.697 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-order/verify |
| 11:12:59.697 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.699 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewErp |
| 11:12:59.699 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 11:12:59.699 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: FinancialAudit |
| 11:12:59.699 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
| 11:12:59.699 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOrderController::actionVerify() |
| 11:12:59.700 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1703' |
| 11:12:59.702 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.702 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.703 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1703) ORDER BY "id" |
| 11:12:59.704 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.704 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.704 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.705 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.706 | trace | yii\db\Transaction::begin | Begin transaction |
| 11:12:59.706 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_verify_rels" SET "status"=1, "description"='', "verify_at"='now()' WHERE "id"=136 |
| 11:12:59.707 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.707 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.707 | 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', 136, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 11:12:59.710 | 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"=1703) ORDER BY "id") "c" |
| 11:12:59.712 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=1703 |
| 11:12:59.714 | 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', 1703, 'a:1:{s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 11:12:59.715 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1703 |
| 11:12:59.716 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.717 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1703) ORDER BY "id" |
| 11:12:59.717 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_carbon_copy_rels" WHERE "erp_sales_order_id"=1703 |
| 11:12:59.718 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.718 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.718 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1703 |
| 11:12:59.720 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 11:12:59.720 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1001, '20007', 1703, '刘人诚通过了这个审批', TRUE, 'XSDD-20260522-00002') RETURNING "id" |
| 11:12:59.721 | 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', 220735, 'a:11:{s:2:"id";i:220735;s:9:"object_id";i:1703;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-00002";}', '', 1001, '221.216.117.119') |
| 11:12:59.723 | 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:59.723 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.725 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.725 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.726 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4168 |
| 11:12:59.728 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.728 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.729 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:59.729 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:59.729 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:59.729 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "next_verify_user"=NULL WHERE "id"=1703 |
| 11:12:59.730 | 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', 1703, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:59.731 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1703 |
| 11:12:59.731 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.732 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.732 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.732 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:12:59.733 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=2 |
| 11:12:59.734 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.734 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.734 | 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', 4168, 1, 1001, 'now()', '["\u5546\u673a\u6210\u4ea4"]', '["\u660e\u786e\u9700\u6c42"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u660e\u786e\u9700\u6c42 <b>\u53d8\u4e3a<\/b> \u5546\u673a\u6210\u4ea4"]}') |
| 11:12:59.735 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:12:59.736 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=2 |
| 11:12:59.738 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.739 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.739 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.739 | 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', 4168, 1, 1001, 'now()', '["\u5546\u673a\u6210\u4ea4"]', '["\u660e\u786e\u9700\u6c42"]', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u660e\u786e\u9700\u6c42 <b>\u53d8\u4e3a<\/b> \u5546\u673a\u6210\u4ea4"]}') |
| 11:12:59.740 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.740 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.740 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_project_status_logs" ("project_id", "old_status", "new_status", "created_by", "created_at") VALUES (4168, 2, 3, 1001, 'now()') RETURNING "id" |
| 11:12:59.741 | 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', 4370, 'a:6:{s:2:"id";i:4370;s:10:"project_id";i:4168;s:10:"new_status";i:3;s:10:"old_status";i:2;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:59.743 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "project_status"=3, "change_status_to"=NULL, "is_verify"=FALSE WHERE "id"=4168 |
| 11:12:59.745 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4168) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:59.748 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.748 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.748 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=17819 |
| 11:12:59.749 | 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', 17819, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '221.216.117.119') |
| 11:12:59.750 | 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 (4168, 3, '900', '10', '0', 'now()', NULL) RETURNING "id" |
| 11:12:59.750 | 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', 17866, 'a:8:{s:2:"id";i:17866;s:10:"project_id";i:4168;s:14:"project_status";i:3;s:6:"budget";s:3:"900";s:10:"profit_pct";s:2:"10";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:59.751 | 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', 4168, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:59.753 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.754 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.754 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sources" SET "project_status"=3 WHERE "project_id"=4168 |
| 11:12:59.765 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.766 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.767 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=2 |
| 11:12:59.767 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:12:59.768 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=4168 |
| 11:12:59.768 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4168 |
| 11:12:59.770 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 11:12:59.771 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "is_system", "description", "description2") VALUES (1001, '1', 4168, TRUE, '刘人诚更新了一条商机状态明确需求变为商机成交', '') RETURNING "id" |
| 11:12:59.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 ('INSERT', 'app\models\Comments', 220736, 'a:11:{s:2:"id";i:220736;s:9:"object_id";i:4168;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:59.772 | 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:59.772 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.772 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:59.773 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:59.773 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:59.773 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=4168 |
| 11:12:59.776 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.776 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.777 | 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:59.779 | 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, 3009, 4168, 4168, '900', '2026-05-22', 1001, 1001, TRUE, TRUE, '2026-06-05-004', '900') RETURNING "id" |
| 11:12:59.781 | 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', 4494, 'a:45:{s:2:"id";i:4494;s:9:"client_id";i:3009;s:9:"signed_at";s:10:"2026-05-22";s:6:"amount";s:3:"900";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:4168;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-004";s:31:"payment_collection_remind_ahead";N;s:12:"from_project";i:4168;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:3:"900";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:59.782 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.785 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4168 |
| 11:12:59.786 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "sales_contract_id"=4494 WHERE "id"=1703 |
| 11:12:59.788 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4494 |
| 11:12:59.789 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.790 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.790 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_cash_cost_tickets" SET "sales_contract_id"=4494 WHERE "reimbursement_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_reimbursements" WHERE "project_id"=4168) |
| 11:12:59.793 | 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', 4494, 7, 1001, '2026-06-05 11:12:59', '{"id":4494,"client_id":3009,"signed_at":"2026-05-22","amount":"900","handler":1001,"description":null,"created_by":1001,"created_at":"2026-06-05 11:12:59","updated_at":"2026-06-05 11:12:59","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":4168,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-004","payment_collection_remind_ahead":"00:00:00","from_project":4168,"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":"900","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":4494,"client_id":3009,"signed_at":"2026-05-22","amount":"900","handler":1001,"description":null,"created_by":1001,"created_at":"2026-06-05 11:12:59","updated_at":"2026-06-05 11:12:59","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":4168,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-004","payment_collection_remind_ahead":"00:00:00","from_project":4168,"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":"900","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:59.794 | 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', 641296, 'a:13:{s:2:"id";i:641296;s:9:"object_id";i:4494;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:1067:"{"id":4494,"client_id":3009,"signed_at":"2026-05-22","amount":"900","handler":1001,"description":null,"created_by":1001,"created_at":"2026-06-05 11:12:59","updated_at":"2026-06-05 11:12:59","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":4168,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-004","payment_collection_remind_ahead":"00:00:00","from_project":4168,"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":"900","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:1067:"{"id":4494,"client_id":3009,"signed_at":"2026-05-22","amount":"900","handler":1001,"description":null,"created_by":1001,"created_at":"2026-06-05 11:12:59","updated_at":"2026-06-05 11:12:59","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":4168,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-004","payment_collection_remind_ahead":"00:00:00","from_project":4168,"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":"900","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:59";s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:59.795 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.796 | 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', 3009, 10, 4494, 7, 1001, '[4494]', '[4494]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-004"]}') RETURNING "id" |
| 11:12:59.796 | 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', 641297, 'a:13:{s:2:"id";i:641297;s:9:"object_id";i:3009;s:11:"object_type";i:10;s:9:"target_id";i:4494;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[4494]";s:9:"new_value";s:6:"[4494]";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-004"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:59.797 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.797 | 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', 4168, 1, 4494, 7, 1001, '[4494]', '[4494]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-004"]}') RETURNING "id" |
| 11:12:59.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', 641298, 'a:13:{s:2:"id";i:641298;s:9:"object_id";i:4168;s:11:"object_type";i:1;s:9:"target_id";i:4494;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[4494]";s:9:"new_value";s:6:"[4494]";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-004"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:59.802 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.805 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.807 | 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', 4168, 1, 4494, 7, 1001, '4494', '4494', array[1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-004"]}') RETURNING "id" |
| 11:12:59.808 | 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', 171958, 'a:15:{s:2:"id";i:171958;s:9:"object_id";i:4168;s:11:"object_type";i:1;s:9:"target_id";i:4494;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"4494";s:9:"new_value";s:4:"4494";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-004"]}";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:59.809 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "project_id"=4168 |
| 11:12:59.811 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.811 | 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', 4168, 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:59.812 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.813 | 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', 4168, 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:59.814 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=4168 ORDER BY "id") |
| 11:12:59.815 | 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"=4494 |
| 11:12:59.816 | 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', 4494, '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:59.816 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.817 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4168 |
| 11:12:59.818 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_contract_default_remind_users" WHERE ("user_id"=1001) AND ("type"=1) |
| 11:12:59.818 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.819 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.819 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_contract_default_remind_users" ("user_id", "remind_user", "type") VALUES (1001, 1001, 1), (1001, 5087, 1) |
| 11:12:59.820 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4494 |
| 11:12:59.820 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001' |
| 11:12:59.821 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='5087' |
| 11:12:59.822 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.822 | 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', 4494, 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:12:59.823 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4494 |
| 11:12:59.823 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.824 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.824 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" ("contract_id", "user_id") VALUES (4494, 1001) RETURNING "id" |
| 11:12:59.825 | 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', 10156, 'a:3:{s:2:"id";i:10156;s:11:"contract_id";i:4494;s:7:"user_id";s:4:"1001";}', '', 1001, '221.216.117.119') |
| 11:12:59.825 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" ("contract_id", "user_id") VALUES (4494, 5087) RETURNING "id" |
| 11:12:59.826 | 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', 10157, 'a:3:{s:2:"id";i:10157;s:11:"contract_id";i:4494;s:7:"user_id";s:4:"5087";}', '', 1001, '221.216.117.119') |
| 11:12:59.827 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4494 |
| 11:12:59.829 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.829 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.830 | 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"=4494 |
| 11:12:59.834 | 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"=4494) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:59.836 | 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"=4494) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:59.838 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4168 |
| 11:12:59.839 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4494 |
| 11:12:59.840 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4168) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:59.843 | 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', 4168, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:59.843 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.844 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4494) AND (amount > paid_amount) ORDER BY "remind_date" |
| 11:12:59.845 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4494 |
| 11:12:59.845 | 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"=4494) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) |
| 11:12:59.846 | 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"=4494) AND ("t"."status" IN (2, 5)) |
| 11:12:59.847 | 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"=4494) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 11:12:59.850 | 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"=4494) AND ("t"."status"=1)) |
| 11:12:59.851 | 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"=4494) AND ("t"."status"=1)) |
| 11:12:59.852 | 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"=4494) AND ("t"."status"=1)) |
| 11:12:59.853 | 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"=4494) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (1, 2, 5)) |
| 11:12:59.853 | 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"=4494) AND ("t"."status" IN (1, 2, 5)) |
| 11:12:59.854 | 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"=4494) AND ("t"."status" IN (1, 2, 5)) |
| 11:12:59.855 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "erp_settle_amount"='0', "erp_un_settle_amount"='900', "erp_all_settle_amount"='0' WHERE "id"=4494 |
| 11:12:59.856 | 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', 4494, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:59.856 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.857 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4168 |
| 11:12:59.858 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4168 |
| 11:12:59.859 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "collected"='0' WHERE "id"=4168 |
| 11:12:59.860 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4168) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:59.863 | 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', 4168, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:59.863 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.864 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_status_logs" WHERE "project_id"=4168 ORDER BY "created_at" DESC |
| 11:12:59.865 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4494 |
| 11:12:59.866 | 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"=4494 |
| 11:12:59.866 | 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"=4494) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:59.867 | 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"=4494) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:59.867 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4168 |
| 11:12:59.868 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4494 |
| 11:12:59.869 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4168) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:59.871 | 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', 4168, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:59.872 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.872 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4494) AND (amount > paid_amount) ORDER BY "remind_date" |
| 11:12:59.873 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.874 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=3009 |
| 11:12:59.875 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3009) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:59.911 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.912 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.913 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3009, 1001, 'now()', NULL) RETURNING "id" |
| 11:12:59.914 | 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', 199907, 'a:5:{s:2:"id";i:199907;s:9:"client_id";i:3009;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:59.915 | 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', 3009, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:59.915 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.916 | 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', 3009, 10, 4168, 1, 1001, '[4168]', '[4168]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u7a0e\u8d4b\u5927\u662f\u5927\u975e"]}') RETURNING "id" |
| 11:12:59.916 | 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', 641301, 'a:13:{s:2:"id";i:641301;s:9:"object_id";i:3009;s:11:"object_type";i:10;s:9:"target_id";i:4168;s:18:"target_object_type";i:1;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[4168]";s:9:"new_value";s:6:"[4168]";s:11:"description";s:119:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u7a0e\u8d4b\u5927\u662f\u5927\u975e"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:59.917 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009 |
| 11:12:59.917 | 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"=3009) |
| 11:12:59.920 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "cooperate_count"=1 WHERE "id"=3009 |
| 11:12:59.925 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3009) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:59.961 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3009, 1001, 'now()', NULL) RETURNING "id" |
| 11:12:59.961 | 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', 199908, 'a:5:{s:2:"id";i:199908;s:9:"client_id";i:3009;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:59.962 | 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', 3009, 'a:1:{s:15:"cooperate_count";i:1;}', '', 1001, '221.216.117.119') |
| 11:12:59.962 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:59.962 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:59.962 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:59.962 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:59.963 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:59.963 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:59.963 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4168 |
| 11:12:59.963 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=4168) |
| 11:12:59.965 | 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', 1703, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:59.965 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE 0=1 |
| 11:12:59.966 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1703 |
| 11:12:59.966 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.966 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.966 | 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-00002', '2026-05-22', NULL, NULL, '900', 3009, NULL, NULL, NULL, 1001, '2026-05-22 16:49:10', '2026-06-05 11:12:59', 1703, '2026-06-05 11:12:59.706775+08') RETURNING "id" |
| 11:12:59.968 | 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', 2933, 'a:17:{s:2:"id";i:2933;s:9:"serial_no";s:19:"XSDD-20260522-00002";s:11:"ticket_type";i:20007;s:10:"wrote_date";s:10:"2026-05-22";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:3009;s:8:"abstract";N;s:11:"description";N;s:9:"verify_at";s:29:"2026-06-05 11:12:59.706775+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-05-22 16:49:10";s:10:"updated_at";s:19:"2026-06-05 11:12:59";s:10:"contact_id";N;s:7:"user_id";N;s:6:"amount";s:3:"900";s:9:"object_id";i:1703;}', '', 1001, '221.216.117.119') |
| 11:12:59.971 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:59.972 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:59.972 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (2933, 1001) |
| 11:12:59.973 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.975 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:59.976 | 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', 1703, 20007, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '[]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u540c\u610f\u4e86","d3":"\u9500\u552e\u8ba2\u5355\u7533\u8bf7","d4":""}') |
| 11:12:59.976 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=20007) AND ("object_id"=1703) AND ("remind_user_id"=1001) AND ("is_read"=FALSE) |
| 11:13:00.004 | trace | yii\db\Transaction::commit | Commit transaction |
| 11:13:00.009 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:13:00.009 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:13:00.011 | 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":"1703","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:13:00', 319494912) RETURNING "id" |
| 11:13:00.022 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:13:00.029 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |