Database Queries

总计34条数据
TimeDurationTypeQuery
  
15:54:21.9802.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

15:54:21.9831.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:54:21.9860.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"='14'

15:54:21.9870.4 msSELECTSELECT COUNT(*) FROM "a57be577deb434"."tbl_erp_sales_gift_products" WHERE "erp_sales_gift_id"=14

15:54:21.9870.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_products" WHERE "erp_sales_gift_id"=14 LIMIT 20

15:54:21.9880.3 msSELECTSELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"=1

15:54:21.9880.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2100

15:54:21.9910.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id"=7

15:54:21.9910.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id"=159

15:54:21.9910.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=261

15:54:21.9920.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id"=2

15:54:21.9920.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1013

15:54:21.9930.7 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1013)

15:54:21.9930.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=7

15:54:21.9940.8 msSELECTSELECT "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" WHERE "product_id"=2100 GROUP BY "product_id"

15:54:21.9951.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_products" WHERE "erp_sales_gift_product_id"=25

15:54:21.9960.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2100

15:54:21.9960.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id"=7

15:54:21.9970.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id"=159

15:54:21.9970.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=261

15:54:21.9970.1 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id"=2

15:54:21.9970.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=105

15:54:21.9980.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=34

15:54:22.0001.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=725

15:54:22.0010.4 msSELECTSELECT "id", "id" AS "key", "serial_no" AS "name" FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4128

15:54:22.0012.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_projects" WHERE "erp_purchase_inbound_id"=34

15:54:22.0040.5 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=304

15:54:22.0040.5 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name", "project_status", "created_by", "budget", "collected" FROM "a57be577deb434"."tbl_projects" WHERE "id"=3947

15:54:22.0060.4 msSELECTSELECT "id", "id" AS "key", "project_status" AS "name", "color" FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3

15:54:22.0060.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5295

15:54:22.0070.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_product_sns" WHERE "erp_sales_gift_spent_product_id"=41

15:54:22.0093.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-09-09')

15:54:22.0130.9 msUPDATEUPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=31, "last_visit_at"='now()' WHERE "id"=56508

15:54:22.0141.3 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-sales-gift/get-sn', '{"id":"14","web_access_token":"84dOkFeNo2PYZeGq41-sJPi58_nruZIC"}', '{"code":2000,"result":{"list":[{"id":25,"erp_sales_gift_id":14,"erp_store_id":1,"product_id":2100,"description":"","outbound":"0","number":"1","amount":"0","total_amount":"0","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erpStore":{"id":1,"key":1,"name":"\u62d3\u5b9e\u4ed3\u5e93"},"product":{"id":2100,"name":"Adobe\u5168\u5bb6\u6876","product_type":7,"product_component":159,"product_brand":261,"product_serie":"","product_misc":"","product_qa":"","pn":"","description":"Creative Cloud for teams All Apps 12 months \u5168\u5bb6\u6876","created_by":1013,"created_at":"2025-08-15 14:51:48","updated_at":"2025-09-04 09:08:12","pinyin_shortcut":"Adobeqjt","product_unit":2,"is_renew":false,"productType":{"id":7,"key":7,"name":"\u8f6f\u4ef6"},"productComponent":{"id":159,"key":159,"name":"\u529e\u516c\u8f6f\u4ef6"},"productBrand":{"id":261,"key":261,"name":"Adobe"},"productSerie":"","productMisc":"","productUnit":{"id":2,"key":2,"name":"\u5957"},"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":2100,"outbound":"1","number":"1","inventory":"0","avg_amount":"6700.0000000000000000","avg_total_amount":"0.00000000000000000000","amount":"0"}},"erpSalesGiftSpentProducts":[{"id":41,"erp_sales_gift_id":14,"erp_sales_gift_product_id":25,"erp_inventory_product_id":105,"product_id":2100,"description":"","number":"1","amount":"0","total_amount":"0","cancel_number":"","cancel_amount":"","cancel_total_amount":"","product":{"id":2100,"name":"Adobe\u5168\u5bb6\u6876","product_type":7,"product_component":159,"product_brand":261,"product_serie":"","product_misc":"","product_qa":"","pn":"","description":"Creative Cloud for teams All Apps 12 months \u5168\u5bb6\u6876","created_by":1013,"created_at":"2025-08-15 14:51:48","updated_at":"2025-09-04 09:08:12","pinyin_shortcut":"Adobeqjt","product_unit":2,"is_renew":false,"productType":{"id":7,"key":7,"name":"\u8f6f\u4ef6"},"productComponent":{"id":159,"key":159,"name":"\u529e\u516c\u8f6f\u4ef6"},"productBrand":{"id":261,"key":261,"name":"Adobe"},"productSerie":"","productUnit":{"id":2,"key":2,"name":"\u5957"}},"erpInventoryProduct":{"id":105,"product_id":2100,"erp_purchase_inbound_id":34,"erp_purchase_order_id":2043,"erp_purchase_inbound_product_id":58,"erp_purchase_order_product_id":"","erp_store_id":1,"wrote_date":"2025-09-03","number":"1","outbound":"1","inventory":"0","amount":"6700","total_amount":"6700","actual_amount":"6700","actual_total_amount":"0","is_build":false,"created_at":"2025-09-03 17:15:27","lost_outbound":"","erp_inventory_start_id":"","erp_inventory_start_product_id":"","erp_inventory_build_id":"","erp_inventory_build_product_id":"","build_spent_outbound":"","sales_outbound":"1","erp_purchase_gift_id":"","erp_purchase_gift_product_id":"","sales_gift_outbound":"","erpPurchaseInbound":{"id":34,"serial_no":"CGRK-20250903-00002","from_date":"","wrote_date":"2025-09-03","handler":1001,"erp_purchase_order_id":2043,"supplier_id":725,"purchase_contract_id":4128,"erp_store_id":1,"status":2,"abstract":"","description":"","verify_type":2,"next_verify_user":"","next_stop_verify_user":"","verify_at":"2025-09-03 17:15:27","stop_at":"","cancel_at":"","refuse_description":"","is_resubmitted":false,"number":"101","amount":"16700","cancel_number":"","cancel_amount":"","created_by":1001,"stop_description":"","is_used":true,"is_settle":false,"created_at":"2025-09-03 17:15:27","updated_at":"2025-09-03 17:15:27","supplier":{"id":725,"key":725,"name":"\u5317\u4eac\u795e\u7801\u4fe1\u521b\u8f6f\u4ef6\u6709\u9650\u516c\u53f8"},"purchaseContract":{"id":4128,"key":4128,"name":"TSKJ20250827-HYF-001"},"erpPurchaseInboundProjects":[{"id":36,"erp_purchase_inbound_id":34,"client_id":304,"project_id":3947,"client":{"id":304,"key":304,"name":"\u5317\u4eac\u5317\u65b9\u534e\u521b\u771f\u7a7a\u6280\u672f\u6709\u9650\u516c\u53f8"},"project":{"id":3947,"key":3947,"name":"\u91c7\u8d2dAdobe\u8f6f\u4ef6","project_status":3,"created_by":5295,"budget":"7300","collected":"0","projectStatus":{"id":3,"key":3,"name":"\u5546\u673a\u6210\u4ea4","color":"#53cd02"},"createdBy":{"id":5295,"key":5295,"name":"\u9b4f\u6cfd\u6587","sex":"F","department_id":1}}}]},"erpPurchaseGift":{},"erpInventoryStart":{},"erpInventoryBuild":{}},"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}', FALSE, '2025-09-09 15:54:22') RETURNING "id"