Database Queries

总计20条数据
TimeDurationTypeQuery
  
16:45:31.7482.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

16:45:31.7511.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

16:45:31.7540.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contract_invoices" WHERE "id"='2115'

16:45:31.7550.3 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5252

16:45:31.7560.7 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5252)

16:45:31.7570.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=6

16:45:31.7571.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20) AND ("object_id"=2115)

16:45:31.7591.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=102) AND ("object_id"=2115)

16:45:31.7610.4 msSELECTSELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=27216

16:45:31.7610.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_invoice_reminders" WHERE "sales_invoice_id"=2115

16:45:31.7622.8 msSELECTSELECT "sip".*, sum(inventory) as inventory_count FROM "a57be577deb434"."tbl_sales_invoice_products" "sip" LEFT JOIN "a57be577deb434"."tbl_inventory_products" "ip" ON lower(ip.title) = lower(sip.title) AND lower(ip.description) = lower(sip.description) WHERE ("sip"."need_match"=TRUE) AND ("sip"."sales_invoice_id"=2115) GROUP BY "sip"."id"

16:45:31.7650.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_inventory_product_spents" WHERE "sales_product_id"=812

16:45:31.7660.3 msSELECTSELECT "id", "id" AS "key", "serial_no", "client_id", "project_id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4050

16:45:31.7660.5 msSELECTSELECT "id", "id" AS "key", "name", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=12

16:45:31.7670.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=5300

16:45:31.7670.4 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=3925

16:45:31.7690.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_tax_datas" WHERE ("date"='2025-08-01') AND ("is_settle"=TRUE)

16:45:31.7703.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=10004) AND ("visit_date"='2025-08-19')

16:45:31.7741.0 msUPDATEUPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=112, "last_visit_at"='now()' WHERE "id"=55336

16:45:31.7751.6 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/tax/sales-invoice-get-match', '{"id":"2115","web_access_token":"239qcuu_ToIhJtTt60gp-9_fllLTtTgq"}', '{"code":2000,"result":{"model":{"id":2115,"contract_id":4050,"from_date":"2025-08-01","attachment_id":"","amount":"590.00","created_by":5252,"created_at":"2025-08-01 10:09:00","description":"","invoice_num":"25112000000160738872","invoice_type":1,"is_match":false,"is_cancel":false,"is_used":false,"cancel_description":"","cover_invoice_id":"","red_invoice_id":"","new_invoice_id":"","need_new_invoice":false,"tax_amount":"67.88","excluding_tax":"522.12","is_draft":false,"updated_at":"2025-08-01 10:51:49","need_match":true,"need_match_description":"","match_tax_amount":"0","simple_match_tax_amount":"0","is_settle":false,"is_contract_cancel":false,"createdBy":{"id":5252,"key":5252,"name":"\u738b\u7b11\u7b11","sex":"F","department_id":6,"avatar":{"id":101,"user_id":5252,"name":"\/files\/cdn\/a57be577deb434\/avatar\/f5529321-408e-3d11-aa95-9b0a384f2d9c.png"},"department":{"id":6,"key":6,"name":"\u8d22\u52a1\u90e8"}},"attachmentRelationships":[],"files":[{"id":36217,"object_type":102,"object_id":2115,"attachment_id":27216,"attachment":{"id":27216,"key":27216,"name":"8de32707-e019-320f-84d4-7adafee892bf","extension":"pdf","path":"\/vue\/attachment\/view\/8de32707-e019-320f-84d4-7adafee892bf\/dzfp_25112000000160738872_SMC(\u5929\u6d25)\u5236\u9020\u6709\u9650\u516c\u53f8_20250801100050.pdf","orig_name":"dzfp_25112000000160738872_SMC(\u5929\u6d25)\u5236\u9020\u6709\u9650\u516c\u53f8_20250801100050.pdf"}}],"salesInvoiceReminders":[],"salesInvoiceProducts":[{"id":812,"sales_invoice_id":2115,"title":"16G","description":"*\u8ba1\u7b97\u673a\u914d\u5957\u4ea7\u54c1*\u5185\u5b58","number":"2","outbound":"0","unit":"\u5757","amount":"590","tax_rate":"13","including_tax":"0","excluding_tax":"522.12","tax_amount":"67.88","need_match":true,"inventory_count":"3","spents":[],"matchPurchaseInvoice":[],"inventory":3}],"contract":{"id":4050,"key":4050,"serial_no":"SMC\u5929\u6d25\u8ba2\u5355POTJ25076289","client_id":12,"project_id":3925,"client":{"id":12,"key":12,"name":"smc(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8\/SMC(\u5317\u4eac)\u5236\u9020\u6709\u9650\u516c\u53f8","sales_rep":5300,"salesRep":{"id":5300,"key":5300,"name":"\u82cf\u6e05\u4e91"}},"project":{"id":3925,"key":3925,"name":"OTJ25076289-\u5185\u5b58\u6761-G-2025"}},"invoice_type_display":"\u6570\u7535\u4e13\u7968","including_tax":0,"number":2,"tax_rate":["13"],"un_match_tax_amount":67.88,"except_simple_match_tax_amount":67.88,"salesInvoiceProductList":[{"tax_rate":13,"amount":590,"excluding_tax":522.12,"tax_amount":67.88,"list":[{"id":812,"sales_invoice_id":2115,"title":"16G","description":"*\u8ba1\u7b97\u673a\u914d\u5957\u4ea7\u54c1*\u5185\u5b58","number":"2","outbound":"0","unit":"\u5757","amount":"590","tax_rate":"13","including_tax":"0","excluding_tax":"522.12","tax_amount":"67.88","need_match":true,"inventory_count":"3","spents":[],"matchPurchaseInvoice":[],"inventory":3}]}],"ready_match":true,"can_update":true,"can_delete":true,"settle_month":"","can_match":true,"can_cancel_match":false,"can_simple_match":false,"can_need_match":true,"can_cancel":true,"can_red_cancel":true,"can_new_invoice":false}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-19 16:45:31') RETURNING "id"