Database Queries

总计16条数据
TimeDurationTypeQuery
  
10:10:59.3426.0 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

10:10:59.3490.6 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

10:10:59.3512.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

10:10:59.3551.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3547'

10:10:59.3581.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3547

10:10:59.3603.3 msSELECTSELECT COUNT(*) FROM (SELECT sci.* FROM "a57be577deb434"."tbl_sales_contract_invoices" "sci" LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = sci.contract_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = sc.from_project LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON sc.client_id = c.id WHERE (sci.cover_invoice_id is null) AND ("contract_id"=3764) GROUP BY "sci"."id" ORDER BY "from_date" DESC, "created_at" DESC) "c"

10:10:59.3641.7 msSELECTSELECT sci.* FROM "a57be577deb434"."tbl_sales_contract_invoices" "sci" LEFT JOIN "a57be577deb434"."tbl_sales_contracts" "sc" ON sc.id = sci.contract_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = sc.from_project LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON sc.client_id = c.id WHERE (sci.cover_invoice_id is null) AND ("contract_id"=3764) GROUP BY "sci"."id" ORDER BY "from_date" DESC, "created_at" DESC LIMIT 20

10:10:59.3660.4 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5252

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

10:10:59.3680.4 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=6

10:10:59.3684.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20) AND ("object_id" IN (2142, 2026))

10:10:59.3742.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=102) AND ("object_id" IN (2142, 2026))

10:10:59.3783.6 msSELECTSELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (25397, 28016)

10:10:59.3875.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=1) AND ("visit_date"='2025-12-23')

10:10:59.3942.1 msUPDATEUPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=2, "last_visit_at"='now()' WHERE "id"=59630

10:10:59.3972.9 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/project/list-invoice', '{"project_id":"3547","page":"1","web_access_token":"yb8YvQDqCxvGUQWSJnYL2S9XtkD7pVRr"}', '{"code":2000,"result":{"list":[{"id":2142,"contract_id":3764,"from_date":"2025-09-05","attachment_id":"","amount":"144130.00","created_by":5252,"created_at":"2025-09-05 09:41:44","description":"","invoice_num":"25112000000188080619","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":"8158.3","excluding_tax":"135971.7","is_draft":false,"updated_at":"2025-09-05 09:42:33","need_match":false,"need_match_description":"","match_tax_amount":"0","simple_match_tax_amount":"0","is_settle":true,"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"}},"attachment":{"path":"\/vue\/attachment\/preview\/\/"},"attachmentRelationships":[],"files":[{"id":49708,"object_type":102,"object_id":2142,"attachment_id":28016,"attachment":{"id":28016,"key":28016,"name":"954dcd9a-03f1-3541-8ec2-48316b584f79","extension":"pdf","path":"\/vue\/attachment\/view\/954dcd9a-03f1-3541-8ec2-48316b584f79\/dzfp_25112000000188080619_\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240_20250905094040.pdf","orig_name":"dzfp_25112000000188080619_\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240_20250905094040.pdf"}}]},{"id":2026,"contract_id":3764,"from_date":"2025-04-30","attachment_id":"","amount":"61770.00","created_by":5252,"created_at":"2025-04-30 09:30:22","description":"","invoice_num":"25112000000088431222","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":"3496.42","excluding_tax":"58273.58","is_draft":false,"updated_at":"2025-04-30 09:48:38","need_match":false,"need_match_description":"","match_tax_amount":"0","simple_match_tax_amount":"0","is_settle":true,"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"}},"attachment":{"path":"\/vue\/attachment\/preview\/\/"},"attachmentRelationships":[],"files":[{"id":33913,"object_type":102,"object_id":2026,"attachment_id":25397,"attachment":{"id":25397,"key":25397,"name":"6c9b1c9a-201d-32aa-967b-eef697b115ea","extension":"pdf","path":"\/vue\/attachment\/view\/6c9b1c9a-201d-32aa-967b-eef697b115ea\/dzfp_25112000000088431222_\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240_20250430092718.pdf","orig_name":"dzfp_25112000000088431222_\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240_20250430092718.pdf"}}]}],"pagenation":{"totalcount":2,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"223.72.15.12","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko\/20100101 Firefox\/146.0"}', FALSE, '2025-12-23 10:10:59') RETURNING "id"