Total processing time: 35 ms; Peak memory: 4.696 MB. Show Profiling Timeline
| Time | Duration | Category | Info |
|---|---|---|---|
| 21:41:27.002 | 2.4 ms | 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-outbound/get-sn', '{"id":"160","web_access_token":"wx4hXh9V-DIrZeBjtGStxgwx5HvDWnxk"}', '{"code":2000,"result":{"list":[{"id":460,"erp_sales_outbound_id":160,"erp_sales_order_id":1715,"erp_sales_order_product_id":2251,"erp_store_id":1,"product_id":2261,"description":"","outbound":"0","number":"2","amount":"44433443","total_amount":"88866886.00","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","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":"","product_qa":"","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-07-04 21:40:53","pinyin_shortcut":"MKMC300","product_unit":3,"is_renew":false,"in_out_at":"2026-07-04 21:40:53.440657+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"},"productMisc":"","productUnit":{"id":3,"key":3,"name":"\u4e2a"},"productQa":"","createdBy":{"id":1013,"key":1013,"name":"\u7fc1\u5bb6\u6210","sex":"M","department_id":7,"avatar":{"id":34,"user_id":1013,"name":"\/files\/cdn\/a57be577deb434\/avatar\/25ef1fe7-8dda-3daa-b8ea-9fabd0a47439.png"},"department":{"id":7,"key":7,"name":"\u5e93\u623f\u90e8"}},"erpInventoryCount":{"product_id":2261,"outbound":"19","number":"67","inventory":"48","avg_amount":"7157.2205000000000000","avg_total_amount":"283.7000000000000000","amount":"2837.000"}},"erpSalesOutboundSpentProducts":[{"id":555,"erp_sales_outbound_id":160,"erp_sales_outbound_product_id":460,"erp_inventory_product_id":470,"product_id":2261,"description":"","number":"2","amount":"44433443","total_amount":"88866886","cancel_number":"","cancel_amount":"","cancel_total_amount":"","product":{"id":2261,"name":"MK-MC300","product_type":4,"product_component":52,"product_brand":4,"product_serie":1769,"product_misc":"","product_qa":"","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-07-04 21:40:53","pinyin_shortcut":"MKMC300","product_unit":3,"is_renew":false,"in_out_at":"2026-07-04 21:40:53.440657+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"}},"erpInventoryProduct":{"id":470,"product_id":2261,"erp_purchase_inbound_id":"","erp_purchase_order_id":"","erp_purchase_inbound_product_id":"","erp_purchase_order_product_id":"","erp_store_id":1,"wrote_date":"2026-04-08","number":"56","outbound":"12","inventory":"44","amount":"45","total_amount":"2520","actual_amount":"45","actual_total_amount":"1980","is_build":false,"created_at":"2026-04-08 09:35:32","lost_outbound":"0","erp_inventory_start_id":32,"erp_inventory_start_product_id":49,"erp_inventory_build_id":"","erp_inventory_build_product_id":"","build_spent_outbound":"1","sales_outbound":"7","erp_purchase_gift_id":"","erp_purchase_gift_product_id":"","sales_gift_outbound":"4","erp_inventory_disassemble_id":"","erp_inventory_disassemble_product_id":"","disassemble_spent_outbound":"0","erp_inventory_overflow_id":"","erp_inventory_overflow_product_id":"","erpPurchaseInbound":{},"erpPurchaseGift":{},"erpInventoryStart":{"id":32,"serial_no":"QCKC-20260408-00001","wrote_date":"2026-04-08","handler":1001,"supplier_id":431,"erp_store_id":1,"status":0,"abstract":"","description":"\u6d4b\u8bd5\u4eba\u4e0e\u4eba\u4e0e\u4eba\u8c08\u4e00\u8c08\u4eba\u5458","number":"111","amount":"4995","cancel_number":"","cancel_amount":"","created_by":1001,"is_used":true,"is_settle":false,"created_at":"2026-04-08 09:35:32","updated_at":"2026-04-09 10:26:46","print_times":""},"erpInventoryBuild":{},"erpInventoryDisassemble":{}},"erpSalesOutboundSpentProductSns":[{"id":9,"erp_sales_outbound_spent_product_id":555,"sn":"123","is_cancel":false,"erp_inventory_product_sn_id":89,"description":""},{"id":10,"erp_sales_outbound_spent_product_id":555,"sn":"000","is_cancel":false,"erp_inventory_product_sn_id":86,"description":""}]}],"erpSalesOutboundProductSns":[{"id":9,"erp_sales_outbound_spent_product_id":555,"sn":"123","is_cancel":false,"erp_inventory_product_sn_id":89,"description":""},{"id":10,"erp_sales_outbound_spent_product_id":555,"sn":"000","is_cancel":false,"erp_inventory_product_sn_id":86,"description":""}],"need_sn":0},{"id":461,"erp_sales_outbound_id":160,"erp_sales_order_id":1715,"erp_sales_order_product_id":2252,"erp_store_id":1,"product_id":1372,"description":"","outbound":"0","number":"1","amount":"53445","total_amount":"53445.00","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erpStore":{"id":1,"key":1,"name":"\u62d3\u5b9e\u4ed3\u5e93"},"product":{"id":1372,"name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_type":4,"product_component":43,"product_brand":134,"product_serie":1047,"product_misc":"","product_qa":"","pn":"","description":"","created_by":1013,"created_at":"2024-01-26 16:48:55","updated_at":"2026-07-04 21:40:53","pinyin_shortcut":"LCLCgxx5m","product_unit":6,"is_renew":false,"in_out_at":"2026-07-04 21:40:53.440657+08","productType":{"id":4,"key":4,"name":"\u7f51\u7edc\u8bbe\u5907 "},"productComponent":{"id":43,"key":43,"name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6"},"productBrand":{"id":134,"key":134,"name":"\u7b2c\u4e09\u65b9"},"productSerie":{"id":1047,"key":1047,"name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73"},"productMisc":"","productUnit":{"id":6,"key":6,"name":"\u6761"},"productQa":"","createdBy":{"id":1013,"key":1013,"name":"\u7fc1\u5bb6\u6210","sex":"M","department_id":7,"avatar":{"id":34,"user_id":1013,"name":"\/files\/cdn\/a57be577deb434\/avatar\/25ef1fe7-8dda-3daa-b8ea-9fabd0a47439.png"},"department":{"id":7,"key":7,"name":"\u5e93\u623f\u90e8"}},"erpInventoryCount":{"product_id":1372,"outbound":"35","number":"49","inventory":"14","avg_amount":"19.0000000000000000","avg_total_amount":"44.0000000000000000","amount":"308"}},"erpSalesOutboundSpentProducts":[{"id":556,"erp_sales_outbound_id":160,"erp_sales_outbound_product_id":461,"erp_inventory_product_id":44,"product_id":1372,"description":"","number":"1","amount":"53445","total_amount":"53445","cancel_number":"","cancel_amount":"","cancel_total_amount":"","product":{"id":1372,"name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73","product_type":4,"product_component":43,"product_brand":134,"product_serie":1047,"product_misc":"","product_qa":"","pn":"","description":"","created_by":1013,"created_at":"2024-01-26 16:48:55","updated_at":"2026-07-04 21:40:53","pinyin_shortcut":"LCLCgxx5m","product_unit":6,"is_renew":false,"in_out_at":"2026-07-04 21:40:53.440657+08","productType":{"id":4,"key":4,"name":"\u7f51\u7edc\u8bbe\u5907 "},"productComponent":{"id":43,"key":43,"name":"\u7f51\u7edc\u8bbe\u5907\u914d\u4ef6"},"productBrand":{"id":134,"key":134,"name":"\u7b2c\u4e09\u65b9"},"productSerie":{"id":1047,"key":1047,"name":"LC-LC \u5149\u7ea4\u7ebf 5\u7c73"},"productUnit":{"id":6,"key":6,"name":"\u6761"}},"erpInventoryProduct":{"id":44,"product_id":1372,"erp_purchase_inbound_id":"","erp_purchase_order_id":"","erp_purchase_inbound_product_id":"","erp_purchase_order_product_id":"","erp_store_id":1,"wrote_date":"2025-08-08","number":"13","outbound":"11","inventory":"2","amount":"25","total_amount":"325","actual_amount":"25","actual_total_amount":"50","is_build":false,"created_at":"2025-08-08 18:11:19","lost_outbound":"0","erp_inventory_start_id":30,"erp_inventory_start_product_id":44,"erp_inventory_build_id":"","erp_inventory_build_product_id":"","build_spent_outbound":"0","sales_outbound":"11","erp_purchase_gift_id":"","erp_purchase_gift_product_id":"","sales_gift_outbound":"0","erp_inventory_disassemble_id":"","erp_inventory_disassemble_product_id":"","disassemble_spent_outbound":"0","erp_inventory_overflow_id":"","erp_inventory_overflow_product_id":"","erpPurchaseInbound":{},"erpPurchaseGift":{},"erpInventoryStart":{"id":30,"serial_no":"QCKC-20250808-00030","wrote_date":"2025-08-08","handler":1011,"supplier_id":478,"erp_store_id":1,"status":0,"abstract":"","description":"","number":"15","amount":"345","cancel_number":"","cancel_amount":"","created_by":1001,"is_used":true,"is_settle":true,"created_at":"2025-08-08 18:11:18","updated_at":"2025-08-08 18:11:19","print_times":""},"erpInventoryBuild":{},"erpInventoryDisassemble":{}},"erpSalesOutboundSpentProductSns":[{"id":11,"erp_sales_outbound_spent_product_id":556,"sn":"\u6211\u8fd8\u6709\u70b9\u4e0d\u6562\u8bf4","is_cancel":false,"erp_inventory_product_sn_id":68,"description":""}]}],"erpSalesOutboundProductSns":[{"id":11,"erp_sales_outbound_spent_product_id":556,"sn":"\u6211\u8fd8\u6709\u70b9\u4e0d\u6562\u8bf4","is_cancel":false,"erp_inventory_product_sn_id":68,"description":""}],"need_sn":0}],"pagenation":{"totalcount":2,"thispage":1,"pagesize":20},"can_create_sn":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"111.194.208.14","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-07-04 21:41:27', 26905088) RETURNING "id" |
| 21:41:26.978 | 0.9 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=5064 |
| 21:41:26.990 | 0.8 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1013 |
| 21:41:26.980 | 0.7 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 21:41:26.992 | 0.5 ms | yii\db\Command::query | SELECT "eip"."product_id", sum(outbound) as outbound, sum(number) as number, sum(inventory) as inventory, avg(actual_amount) as avg_amount, avg(actual_amount * inventory) as avg_total_amount, sum(actual_amount * inventory) as amount FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" WHERE "product_id" IN (1372, 2261) GROUP BY "eip"."product_id" |
| 21:41:26.982 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 21:41:26.978 | 0.4 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 21:41:26.983 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"='160' |
| 21:41:26.996 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id" IN (470, 44) |
| 21:41:26.984 | 0.4 ms | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_outbound_id"=160 |
| 21:41:26.986 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id" IN (2261, 1372) |
| 21:41:26.997 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_starts" WHERE "id" IN (30, 32) |
| 21:41:26.991 | 0.3 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1013) |
| 21:41:26.993 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id" IN (460, 461) |
| 21:41:26.985 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_outbound_id"=160 LIMIT 20 |
| 21:41:26.993 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id" IN (2261, 1372) |
| 21:41:26.996 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id" IN (6, 3) |
| 21:41:26.987 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id"=4 |
| 21:41:26.988 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id" IN (43, 52) |
| 21:41:26.995 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id" IN (134, 4) |
| 21:41:26.989 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id" IN (1047, 1769) |
| 21:41:26.986 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"=1 |
| 21:41:26.998 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" WHERE "erp_sales_outbound_spent_product_id" IN (555, 556) |
| 21:41:26.988 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id" IN (134, 4) |
| 21:41:26.994 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id" IN (43, 52) |
| 21:41:26.995 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id" IN (1047, 1769) |
| 21:41:26.994 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id"=4 |
| 21:41:26.989 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id" IN (6, 3) |
| 21:41:26.992 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=7 |