All Latest
6a2695b7cbef2: POST https://beta.jinchangxiao.com/vue/erp-sales-gift/get-sn at 2026-06-08 06:13:11 pm by 221.216.117.119

Performance Profiling

Total processing time: 34 ms; Peak memory: 5.753 MB. Show Profiling Timeline

总计37条数据
TimeDurationCategoryInfo
  
18:13:11.8651.4 msyii\db\Command::queryINSERT 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-gift/get-sn', '{"id":"127","web_access_token":"l4p3M_87vSdo8QF-blMLH4iPaepKw7vp"}', '{"code":2000,"result":{"list":[{"id":156,"erp_sales_gift_id":127,"erp_store_id":1,"product_id":2269,"description":"","outbound":"0","number":"1","amount":"0","total_amount":"0.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":2269,"name":"HAT5320-24T","product_type":3,"product_component":15,"product_brand":27,"product_serie":1786,"product_misc":"","product_qa":"","pn":"","description":"24T 3.5\" 7.2K SATA HDD","created_by":1013,"created_at":"2026-03-23 09:37:57","updated_at":"2026-05-20 14:04:02","pinyin_shortcut":"HAT532024T","product_unit":4,"is_renew":false,"in_out_at":"2026-05-20 14:04:02.191655+08","productType":{"id":3,"key":3,"name":"\u5b58\u50a8\u8bbe\u5907"},"productComponent":{"id":15,"key":15,"name":"\u5b58\u50a8\u786c\u76d8"},"productBrand":{"id":27,"key":27,"name":"\u7fa4\u6656"},"productSerie":{"id":1786,"key":1786,"name":"HAT5300 \u7cfb\u5217\u786c\u76d8"},"productMisc":"","productUnit":{"id":4,"key":4,"name":"\u5757"},"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":2269,"outbound":"73","number":"82","inventory":"9","avg_amount":"3915.4000000000000000","avg_total_amount":"6075.6000000000000000","amount":"91134"}},"erpSalesGiftSpentProducts":[{"id":184,"erp_sales_gift_id":127,"erp_sales_gift_product_id":156,"erp_inventory_product_id":463,"product_id":2269,"description":"","number":"1","amount":"0","total_amount":"0","cancel_number":"","cancel_amount":"","cancel_total_amount":"","product":{"id":2269,"name":"HAT5320-24T","product_type":3,"product_component":15,"product_brand":27,"product_serie":1786,"product_misc":"","product_qa":"","pn":"","description":"24T 3.5\" 7.2K SATA HDD","created_by":1013,"created_at":"2026-03-23 09:37:57","updated_at":"2026-05-20 14:04:02","pinyin_shortcut":"HAT532024T","product_unit":4,"is_renew":false,"in_out_at":"2026-05-20 14:04:02.191655+08","productType":{"id":3,"key":3,"name":"\u5b58\u50a8\u8bbe\u5907"},"productComponent":{"id":15,"key":15,"name":"\u5b58\u50a8\u786c\u76d8"},"productBrand":{"id":27,"key":27,"name":"\u7fa4\u6656"},"productSerie":{"id":1786,"key":1786,"name":"HAT5300 \u7cfb\u5217\u786c\u76d8"},"productUnit":{"id":4,"key":4,"name":"\u5757"}},"erpInventoryProduct":{"id":463,"product_id":2269,"erp_purchase_inbound_id":197,"erp_purchase_order_id":2203,"erp_purchase_inbound_product_id":406,"erp_purchase_order_product_id":"","erp_store_id":1,"wrote_date":"2026-03-25","number":"8","outbound":"8","inventory":"0","amount":"6145","total_amount":"49160.00","actual_amount":"6145","actual_total_amount":"0","is_build":false,"created_at":"2026-03-25 10:10:35","lost_outbound":"0","erp_inventory_start_id":"","erp_inventory_start_product_id":"","erp_inventory_build_id":"","erp_inventory_build_product_id":"","build_spent_outbound":"6","sales_outbound":"0","erp_purchase_gift_id":"","erp_purchase_gift_product_id":"","sales_gift_outbound":"1","erp_inventory_disassemble_id":"","erp_inventory_disassemble_product_id":"","disassemble_spent_outbound":"","erp_inventory_overflow_id":"","erp_inventory_overflow_product_id":"","erpPurchaseInbound":{"id":197,"serial_no":"CGRKD-20260325-00001","from_date":"","wrote_date":"2026-03-25","handler":5360,"erp_purchase_order_id":2203,"supplier_id":68,"purchase_contract_id":4445,"erp_store_id":1,"status":2,"abstract":"\u542b\u7a0e13%","description":"","verify_type":2,"next_verify_user":"","next_stop_verify_user":"","verify_at":"2026-03-25 10:10:35","stop_at":"","cancel_at":"","refuse_description":"","is_resubmitted":false,"number":"9","amount":"56920","cancel_number":"","cancel_amount":"","created_by":5360,"stop_description":"","is_used":true,"is_settle":false,"created_at":"2026-03-25 09:26:45","updated_at":"2026-03-25 10:10:35","print_times":1,"supplier":{"id":68,"key":68,"name":"\u82f1\u8fc8\u7535\u5b50\u5546\u8d38(\u4e0a\u6d77)\u6709\u9650\u516c\u53f8"},"handlerPerson":{"id":5360,"key":5360,"name":"\u5f20\u7ea2\u82b3","sex":"F","department_id":3},"purchaseContract":{"id":4445,"key":4445,"name":"20260814SYNTS01"},"erpPurchaseInboundProjects":[{"id":200,"erp_purchase_inbound_id":197,"client_id":2182,"project_id":4139,"client":{"id":2182,"key":2182,"name":"\u5317\u4eac\u5357\u65b9\u65af\u5948\u514b\u739b\u6da1\u8f6e\u6280\u672f\u6709\u9650\u516c\u53f8"},"project":{"id":4139,"key":4139,"name":"\u7fa4\u6656\u5907\u4efd\u5b58\u50a8\u91c7\u8d2d-2026","project_status":3,"created_by":5300,"budget":"74500","collected":"0","projectStatus":{"id":3,"key":3,"name":"\u5546\u673a\u6210\u4ea4","color":"#53cd02"},"createdBy":{"id":5300,"key":5300,"name":"\u82cf\u6e05\u4e91","sex":"F","department_id":1}}}]},"erpPurchaseGift":{},"erpInventoryStart":{},"erpInventoryBuild":{},"erpInventoryDisassemble":{}},"erpSalesGiftSpentProductSns":[]}],"erpSalesGiftProductSns":[],"need_sn":1}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":20},"can_create_sn":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","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-08 18:13:11', 29775104) RETURNING "id"
18:13:11.8580.9 msyii\db\Command::querySELECT "id", "id" AS "key", "serial_no" AS "name" FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4445
18:13:11.8370.8 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
18:13:11.8510.8 msyii\db\Command::querySELECT "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"=2269 GROUP BY "eip"."product_id"
18:13:11.8430.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"='127'
18:13:11.8560.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=197
18:13:11.8390.6 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
18:13:11.8550.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=463
18:13:11.8400.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
18:13:11.8570.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=68
18:13:11.8510.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=7
18:13:11.8450.4 msyii\db\Command::querySELECT COUNT(*) FROM "a57be577deb434"."tbl_erp_sales_gift_products" WHERE "erp_sales_gift_id"=127
18:13:11.8520.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_products" WHERE "erp_sales_gift_product_id"=156
18:13:11.8470.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id"=3
18:13:11.8480.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id"=15
18:13:11.8480.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=27
18:13:11.8590.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_projects" WHERE "erp_purchase_inbound_id"=197
18:13:11.8490.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id"=1786
18:13:11.8450.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_products" WHERE "erp_sales_gift_id"=127 LIMIT 20
18:13:11.8620.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_product_sns" WHERE "erp_sales_gift_spent_product_id"=184
18:13:11.8490.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id"=4
18:13:11.8460.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2269
18:13:11.8600.3 msyii\db\Command::querySELECT "id", "id" AS "key", "project_title" AS "name", "project_status", "created_by", "budget", "collected" FROM "a57be577deb434"."tbl_projects" WHERE "id"=4139
18:13:11.8600.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2182
18:13:11.8500.3 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1013)
18:13:11.8530.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2269
18:13:11.8370.2 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
18:13:11.8580.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5360
18:13:11.8610.2 msyii\db\Command::querySELECT "id", "id" AS "key", "project_status" AS "name", "color" FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3
18:13:11.8620.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5300
18:13:11.8460.2 msyii\db\Command::querySELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"=1
18:13:11.8500.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1013
18:13:11.8530.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id"=3
18:13:11.8540.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=27
18:13:11.8540.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id"=15
18:13:11.8540.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id"=1786
18:13:11.8550.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id"=4