| Time | Level | Category | Message |
|---|---|---|---|
| 21:50:49.786 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 21:50:49.786 | trace | yii\base\Module::getModule | Loading module: debug |
| 21:50:49.786 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 21:50:49.786 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 21:50:49.786 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 21:50:49.786 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:50:49.786 | info | time tracing start | 1780926649786896896 |
| 21:50:49.787 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 21:50:49.787 | trace | yii\web\Application::handleRequest | Route requested: 'v2/erp-dashboard/get-ticket' |
| 21:50:49.787 | trace | yii\base\Module::getModule | Loading module: v2 |
| 21:50:49.787 | info | yii\web\Session::open | Session started |
| 21:50:49.787 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 21:50:49.788 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC' |
| 21:50:49.788 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:50:49.789 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:50:49.789 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:50:49.789 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:50:49.789 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 21:50:49.790 | trace | yii\base\Controller::runAction | Route to run: v2/erp-dashboard/get-ticket |
| 21:50:49.790 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ErpDashboardController::actionGetTicket() |
| 21:50:49.790 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:50:49.790 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:50:49.790 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:50:49.791 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:50:49.794 | info | yii\db\Command::query | SELECT * FROM (SELECT * FROM (SELECT (r.id::varchar || 20031::varchar) as id, r.id as id2, null::integer as supplier_id, null::integer as client_id, null::integer as user_id, null::integer as contact_id, r.wrote_date, r.serial_no, 20031 as ticket_type, r.abstract, r.description, r.created_by, r.amount, r.status, null::numeric as settle_amount, false as is_payment_settle, r.created_at, CASE WHEN 1 = r.verify_type THEN rvr.status ELSE ( CASE WHEN r.next_verify_user = 1001 THEN 0 ELSE (CASE WHEN rvr.status = 0 THEN NULL ELSE rvr.status END) END) END as verify_status, CASE WHEN 1 = r.verify_type THEN rsvr.status ELSE ( CASE WHEN r.next_stop_verify_user = 1001 THEN 0 ELSE (CASE WHEN rsvr.status = 0 THEN NULL ELSE rsvr.status END) END) END as stop_verify_status, null::integer as cancel_verify_status FROM "a57be577deb434"."tbl_erp_inventory_overflows" "r" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_overflow_verify_rels" "rvr" ON rvr.erp_inventory_overflow_id = r.id AND rvr.user_id = 1001 LEFT JOIN "a57be577deb434"."tbl_erp_inventory_overflow_stop_verify_rels" "rsvr" ON rsvr.erp_inventory_overflow_id = r.id AND rsvr.user_id = 1001 WHERE "r"."status" != 0 GROUP BY "r"."id", "rvr"."status", "rsvr"."status") "sub") "sub" WHERE ("id2"='9') AND ("ticket_type"='20031') |
| 21:50:49.795 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 21:50:49.795 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001) |
| 21:50:49.795 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4 |
| 21:50:49.796 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflows" WHERE "id"=9 |
| 21:50:49.796 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 21:50:49.797 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001) |
| 21:50:49.797 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4 |
| 21:50:49.797 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_carbon_copy_rels" WHERE "erp_inventory_overflow_id"=9 |
| 21:50:49.797 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_verify_rels" WHERE "erp_inventory_overflow_id"=9 ORDER BY "id" |
| 21:50:49.798 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (5064, 5250) |
| 21:50:49.798 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (5064, 5250)) |
| 21:50:49.798 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_verify_rels" WHERE ("status"=0) AND ("erp_inventory_overflow_id"=9) ORDER BY "id" |
| 21:50:49.799 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_verify_rels" WHERE ("status" != 0) AND ("erp_inventory_overflow_id"=9) ORDER BY "id" |
| 21:50:49.799 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_verify_rels" WHERE ("status" = 0) AND ("user_id"=1001) AND ("erp_inventory_overflow_id"=9) |
| 21:50:49.799 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_stop_verify_rels" WHERE "erp_inventory_overflow_id"=9 ORDER BY "id" |
| 21:50:49.799 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_stop_verify_rels" WHERE ("status"=0) AND ("erp_inventory_overflow_id"=9) ORDER BY "id" |
| 21:50:49.800 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_stop_verify_rels" WHERE ("status" != 0) AND ("erp_inventory_overflow_id"=9) ORDER BY "id" |
| 21:50:49.800 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_stop_verify_rels" WHERE ("status" = 0) AND ("user_id"=1001) AND ("erp_inventory_overflow_id"=9) |
| 21:50:49.800 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20057) AND ("object_id"=9) |
| 21:50:49.802 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20058) AND ("object_id"=9) |
| 21:50:49.804 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"=1 |
| 21:50:49.804 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE "erp_inventory_overflow_id"=9 |
| 21:50:49.805 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"=1 |
| 21:50:49.805 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2261 |
| 21:50:49.806 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id"=4 |
| 21:50:49.806 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id"=52 |
| 21:50:49.806 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=4 |
| 21:50:49.806 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id"=1769 |
| 21:50:49.807 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id"=3 |
| 21:50:49.807 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_product_sns" WHERE "erp_inventory_overflow_product_id"=13 |
| 21:50:49.807 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "erp_inventory_overflow_product_id"=13 |
| 21:50:49.807 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=20031) AND ("object_id"=9) GROUP BY "object_id" |
| 21:50:49.827 | info | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=20031) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id"=9) GROUP BY "object_id" |
| 21:50:49.846 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:50:49.847 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateErpInventoryOverflow |
| 21:50:49.847 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 21:50:49.847 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewProduct |
| 21:50:49.847 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 21:50:49.847 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 21:50:49.847 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 21:50:49.847 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 21:50:49.848 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 7, 176, 'v2/erp-dashboard/get-ticket', '{"id":"9","ticket_type":"20031","posttime":"1780926649","access_token":"lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC","device_type":"7","version_code":"176","token":"31fc2ced822ee28a32bfa08cbda338cd"}', '{"code":200,"data":{"ticket":{"id":9,"id2":9,"supplier_id":null,"client_id":null,"user_id":null,"contact_id":null,"wrote_date":"2026-05-21","serial_no":"BYD-20260521-00002","ticket_type":"20031","abstract":null,"description":"\u65b9\u5f0f\u5730\u65b9","created_by":1001,"amount":"434","status":2,"settle_amount":null,"is_payment_settle":false,"created_at":"2026-05-21 17:09:02","verify_status":null,"stop_verify_status":null,"cancel_verify_status":null,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"supplier":null,"client":null,"user":null,"contact":null,"ticket_type_display":"\u62a5\u6ea2\u5355","model":{"id":9,"serial_no":"BYD-20260521-00002","from_date":null,"wrote_date":"2026-05-21","need_handler":false,"handler":null,"erp_store_id":1,"status":2,"abstract":null,"description":"\u65b9\u5f0f\u5730\u65b9","verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"2026-05-21 17:10:01","stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"434","cancel_number":null,"cancel_amount":null,"created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2026-05-21 17:09:02","updated_at":"2026-05-21 17:10:01","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"handlerPerson":{"id":null,"key":null,"name":"\u516c\u53f8\u6536\u5165","sex":null,"department_id":null,"avatar":{"id":null,"user_id":null,"name":"\/files\/cdn\/a57be577deb434\/2021\/01\/51931101-63c0-36db-8e97-e68282eef06c.png"},"department":null},"erpInventoryOverflowCarbonCopyRels":[],"erpInventoryOverflowVerifyRels":[{"id":9,"erp_inventory_overflow_id":9,"user_id":5064,"status":1,"description":"","verify_at":"2026-05-21 17:09:16","user":{"id":5064,"key":5064,"name":"\u59da\u96ea\u7eaf","sex":"F","avatar":{"id":38,"user_id":5064,"name":"\/files\/cdn\/a57be577deb434\/avatar\/5bec09dc-1f7a-3542-89a2-cedfefb3fded.png"}}},{"id":10,"erp_inventory_overflow_id":9,"user_id":5250,"status":1,"description":"","verify_at":"2026-05-21 17:10:01","user":{"id":5250,"key":5250,"name":"\u8463\u8363","sex":"M","avatar":{"id":157,"user_id":5250,"name":"\/files\/cdn\/a57be577deb434\/avatar\/10f9a0d9-7ea7-3910-9465-6ece76a0dae4.png"}}}],"lastErpInventoryOverflowVerifyRel":null,"haveErpInventoryOverflowVerifyRel":{"id":9,"erp_inventory_overflow_id":9,"user_id":5064,"status":1,"description":"","verify_at":"2026-05-21 17:09:16"},"selfErpInventoryOverflowVerifyRel":null,"erpInventoryOverflowStopVerifyRels":[],"lastErpInventoryOverflowStopVerifyRel":null,"haveErpInventoryOverflowStopVerifyRel":null,"selfErpInventoryOverflowStopVerifyRel":null,"attachmentRelationships":[],"files":[],"erpStore":{"id":1,"key":1,"name":"\u62d3\u5b9e\u4ed3\u5e93"},"erpInventoryOverflowProducts":[{"id":13,"erp_inventory_overflow_id":9,"erp_purchase_order_product_id":null,"erp_store_id":1,"product_id":2261,"description":"","number":"1","outbound":"0","inventory":"1","amount":"434","total_amount":"434.00","lost_outbound":null,"build_spent_outbound":null,"disassemble_spent_outbound":null,"sales_outbound":null,"sales_gift_outbound":null,"cancel_number":null,"cancel_amount":null,"cancel_total_amount":null,"erpStore":{"id":1,"key":1,"name":"\u62d3\u5b9e\u4ed3\u5e93"},"product":{"id":2261,"name":"MK-MC300","product_type":4,"product_component":52,"product_brand":4,"product_serie":1769,"product_misc":null,"product_qa":null,"pn":"","description":"MK-MC300\u62fe\u97f3\u9ea6\u514b\u98ce\uff0c\u542b5\u7c73\u7ebf","created_by":1013,"created_at":"2026-03-16 10:07:43","updated_at":"2026-05-21 18:10:51","pinyin_shortcut":"MKMC300","product_unit":3,"is_renew":false,"in_out_at":"2026-05-21 18:10:51.145864+08","productType":{"id":4,"key":4,"name":"\u7f51\u7edc\u8bbe\u5907 "},"productComponent":{"id":52,"key":52,"name":"\u534f\u4f5c"},"productBrand":{"id":4,"key":4,"name":"\u8054\u60f3"},"productSerie":{"id":1769,"key":1769,"name":"\u5168\u5411\u9ea6\u514b\u98ce"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}},"erpInventoryOverflowProductSns":[],"erpPurchaseOrderProduct":null,"erpInventoryProduct":{"id":510,"product_id":2261,"erp_purchase_inbound_id":null,"erp_purchase_order_id":null,"erp_purchase_inbound_product_id":null,"erp_purchase_order_product_id":null,"erp_store_id":1,"wrote_date":"2026-05-21","number":"1","outbound":"0","inventory":"1","amount":"434","total_amount":"434.00","actual_amount":"434","actual_total_amount":"434","is_build":false,"created_at":"2026-05-21 17:10:01","lost_outbound":null,"erp_inventory_start_id":null,"erp_inventory_start_product_id":null,"erp_inventory_build_id":null,"erp_inventory_build_product_id":null,"build_spent_outbound":null,"sales_outbound":null,"erp_purchase_gift_id":null,"erp_purchase_gift_product_id":null,"sales_gift_outbound":null,"erp_inventory_disassemble_id":null,"erp_inventory_disassemble_product_id":null,"disassemble_spent_outbound":null,"erp_inventory_overflow_id":9,"erp_inventory_overflow_product_id":13}}],"commentCount":{"object_id":9,"comment":3},"unreadComments":null,"unread":0,"can_update":false,"can_import_sn":true,"can_delete":false,"can_resubmit":false,"can_verify":false,"can_refuse":false,"can_stop":true,"can_create_erp_purchase_return":true,"can_stop_verify":false,"can_stop_refuse":false,"bgcolor":"#4B7902","status_display":"\u5df2\u901a\u8fc7","can_view_product":true},"fgcolor":"#22A100","bgcolor":"#E8F5E5","status_display":"\u5df2\u901a\u8fc7","unit":null}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"125.78.86.146","ua":"jinchangxiao\/1.0.40 (emulator emulator; HarmonyOS 6.1.0)"}', FALSE, '2026-06-08 21:50:49', 61181184) RETURNING "id" |