| 11:12:45.897 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 11:12:45.897 | trace | yii\base\Module::getModule | Loading module: debug |
| 11:12:45.898 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 11:12:45.898 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 11:12:45.898 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 11:12:45.898 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.899 | info | time tracing start | 1780629165898998016 |
| 11:12:45.899 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 11:12:45.899 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-order/verify' |
| 11:12:45.899 | trace | yii\base\Module::getModule | Loading module: vue |
| 11:12:45.899 | info | yii\web\Session::open | Session started |
| 11:12:45.900 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:12:45.900 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 11:12:45.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.903 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.903 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:45.903 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-order/verify |
| 11:12:45.904 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.905 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewErp |
| 11:12:45.905 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 11:12:45.905 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: FinancialAudit |
| 11:12:45.905 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
| 11:12:45.905 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOrderController::actionVerify() |
| 11:12:45.905 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1716' |
| 11:12:45.908 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.909 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.910 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1716) ORDER BY "id" |
| 11:12:45.910 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.910 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.910 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.911 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.913 | trace | yii\db\Transaction::begin | Begin transaction |
| 11:12:45.913 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_verify_rels" SET "status"=1, "description"='', "verify_at"='now()' WHERE "id"=145 |
| 11:12:45.914 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.915 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.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\ErpSalesOrderVerifyRels', 145, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 11:12:45.921 | 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"=1716) ORDER BY "id") "c" |
| 11:12:45.922 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=1716 |
| 11:12:45.922 | 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', 1716, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 11:12:45.922 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1716 |
| 11:12:45.923 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 11:12:45.923 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1716) ORDER BY "id" |
| 11:12:45.924 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_carbon_copy_rels" WHERE "erp_sales_order_id"=1716 |
| 11:12:45.924 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.924 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.924 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1716 |
| 11:12:45.925 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 11:12:45.925 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1001, '20007', 1716, '刘人诚通过了这个审批', TRUE, 'XSDD-20260605-00005') RETURNING "id" |
| 11:12:45.928 | 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', 220731, 'a:11:{s:2:"id";i:220731;s:9:"object_id";i:1716;s:11:"object_type";s:5:"20007";s:6:"parent";N;s:11:"description";s:30:"刘人诚通过了这个审批";s:10:"created_by";i:1001;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:19:"XSDD-20260605-00005";}', '', 1001, '221.216.117.119') |
| 11:12:45.929 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.929 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.929 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (1716, '20007', 220731, 5087) |
| 11:12:45.935 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=5087) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
| 11:12:45.937 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:45.937 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.938 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.938 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3796 |
| 11:12:45.938 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.939 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.941 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:45.941 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:45.941 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:45.941 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "next_verify_user"=NULL WHERE "id"=1716 |
| 11:12:45.942 | 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', 1716, 'a:1:{s:16:"next_verify_user";i:1001;}', '', 1001, '221.216.117.119') |
| 11:12:45.942 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1716 |
| 11:12:45.943 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 11:12:45.943 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.943 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.944 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:12:45.944 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=2 |
| 11:12:45.944 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.944 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.945 | 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', 3796, 1, 1001, 'now()', '["\u5546\u673a\u6210\u4ea4"]', '["\u660e\u786e\u9700\u6c42"]', '{"d1":"\u5218\u5fae","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u660e\u786e\u9700\u6c42 <b>\u53d8\u4e3a<\/b> \u5546\u673a\u6210\u4ea4"]}') |
| 11:12:45.949 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:12:45.949 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=2 |
| 11:12:45.950 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:45.951 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.951 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.951 | 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', 3796, 1, 1001, 'now()', '["\u5546\u673a\u6210\u4ea4"]', '["\u660e\u786e\u9700\u6c42"]', array[5087], '{"d1":"\u5218\u5fae","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u660e\u786e\u9700\u6c42 <b>\u53d8\u4e3a<\/b> \u5546\u673a\u6210\u4ea4"]}') |
| 11:12:45.956 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.956 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.956 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_project_status_logs" ("project_id", "old_status", "new_status", "created_by", "created_at") VALUES (3796, 2, 3, 5087, 'now()') RETURNING "id" |
| 11:12:45.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\ProjectStatusLogs', 4368, 'a:6:{s:2:"id";i:4368;s:10:"project_id";i:3796;s:10:"new_status";i:3;s:10:"old_status";i:2;s:10:"created_by";i:5087;s:10:"created_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '221.216.117.119') |
| 11:12:45.964 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "project_status"=3, "change_status_to"=NULL, "is_verify"=FALSE WHERE "id"=3796 |
| 11:12:45.966 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3796) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:45.971 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.971 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.971 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=15998 |
| 11:12:45.973 | 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', 15998, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 1001, '221.216.117.119') |
| 11:12:45.973 | 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 (3796, 3, '790000', '25', '0', 'now()', NULL) RETURNING "id" |
| 11:12:45.976 | 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', 17864, 'a:8:{s:2:"id";i:17864;s:10:"project_id";i:3796;s:14:"project_status";i:3;s:6:"budget";s:6:"790000";s:10:"profit_pct";s:2:"25";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:45.976 | 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', 3796, 'a:1:{s:14:"project_status";i:2;}', '', 1001, '221.216.117.119') |
| 11:12:45.977 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.977 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.977 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sources" SET "project_status"=3 WHERE "project_id"=3796 |
| 11:12:45.979 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:45.980 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 11:12:45.980 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=2 |
| 11:12:45.980 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3 |
| 11:12:45.981 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3796 |
| 11:12:45.981 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.981 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.981 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3796 |
| 11:12:45.982 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087) |
| 11:12:45.982 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "is_system", "description", "description2") VALUES (5087, '1', 3796, TRUE, '刘微更新了一条商机状态明确需求变为商机成交', '') RETURNING "id" |
| 11:12:45.983 | 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', 220732, 'a:11:{s:2:"id";i:220732;s:9:"object_id";i:3796;s:11:"object_type";s:1:"1";s:6:"parent";N;s:11:"description";s:63:"刘微更新了一条商机状态明确需求变为商机成交";s:10:"created_by";i:5087;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:0:"";}', '', 1001, '221.216.117.119') |
| 11:12:45.983 | info | yii\db\Command::execute | |
| 11:12:45.983 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1001) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
| 11:12:45.983 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 11:12:45.984 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:45.984 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:45.984 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:45.984 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3796 |
| 11:12:45.985 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.985 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.985 | 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:45.986 | 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, 2125, 3796, 3796, '790000', '2026-06-05', 5087, 5087, TRUE, TRUE, '2026-06-05-002', '790000') RETURNING "id" |
| 11:12:45.990 | 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', 4492, 'a:45:{s:2:"id";i:4492;s:9:"client_id";i:2125;s:9:"signed_at";s:10:"2026-06-05";s:6:"amount";s:6:"790000";s:7:"handler";i:5087;s:11:"description";N;s:10:"created_by";i:5087;s:10:"created_at";N;s:10:"updated_at";N;s:13:"contract_scan";N;s:12:"receipt_scan";N;s:13:"contract_type";i:1;s:10:"project_id";i:3796;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-002";s:31:"payment_collection_remind_ahead";N;s:12:"from_project";i:3796;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:"790000";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:45.990 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:45.990 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3796 |
| 11:12:45.991 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "sales_contract_id"=4492 WHERE "id"=1716 |
| 11:12:45.991 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4492 |
| 11:12:45.992 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:45.992 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:45.992 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_cash_cost_tickets" SET "sales_contract_id"=4492 WHERE "reimbursement_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_reimbursements" WHERE "project_id"=3796) |
| 11:12:46.000 | 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', 4492, 7, 1001, '2026-06-05 11:12:45', '{"id":4492,"client_id":2125,"signed_at":"2026-06-05","amount":"790000","handler":5087,"description":null,"created_by":5087,"created_at":"2026-06-05 11:12:45","updated_at":"2026-06-05 11:12:45","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3796,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-002","payment_collection_remind_ahead":"00:00:00","from_project":3796,"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":"790000","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":4492,"client_id":2125,"signed_at":"2026-06-05","amount":"790000","handler":5087,"description":null,"created_by":5087,"created_at":"2026-06-05 11:12:45","updated_at":"2026-06-05 11:12:45","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3796,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-002","payment_collection_remind_ahead":"00:00:00","from_project":3796,"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":"790000","erp_payment_ticket_is_verify":false,"erp_collect_ticket_is_verify":false,"erp_cash_cost_ticket_is_verify":false,"erp_all_settle_amount":"0","receipt_scan_uploaded":false,"verify_scan_uploaded":false,"contract_scan_uploaded":false,"is_edit_verify":false,"is_chargeback_verify":false}', '{"d1":"\u5218\u5fae","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":[]}') RETURNING "id" |
| 11:12:46.000 | 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', 641280, 'a:13:{s:2:"id";i:641280;s:9:"object_id";i:4492;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":4492,"client_id":2125,"signed_at":"2026-06-05","amount":"790000","handler":5087,"description":null,"created_by":5087,"created_at":"2026-06-05 11:12:45","updated_at":"2026-06-05 11:12:45","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3796,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-002","payment_collection_remind_ahead":"00:00:00","from_project":3796,"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":"790000","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":4492,"client_id":2125,"signed_at":"2026-06-05","amount":"790000","handler":5087,"description":null,"created_by":5087,"created_at":"2026-06-05 11:12:45","updated_at":"2026-06-05 11:12:45","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3796,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":"2026-06-05-002","payment_collection_remind_ahead":"00:00:00","from_project":3796,"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":"790000","erp_payment_ticket_is_verify":false,"erp_collect_ticket_is_verify":false,"erp_cash_cost_ticket_is_verify":false,"erp_all_settle_amount":"0","receipt_scan_uploaded":false,"verify_scan_uploaded":false,"contract_scan_uploaded":false,"is_edit_verify":false,"is_chargeback_verify":false}";s:11:"description";s:87:"{"d1":"\u5218\u5fae","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-05 11:12:45";s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:46.001 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:46.002 | 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', 2125, 10, 4492, 7, 1001, '[4492]', '[4492]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-002"]}') RETURNING "id" |
| 11:12:46.002 | 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', 641281, 'a:13:{s:2:"id";i:641281;s:9:"object_id";i:2125;s:11:"object_type";i:10;s:9:"target_id";i:4492;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[4492]";s:9:"new_value";s:6:"[4492]";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-002"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:46.002 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:46.003 | 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', 3796, 1, 4492, 7, 1001, '[4492]', '[4492]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-002"]}') RETURNING "id" |
| 11:12:46.003 | 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', 641282, 'a:13:{s:2:"id";i:641282;s:9:"object_id";i:3796;s:11:"object_type";i:1;s:9:"target_id";i:4492;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[4492]";s:9:"new_value";s:6:"[4492]";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-002"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:46.003 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:46.004 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:46.004 | 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', 3796, 1, 4492, 7, 1001, '4492', '4492', array[5087], '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-002"]}') RETURNING "id" |
| 11:12:46.005 | 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', 171952, 'a:15:{s:2:"id";i:171952;s:9:"object_id";i:3796;s:11:"object_type";i:1;s:9:"target_id";i:4492;s:18:"target_object_type";i:7;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"4492";s:9:"new_value";s:4:"4492";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[5087]";s:6:"params";a:0:{}}s:11:"description";s:134:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-06-05-002"]}";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:46.006 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "project_id"=3796 |
| 11:12:46.011 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:46.012 | 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', 3796, 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:46.012 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:46.013 | 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', 3796, 1, 1001, 'now()', '["\u63d0\u524d1\u5929"]', '["\u4e0d\u63d0\u9192"]', array[5087], '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u6536\u6b3e\u63d0\u9192\u65f6\u95f4","d4":["\u4e0d\u63d0\u9192 <b>\u53d8\u4e3a<\/b> \u63d0\u524d1\u5929"]}') |
| 11:12:46.013 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3796 ORDER BY "id") |
| 11:12:46.014 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "payment_collection_remind_ahead"='1 day', "is_draft"=TRUE, "is_save_collection"=TRUE, "save_collection_at"='now()' WHERE "id"=4492 |
| 11:12:46.014 | 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', 4492, 'a:28:{s:11:"description";N;s:13:"contract_scan";N;s:12:"receipt_scan";N;s:10:"valid_date";N;s:11:"expire_date";N;s:3:"sla";N;s:12:"remind_ahead";N;s:19:"expire_remind_ahead";N;s:15:"expire_reminded";N;s:31:"payment_collection_remind_ahead";s:5:"1 day";s:12:"receipt_date";N;s:11:"verify_date";N;s:13:"including_tax";N;s:9:"is_settle";N;s:10:"is_deliver";N;s:11:"is_outbound";N;s:18:"save_collection_at";s:5:"now()";s:9:"is_verify";N;s:17:"erp_settle_amount";N;s:28:"erp_payment_ticket_is_verify";N;s:28:"erp_collect_ticket_is_verify";N;s:30:"erp_cash_cost_ticket_is_verify";N;s:21:"erp_all_settle_amount";N;s:21:"receipt_scan_uploaded";N;s:20:"verify_scan_uploaded";N;s:22:"contract_scan_uploaded";N;s:14:"is_edit_verify";N;s:20:"is_chargeback_verify";N;}', '', 1001, '221.216.117.119') |
| 11:12:46.015 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:46.015 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3796 |
| 11:12:46.015 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_contract_default_remind_users" WHERE ("user_id"=5087) AND ("type"=1) |
| 11:12:46.016 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:46.016 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:46.016 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_contract_default_remind_users" ("user_id", "remind_user", "type") VALUES (5087, 5087, 1) |
| 11:12:46.018 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4492 |
| 11:12:46.018 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='5087' |
| 11:12:46.019 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:46.019 | 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', 4492, 7, 1001, 'now()', '[["\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\u5fae;"]}') |
| 11:12:46.019 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=4492 |
| 11:12:46.019 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:46.020 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:46.020 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" ("contract_id", "user_id") VALUES (4492, 5087) RETURNING "id" |
| 11:12:46.023 | 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', 10154, 'a:3:{s:2:"id";i:10154;s:11:"contract_id";i:4492;s:7:"user_id";s:4:"5087";}', '', 1001, '221.216.117.119') |
| 11:12:46.023 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4492 |
| 11:12:46.023 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:46.024 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:46.024 | 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"=4492 |
| 11:12:46.025 | 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"=4492) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:46.028 | 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"=4492) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:46.031 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3796 |
| 11:12:46.032 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4492 |
| 11:12:46.033 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3796) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:46.034 | 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', 3796, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:46.034 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:46.035 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4492) AND (amount > paid_amount) ORDER BY "remind_date" |
| 11:12:46.036 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4492 |
| 11:12:46.036 | 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"=4492) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) |
| 11:12:46.037 | 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"=4492) AND ("t"."status" IN (2, 5)) |
| 11:12:46.038 | 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"=4492) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 11:12:46.042 | 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"=4492) AND ("t"."status"=1)) |
| 11:12:46.042 | 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"=4492) AND ("t"."status"=1)) |
| 11:12:46.043 | 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"=4492) AND ("t"."status"=1)) |
| 11:12:46.043 | 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"=4492) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (1, 2, 5)) |
| 11:12:46.044 | 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"=4492) AND ("t"."status" IN (1, 2, 5)) |
| 11:12:46.044 | 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"=4492) AND ("t"."status" IN (1, 2, 5)) |
| 11:12:46.045 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "erp_settle_amount"='0', "erp_un_settle_amount"='790000', "erp_all_settle_amount"='0' WHERE "id"=4492 |
| 11:12:46.046 | 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', 4492, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:46.046 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:46.046 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3796 |
| 11:12:46.047 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3796 |
| 11:12:46.048 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "collected"='0' WHERE "id"=3796 |
| 11:12:46.049 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3796) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:46.050 | 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', 3796, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:46.050 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:46.051 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_status_logs" WHERE "project_id"=3796 ORDER BY "created_at" DESC |
| 11:12:46.053 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4492 |
| 11:12:46.053 | 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"=4492 |
| 11:12:46.053 | 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"=4492) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:46.054 | 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"=4492) AND ("t"."status" IN (2, 5, 1)) |
| 11:12:46.054 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3796 |
| 11:12:46.055 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4492 |
| 11:12:46.055 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3796) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:46.057 | 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', 3796, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:46.057 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:46.058 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=4492) AND (amount > paid_amount) ORDER BY "remind_date" |
| 11:12:46.058 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:46.059 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=2125 |
| 11:12:46.060 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2125) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:46.752 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:46.752 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:46.752 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2125, 5087, 'now()', NULL) RETURNING "id" |
| 11:12:46.755 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 199903, 'a:5:{s:2:"id";i:199903;s:9:"client_id";i:2125;s:9:"sales_rep";i:5087;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 11:12:46.755 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 2125, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:46.756 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:46.756 | 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', 2125, 10, 3796, 1, 1001, '[3796]', '[3796]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["deepseek\u79c1\u6709\u5316\u90e8\u7f72"]}') RETURNING "id" |
| 11:12:46.757 | 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', 641285, 'a:13:{s:2:"id";i:641285;s:9:"object_id";i:2125;s:11:"object_type";i:10;s:9:"target_id";i:3796;s:18:"target_object_type";i:1;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3796]";s:9:"new_value";s:6:"[3796]";s:11:"description";s:121:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["deepseek\u79c1\u6709\u5316\u90e8\u7f72"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 11:12:46.758 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 11:12:46.759 | 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"=2125) |
| 11:12:46.763 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "cooperate_count"=2 WHERE "id"=2125 |
| 11:12:46.766 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2125) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 11:12:46.783 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2125, 5087, 'now()', NULL) RETURNING "id" |
| 11:12:46.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\ClientAmChangeLogs', 199904, 'a:5:{s:2:"id";i:199904;s:9:"client_id";i:2125;s:9:"sales_rep";i:5087;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 11:12:46.784 | 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', 2125, 'a:1:{s:15:"cooperate_count";i:2;}', '', 1001, '221.216.117.119') |
| 11:12:46.785 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:46.785 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:46.785 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:46.785 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 11:12:46.785 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 11:12:46.785 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 11:12:46.785 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3796 |
| 11:12:46.786 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=3796) |
| 11:12:46.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\ErpSalesOrders', 1716, 'a:0:{}', '', 1001, '221.216.117.119') |
| 11:12:46.787 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE 0=1 |
| 11:12:46.787 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1716 |
| 11:12:46.788 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:46.788 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:46.788 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_logs" ("status", "ticket_type", "serial_no", "wrote_date", "description", "abstract", "amount", "client_id", "supplier_id", "contact_id", "user_id", "created_by", "created_at", "updated_at", "object_id", "verify_at") VALUES (2, 20007, 'XSDD-20260605-00005', '2026-06-05', NULL, NULL, '790000', 2125, NULL, NULL, NULL, 5087, '2026-06-05 11:11:50', '2026-06-05 11:12:45', 1716, '2026-06-05 11:12:45.913569+08') RETURNING "id" |
| 11:12:46.793 | 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', 2931, 'a:17:{s:2:"id";i:2931;s:9:"serial_no";s:19:"XSDD-20260605-00005";s:11:"ticket_type";i:20007;s:10:"wrote_date";s:10:"2026-06-05";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:2125;s:8:"abstract";N;s:11:"description";N;s:9:"verify_at";s:29:"2026-06-05 11:12:45.913569+08";s:10:"created_by";i:5087;s:10:"created_at";s:19:"2026-06-05 11:11:50";s:10:"updated_at";s:19:"2026-06-05 11:12:45";s:10:"contact_id";N;s:7:"user_id";N;s:6:"amount";s:6:"790000";s:9:"object_id";i:1716;}', '', 1001, '221.216.117.119') |
| 11:12:46.794 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:46.794 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:46.794 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (2931, 5087) |
| 11:12:46.799 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:46.800 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:12:46.800 | 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', 1716, 20007, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '[]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u540c\u610f\u4e86","d3":"\u9500\u552e\u8ba2\u5355\u7533\u8bf7","d4":""}') |
| 11:12:46.800 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=20007) AND ("object_id"=1716) AND ("remind_user_id"=1001) AND ("is_read"=FALSE) |
| 11:12:46.819 | trace | yii\db\Transaction::commit | Commit transaction |
| 11:12:46.820 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:46.820 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:12:46.821 | 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":"1716","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:46', 921940992) RETURNING "id" |
| 11:12:46.822 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:12:46.822 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |