Total processing time: 118 ms; Peak memory: 5.173 MB. Show Profiling Timeline
| Time | Duration | Category | Info |
|---|---|---|---|
| 14:39:37.626 | 48.1 ms | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id" IN (4868, 373, 372)) GROUP BY "object_id" |
| 14:39:37.675 | 27.0 ms | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=14) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id" IN (4868, 373, 372)) GROUP BY "object_id" |
| 14:39:37.606 | 4.2 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:39:37.618 | 2.9 ms | yii\db\Command::query | SELECT 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_suppliers" "supplier" ON supplier.id = c.supplier_id LEFT JOIN "a57be577deb434"."tbl_contact_mobiles" "cm" ON c.id = cm.contact_id AND cm.mp_open_id IS NOT NULL WHERE "supplier"."id"='133' 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" |
| 14:39:37.707 | 2.7 ms | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/contact/of-supplier', '{"id":"133","page":"1","web_access_token":"ukNwOz-BjUcQL9I3n8iWo2JcLwCMuHVk"}', '{"code":2000,"result":{"list":[{"id":4868,"name":"\u4edd\u4e49\u6770","email":"","pinyin_shortcut":"tyj","sex":"M","birth_date":"","department":"\u9500\u552e\u90e8","job_position":"\u9500\u552e","mobile":"","telephone":"","client_id":"","supplier_id":133,"created_by":1011,"created_at":"2023-10-20 17:26:05","updated_at":"2023-10-20 17:26:05","user_status":2,"description":"","contact_type":"2","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":"","pinyin1":"tong","pinyin2":"yi","pinyin3":"jie","pinyin4":"","namecut1":"\u4edd","namecut2":"\u4e49","namecut3":"\u6770","namecut4":"","is_mp_bind":false,"contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":1011,"email":"hanyafang@toast.com.cn","name":"\u97e9\u96c5\u82b3","user_status":"1","pinyin_shortcut":"hyf","sex":"F","birth_date":"1987-03-07","entry_date":"2011-08-08","department_id":3,"department_position_id":18,"mobile":"13126639155","telephone":"88864628","created_at":"2017-02-06 13:11:52","updated_at":"2024-11-01 17:28:04","id_number":"131128198703076043","native_place":"\u6cb3\u5317\u7701\u8861\u6c34\u5e02","graduate_school":"\u6cb3\u5317\u5eca\u574a\u5e08\u8303\u5b66\u9662","specialty":"\u751f\u7269\u6280\u672f\u5de5\u7a0b","education":"\u672c\u79d1","telephone_area_code":"010","telephone_extension_number":"831","leave_date":"","pinyin1":"han","pinyin2":"ya","pinyin3":"fang","pinyin4":"","namecut1":"\u97e9","namecut2":"\u96c5","namecut3":"\u82b3","namecut4":"","budget_count":"0","profit_count":"0","bargain_count":"0","opportunity_budget_count":"0","opportunity_count":"0","work_log_score":"0","e_implement_count":"0","e_budget_count":"0","e_profit_count":"0","e_client_count":"0","e_project_count":"0","e_point_count":"0","visit_resource_sync":false,"client_lock":false,"view_public":true,"client_remind_alarm_before":"","work_on_remind":true,"work_off_remind":true,"check_client_same":true,"calendar_view_type":7,"search_all_client":true,"view_product_cost":true},"mobiles":[{"id":5664,"contact_id":4868,"mobile":"13581802459","mp_open_id":"","mobile_display":"13581802459"}],"commentCount":{},"unreadComments":"","telephone_display":"","name_display":"\u4edd\u4e49\u6770","email_display":"","can_update":true,"can_delete":true,"unread":0},{"id":373,"name":"\u674e\u5b50\u6d9b","email":"","pinyin_shortcut":"lzt","sex":"M","birth_date":"","department":"\u9500\u552e\u90e8","job_position":"\u6e20\u9053\u9500\u552e","mobile":"","telephone":"","client_id":"","supplier_id":133,"created_by":1011,"created_at":"2017-03-17 10:29:46","updated_at":"2018-07-30 14:49:23","user_status":2,"description":"QQ:2435055085","contact_type":"2","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":"","pinyin1":"li","pinyin2":"zi","pinyin3":"tao","pinyin4":"","namecut1":"\u674e","namecut2":"\u5b50","namecut3":"","namecut4":"","is_mp_bind":"","contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":1011,"email":"hanyafang@toast.com.cn","name":"\u97e9\u96c5\u82b3","user_status":"1","pinyin_shortcut":"hyf","sex":"F","birth_date":"1987-03-07","entry_date":"2011-08-08","department_id":3,"department_position_id":18,"mobile":"13126639155","telephone":"88864628","created_at":"2017-02-06 13:11:52","updated_at":"2024-11-01 17:28:04","id_number":"131128198703076043","native_place":"\u6cb3\u5317\u7701\u8861\u6c34\u5e02","graduate_school":"\u6cb3\u5317\u5eca\u574a\u5e08\u8303\u5b66\u9662","specialty":"\u751f\u7269\u6280\u672f\u5de5\u7a0b","education":"\u672c\u79d1","telephone_area_code":"010","telephone_extension_number":"831","leave_date":"","pinyin1":"han","pinyin2":"ya","pinyin3":"fang","pinyin4":"","namecut1":"\u97e9","namecut2":"\u96c5","namecut3":"\u82b3","namecut4":"","budget_count":"0","profit_count":"0","bargain_count":"0","opportunity_budget_count":"0","opportunity_count":"0","work_log_score":"0","e_implement_count":"0","e_budget_count":"0","e_profit_count":"0","e_client_count":"0","e_project_count":"0","e_point_count":"0","visit_resource_sync":false,"client_lock":false,"view_public":true,"client_remind_alarm_before":"","work_on_remind":true,"work_off_remind":true,"check_client_same":true,"calendar_view_type":7,"search_all_client":true,"view_product_cost":true},"mobiles":[{"id":2065,"contact_id":373,"mobile":"18610863318","mp_open_id":"","mobile_display":"18610863318"}],"commentCount":{},"unreadComments":"","telephone_display":"","name_display":"\u674e\u5b50\u6d9b","email_display":"","can_update":true,"can_delete":true,"unread":0},{"id":372,"name":"\u548c\u54f2","email":"13911173967@139.com","pinyin_shortcut":"hz","sex":"M","birth_date":"","department":"\u9500\u552e\u90e8","job_position":"\u9500\u552e\u7ecf\u7406","mobile":"","telephone":"010-82860012","client_id":"","supplier_id":133,"created_by":1011,"created_at":"2017-03-17 10:26:40","updated_at":"2017-03-17 10:26:40","user_status":2,"description":"QQ:340642998","contact_type":"2","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":"","pinyin1":"he","pinyin2":"zhe","pinyin3":"","pinyin4":"","namecut1":"\u548c","namecut2":"\u54f2","namecut3":"","namecut4":"","is_mp_bind":"","contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":1011,"email":"hanyafang@toast.com.cn","name":"\u97e9\u96c5\u82b3","user_status":"1","pinyin_shortcut":"hyf","sex":"F","birth_date":"1987-03-07","entry_date":"2011-08-08","department_id":3,"department_position_id":18,"mobile":"13126639155","telephone":"88864628","created_at":"2017-02-06 13:11:52","updated_at":"2024-11-01 17:28:04","id_number":"131128198703076043","native_place":"\u6cb3\u5317\u7701\u8861\u6c34\u5e02","graduate_school":"\u6cb3\u5317\u5eca\u574a\u5e08\u8303\u5b66\u9662","specialty":"\u751f\u7269\u6280\u672f\u5de5\u7a0b","education":"\u672c\u79d1","telephone_area_code":"010","telephone_extension_number":"831","leave_date":"","pinyin1":"han","pinyin2":"ya","pinyin3":"fang","pinyin4":"","namecut1":"\u97e9","namecut2":"\u96c5","namecut3":"\u82b3","namecut4":"","budget_count":"0","profit_count":"0","bargain_count":"0","opportunity_budget_count":"0","opportunity_count":"0","work_log_score":"0","e_implement_count":"0","e_budget_count":"0","e_profit_count":"0","e_client_count":"0","e_project_count":"0","e_point_count":"0","visit_resource_sync":false,"client_lock":false,"view_public":true,"client_remind_alarm_before":"","work_on_remind":true,"work_off_remind":true,"check_client_same":true,"calendar_view_type":7,"search_all_client":true,"view_product_cost":true},"mobiles":[{"id":355,"contact_id":372,"mobile":"13911173967 \t","mp_open_id":"","mobile_display":"13911173967 \t"}],"commentCount":{},"unreadComments":"","telephone_display":"010-82860012","name_display":"\u548c\u54f2","email_display":"13911173967@139.com","can_update":true,"can_delete":true,"unread":0}],"can_create":true,"pagenation":{"totalcount":3,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"39.156.194.178","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-07-07 14:39:37', 104082944) RETURNING "id" |
| 14:39:37.621 | 2.1 ms | yii\db\Command::query | 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_suppliers" "supplier" ON supplier.id = c.supplier_id LEFT JOIN "a57be577deb434"."tbl_contact_mobiles" "cm" ON c.id = cm.contact_id AND cm.mp_open_id IS NOT NULL WHERE "supplier"."id"='133' 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 20 |
| 14:39:37.605 | 1.2 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 14:39:37.612 | 0.8 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:39:37.625 | 0.7 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (4868, 373, 372) |
| 14:39:37.624 | 0.5 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "status" AS "name" FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
| 14:39:37.613 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 14:39:37.625 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1011 |
| 14:39:37.617 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='133' |