Database Queries

总计16条数据
TimeDurationTypeQuery
  
21:22:02.1123.6 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH'

21:22:02.1161.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

21:22:02.1201.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='1661') AND ("deleted"=FALSE)

21:22:02.1223.2 msSELECTSELECT COUNT(*) FROM (SELECT c.*, CASE WHEN count(cm.id) != 0 THEN 1 ELSE null END as mp_open_id FROM "a57be577deb434"."tbl_contacts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_contact_mobiles" "cm" ON c.id = cm.contact_id AND cm.mp_open_id IS NOT NULL WHERE "client"."id"='1661' GROUP BY "c"."id" ORDER BY (case c.user_status when 3 then 1 when 1 then 0 else c.user_status end) DESC, c.updated_at DESC) "c"

21:22:02.1262.6 msSELECTSELECT c.*, CASE WHEN count(cm.id) != 0 THEN 1 ELSE null END as mp_open_id FROM "a57be577deb434"."tbl_contacts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_contact_mobiles" "cm" ON c.id = cm.contact_id AND cm.mp_open_id IS NOT NULL WHERE "client"."id"='1661' GROUP BY "c"."id" ORDER BY (case c.user_status when 3 then 1 when 1 then 0 else c.user_status end) DESC, c.updated_at DESC LIMIT 10

21:22:02.1290.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2

21:22:02.1300.3 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011

21:22:02.1310.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id" IN (3165, 3164) ORDER BY "key_role"

21:22:02.1311.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (3165, 3164)

21:22:02.13324.1 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id" IN (3165, 3164)) GROUP BY "object_id"

21:22:02.1570.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (3165, 3164)

21:22:02.1580.7 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (1, 164, 179, 160, 140, 181, 184, 189, 349, 5, 165, 133, 196, 204, 340)) ORDER BY "sort"

21:22:02.1590.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (3165, 3164)

21:22:02.1590.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (1, 164, 179, 160, 140, 181, 184, 189, 349, 5, 165, 133, 196, 204, 340)) ORDER BY "sort"

21:22:02.16022.1 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=14) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id" IN (3165, 3164)) GROUP BY "object_id"

21:22:02.1851.7 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 2, 1142, 'v2/contact/of-client', '{"access_token":"oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH","device_type":"2","id":"1661","page":"1","posttime":"1752672128","token":"12d70a7d2c836036ce7d5cfb64aaedd3","version_code":"1142"}', '{"code":200,"data":{"list":[{"id":3165,"name":"\u674e\u4e1c","email":"","pinyin_shortcut":"ld","sex":"M","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"","client_id":1661,"supplier_id":null,"created_by":1011,"created_at":"2020-06-23 16:17:44","updated_at":"2020-06-23 16:17:44","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":1,"pinyin1":"li","pinyin2":"dong","pinyin3":null,"pinyin4":null,"namecut1":"\u674e","namecut2":"\u4e1c","namecut3":null,"namecut4":null,"is_mp_bind":true,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c","created_by":1000,"created_at":"2016-10-31 21:28:36","updated_at":"2016-10-31 21:28:40"},"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F"},"keyRoles":[],"mobiles":[{"id":3441,"contact_id":3165,"mobile":"13910153114","mp_open_id":"oagch6X0Lxczsc4IcPa75yqsxq64","mobile_display":"13910153114"}],"commentCount":null,"contactKeyRoles":[{"id":133,"key":133,"name":"\u603b\u51b3\u7b56\u4eba"}],"contactAttitude":null,"unreadComments":null,"can_update":true,"can_delete":true,"name_display":"\u674e\u4e1c","telephone_display":"","unread":0,"bind_status":1,"bind_status_display":"\u5df2\u8ba4\u8bc1"},{"id":3164,"name":"\u90ed\u65fa","email":"guowang@netcell.cn","pinyin_shortcut":"gw","sex":"M","birth_date":null,"department":"\u91c7\u8d2d\u90e8","job_position":"\u91c7\u8d2d","mobile":"","telephone":"","client_id":1661,"supplier_id":null,"created_by":1011,"created_at":"2020-06-23 16:17:07","updated_at":"2020-06-23 16:17:07","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"guo","pinyin2":"wang","pinyin3":null,"pinyin4":null,"namecut1":"\u90ed","namecut2":"\u65fa","namecut3":null,"namecut4":null,"is_mp_bind":null,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c","created_by":1000,"created_at":"2016-10-31 21:28:36","updated_at":"2016-10-31 21:28:40"},"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F"},"keyRoles":[],"mobiles":[{"id":3440,"contact_id":3164,"mobile":"18201052811","mp_open_id":null,"mobile_display":"18201052811"}],"commentCount":null,"contactKeyRoles":[{"id":160,"key":160,"name":"\u666e\u901a\u4eba"}],"contactAttitude":{"id":140,"key":140,"name":"\u4e2d\u7acb"},"unreadComments":null,"can_update":true,"can_delete":true,"name_display":"\u90ed\u65fa","email_display":"guowang@netcell.cn","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"}],"pagenation":{"totalcount":2,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-16 21:22:02') RETURNING "id"