Total processing time: 135 ms; Peak memory: 4.899 MB. Show Profiling Timeline
Time | Duration | Category | Info |
---|---|---|---|
20:10:08.596 | 43.1 ms | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT c.*, CASE WHEN p.client_id IS NULL THEN false ELSE true END AS cooperated, CASE WHEN c.sales_rep IS NULL THEN 0 ELSE 1 END AS is_public, sl.lost_contact_days, extract(epoch from (now() - max(arrive.end_at))) / 86400 AS last_arrive_days, sl.last_contact, max(arrive.end_at) as last_arrive, CASE WHEN c.client_class IS NOT NULL THEN ( (CASE WHEN cl.contact_base > 0 THEN floor(CASE WHEN c.contact_count > cl.contact_base THEN 1 * 15 ELSE c.contact_count * 15 / cl.contact_base END) ELSE 15 END) + floor(c.client_base_info_count * 15 / 9) + (CASE WHEN cl.visit_base > 0 THEN floor(CASE WHEN c.visit_count > ceil((CASE WHEN extract(year from now()) = extract(year from c.created_at::date) THEN (now()::date - c.created_at::date + 1)::float ELSE 242::float END) / cl.visit_base::float) THEN 1 * 20 ELSE c.visit_count * 20 / ceil((CASE WHEN extract(year from now()) = extract(year from c.created_at::date) THEN (now()::date - c.created_at::date + 1)::float ELSE 242::float END) / cl.visit_base::float) END) ELSE 20 END) + (CASE WHEN cl.cooperate_base > 0 THEN floor(CASE WHEN c.cooperate_count > cl.cooperate_base THEN 1 * 20 ELSE c.cooperate_count * 20 / cl.cooperate_base END) ELSE 20 END) + (CASE WHEN cl.case_pre_sales_base > 0 THEN floor(CASE WHEN c.case_pre_sales_count > cl.case_pre_sales_base THEN 1 * 15 ELSE c.case_pre_sales_count * 15 / cl.case_pre_sales_base END) ELSE 15 END) + (CASE WHEN cl.case_implement_base > 0 THEN floor(CASE WHEN c.case_implement_count > cl.case_implement_base THEN 1 * 15 ELSE c.case_implement_count * 15 / cl.case_implement_base END) ELSE 15 END) ) ELSE NULL END as score FROM "a57be577deb434"."tbl_clients" "c" LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.sales_rep LEFT JOIN "a57be577deb434"."tbl_client_classes" "cl" ON cl.id = c.client_class LEFT JOIN "a57be577deb434"."tbl_client_address_rels" "car" ON car.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_addresses" "a" ON car.address_id = a.id LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_projects" WHERE "project_status"=3 GROUP BY "client_id") "p" ON p.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_work_logs" "arrive" ON (arrive.client_id = c.id) AND ("arrive"."scenario_id"=1) AND ("arrive"."is_draft"=FALSE) AND ("arrive"."location_in_id" IS NOT NULL) AND ("arrive"."location_out_id" IS NOT NULL) AND ("arrive"."client_id" IS NOT NULL) LEFT JOIN (SELECT extract(epoch from (now() - max(end_at))) / 86400 AS lost_contact_days, max(end_at) as last_contact, client_id FROM "a57be577deb434"."tbl_work_logs" WHERE "is_draft"=FALSE GROUP BY "client_id") "sl" ON sl.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr" ON ttr.object_id = c.id AND ttr.term_id = 14 LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_contacts" WHERE lower(name) LIKE '%金%' GROUP BY "client_id") "cc" ON cc.client_id = c.id LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_sales_order_items" WHERE (lower(pn) LIKE '%金%') OR (lower(sn) LIKE '%金%') OR (lower(description) LIKE '%金%') GROUP BY "client_id") "s" ON c.id = s.client_id LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_projects" WHERE ("pinyin_shortcut" ILIKE '%金%') OR ("project_title" ILIKE '%金%') OR ("description" ILIKE '%金%') OR ("comment" ILIKE '%金%') GROUP BY "client_id") "pp" ON c.id = pp.client_id WHERE (("cc"."client_id" IS NOT NULL) OR ("s"."client_id" IS NOT NULL) OR ("pp"."client_id" IS NOT NULL) OR (lower(c.name) LIKE '%金%') OR ("c"."pinyin_shortcut" LIKE '%金%') OR (lower(c.description) LIKE '%金%') OR (lower(c.it_budget) LIKE '%金%') OR (lower(c.main_business) LIKE '%金%') OR (lower(c.deployment_mode) LIKE '%金%') OR (lower(c.it_per_num) LIKE '%金%') OR (lower(c.public_relations_difficulty) LIKE '%金%') OR (lower(c.it_status) LIKE '%金%') OR (lower(c.decision_process) LIKE '%金%') OR (lower(c.coach) LIKE '%金%') OR (lower(c.competitor) LIKE '%金%') OR (lower(c.main_product) LIKE '%金%') OR (lower(c.headcount) LIKE '%金%') OR (lower(c.peers) LIKE '%金%') OR (lower(c.supplier) LIKE '%金%')) AND ("sgr"."group_id"='1') AND ("c"."sales_rep"='1001') AND ("c"."sales_rep"='1001') AND ("deleted"=FALSE) GROUP BY "c"."id", "cl"."id", "cooperated", "lost_contact_days", "last_contact" ORDER BY "is_public" DESC, lost_contact_days DESC NULLS LAST, "c"."created_at" DESC) "c" |
20:10:08.639 | 40.0 ms | yii\db\Command::query | SELECT c.*, CASE WHEN p.client_id IS NULL THEN false ELSE true END AS cooperated, CASE WHEN c.sales_rep IS NULL THEN 0 ELSE 1 END AS is_public, sl.lost_contact_days, extract(epoch from (now() - max(arrive.end_at))) / 86400 AS last_arrive_days, sl.last_contact, max(arrive.end_at) as last_arrive, CASE WHEN c.client_class IS NOT NULL THEN ( (CASE WHEN cl.contact_base > 0 THEN floor(CASE WHEN c.contact_count > cl.contact_base THEN 1 * 15 ELSE c.contact_count * 15 / cl.contact_base END) ELSE 15 END) + floor(c.client_base_info_count * 15 / 9) + (CASE WHEN cl.visit_base > 0 THEN floor(CASE WHEN c.visit_count > ceil((CASE WHEN extract(year from now()) = extract(year from c.created_at::date) THEN (now()::date - c.created_at::date + 1)::float ELSE 242::float END) / cl.visit_base::float) THEN 1 * 20 ELSE c.visit_count * 20 / ceil((CASE WHEN extract(year from now()) = extract(year from c.created_at::date) THEN (now()::date - c.created_at::date + 1)::float ELSE 242::float END) / cl.visit_base::float) END) ELSE 20 END) + (CASE WHEN cl.cooperate_base > 0 THEN floor(CASE WHEN c.cooperate_count > cl.cooperate_base THEN 1 * 20 ELSE c.cooperate_count * 20 / cl.cooperate_base END) ELSE 20 END) + (CASE WHEN cl.case_pre_sales_base > 0 THEN floor(CASE WHEN c.case_pre_sales_count > cl.case_pre_sales_base THEN 1 * 15 ELSE c.case_pre_sales_count * 15 / cl.case_pre_sales_base END) ELSE 15 END) + (CASE WHEN cl.case_implement_base > 0 THEN floor(CASE WHEN c.case_implement_count > cl.case_implement_base THEN 1 * 15 ELSE c.case_implement_count * 15 / cl.case_implement_base END) ELSE 15 END) ) ELSE NULL END as score FROM "a57be577deb434"."tbl_clients" "c" LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.sales_rep LEFT JOIN "a57be577deb434"."tbl_client_classes" "cl" ON cl.id = c.client_class LEFT JOIN "a57be577deb434"."tbl_client_address_rels" "car" ON car.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_addresses" "a" ON car.address_id = a.id LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_projects" WHERE "project_status"=3 GROUP BY "client_id") "p" ON p.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_work_logs" "arrive" ON (arrive.client_id = c.id) AND ("arrive"."scenario_id"=1) AND ("arrive"."is_draft"=FALSE) AND ("arrive"."location_in_id" IS NOT NULL) AND ("arrive"."location_out_id" IS NOT NULL) AND ("arrive"."client_id" IS NOT NULL) LEFT JOIN (SELECT extract(epoch from (now() - max(end_at))) / 86400 AS lost_contact_days, max(end_at) as last_contact, client_id FROM "a57be577deb434"."tbl_work_logs" WHERE "is_draft"=FALSE GROUP BY "client_id") "sl" ON sl.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr" ON ttr.object_id = c.id AND ttr.term_id = 14 LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_contacts" WHERE lower(name) LIKE '%金%' GROUP BY "client_id") "cc" ON cc.client_id = c.id LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_sales_order_items" WHERE (lower(pn) LIKE '%金%') OR (lower(sn) LIKE '%金%') OR (lower(description) LIKE '%金%') GROUP BY "client_id") "s" ON c.id = s.client_id LEFT JOIN (SELECT "client_id" FROM "a57be577deb434"."tbl_projects" WHERE ("pinyin_shortcut" ILIKE '%金%') OR ("project_title" ILIKE '%金%') OR ("description" ILIKE '%金%') OR ("comment" ILIKE '%金%') GROUP BY "client_id") "pp" ON c.id = pp.client_id WHERE (("cc"."client_id" IS NOT NULL) OR ("s"."client_id" IS NOT NULL) OR ("pp"."client_id" IS NOT NULL) OR (lower(c.name) LIKE '%金%') OR ("c"."pinyin_shortcut" LIKE '%金%') OR (lower(c.description) LIKE '%金%') OR (lower(c.it_budget) LIKE '%金%') OR (lower(c.main_business) LIKE '%金%') OR (lower(c.deployment_mode) LIKE '%金%') OR (lower(c.it_per_num) LIKE '%金%') OR (lower(c.public_relations_difficulty) LIKE '%金%') OR (lower(c.it_status) LIKE '%金%') OR (lower(c.decision_process) LIKE '%金%') OR (lower(c.coach) LIKE '%金%') OR (lower(c.competitor) LIKE '%金%') OR (lower(c.main_product) LIKE '%金%') OR (lower(c.headcount) LIKE '%金%') OR (lower(c.peers) LIKE '%金%') OR (lower(c.supplier) LIKE '%金%')) AND ("sgr"."group_id"='1') AND ("c"."sales_rep"='1001') AND ("c"."sales_rep"='1001') AND ("deleted"=FALSE) GROUP BY "c"."id", "cl"."id", "cooperated", "lost_contact_days", "last_contact" ORDER BY "is_public" DESC, lost_contact_days DESC NULLS LAST, "c"."created_at" DESC LIMIT 20 |
20:10:08.686 | 20.4 ms | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=10) AND ("object_id" IN (982, 3081, 3372, 3301, 3286, 2719, 2519)) GROUP BY "object_id" |
20:10:08.709 | 3.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=29) AND ("visit_date"='2025-08-30') |
20:10:08.587 | 2.3 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
20:10:08.585 | 2.0 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
20:10:08.714 | 1.6 ms | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/account/list-client', '{"ClientSearch":{"group":"1","sales_rep":"1001","target":"5446","keyword":"\u91d1"},"Filter":{"name":"lost_contact_days","sort":"ASC"},"page":"1","web_access_token":"GwzcwQPxiTG2B3PUDaCrV_Wl4I70m3do"}', '{"code":2000,"result":{"list":[{"id":982,"name":"\u4e2d\u56fd\u4fe1\u606f\u5b89\u5168\u7814\u7a76\u6240","abbr":"","pinyin_shortcut":"zgxxaqyjs","description":"","corp_rep":"","website":"","capital":"","established_at":"","headcount":"","reg_address":"","working_address":"","telephone":"01062305540","fax":"","scale":"","branch":"","purchase_scale_per_yr":"0","purchase_freq":"","company_nature":3,"client_class":1,"client_industry":4,"client_type":6,"sales_rep":1001,"main_contact":"","created_by":5076,"created_at":"2018-05-16 18:55:46","updated_at":"2025-08-29 10:52:01","main_business":"","deleted":false,"capital_currency":"rmb","invoice_info":"","logo":"","en_name":"","pick_at":"2024-06-27 14:45:57","it_budget":"800","deployment_mode":"","it_per_num":"","public_relations_difficulty":"","it_status":"","decision_process":"","coach":"","competitor":"","peers":"","supplier":"","main_product":"","client_base_info_count":2,"client_key_info_count":1,"contact_count":62,"visit_count":0,"cooperate_count":0,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":"","tax_no":"","cooperated":true,"is_public":1,"lost_contact_days":"1055.2563500142","last_arrive_days":"1055.2563500142","last_contact":"2022-10-10 14:01:00","last_arrive":"2022-10-10 14:01:00+08","score":"18","clientType":{"id":6,"key":6,"name":"\u592e\u4f01"},"clientClass":{"id":1,"key":1,"name":"\u6838\u5fc3\u5ba2\u6237","notice_days":10,"color":"#E89F0E"},"clientFrom":"","clientIndustry":{"id":4,"key":4,"name":"\u901a\u4fe1"},"companyNature":{"id":3,"key":3,"name":"\u56fd\u6709\u4f01\u4e1a"},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","client_lock":false,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"createdBy":{"id":5076,"key":5076,"name":"\u5b8b\u6d77\u7389","sex":"F","department_id":1,"avatar":{"id":46,"user_id":5076,"name":"\/files\/cdn\/a57be577deb434\/avatar\/1e11fe84-1d83-3f23-8870-748e96aae907.jpeg"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"commentCount":{"object_id":982,"comment":3},"visitUsers":[{"id":6536,"client_id":982,"user_id":5446}],"unCloseCases":[],"checked":true},{"id":3081,"name":"\u91d1\u98ce\u79d1\u521b\u98ce\u7535\u8bbe\u5907\u6709\u9650\u516c\u53f8(CAE)-\uff08\u91cd\u590d\u5ba2\u6237\uff09","abbr":"","pinyin_shortcut":"jfkcfdsbyxgsCAEcfkh","description":"\u6240\u5c5e\u884c\u4e1a\u6c7d\u8f66\/\u667a\u80fd\u5236\u9020\u516c\u53f8\u4ea7\u54c1\u98ce\u7535\u8bbe\u5907\u3001\u667a\u6167\u50a8\u80fd\u5355\u5143\u5ba2\u6237\u7fa4\u98ce\u7535\u8fd0\u8425\u5546\u7ade\u4e89\u4f18\u52bf\u7ade\u4e89\u5bf9\u624b\uff08\u542f\u4fe1\u5b9d\u7ade\u54c1\u4fe1\u606f\u660e\u786e\u6807\u660e\uff09\u745e\u80fd\u5317\u65b9\u98ce\u7535\u8bbe\u5907\u6709\u9650\u516c\u53f8\u516c\u53f8\u4eba\u65701210\u79d1\u7814\u56e2\u961f\uff08\u542f\u4fe1\u5b9d\u660e\u786e\u6807\u660e\uff0977\u4e13\u5229\uff08\u542f\u4fe1\u5b9d\u660e\u786e\u6807\u660e\uff092814","corp_rep":"","website":"https:\/\/www.goldwind.com\/cn\/windpower\/solution-onshore\/","capital":"","established_at":"2006-02-13","headcount":"","reg_address":"","working_address":"","telephone":"","fax":"","scale":"","branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":4,"client_class":43,"client_industry":57,"client_type":5,"sales_rep":1001,"main_contact":"","created_by":1001,"created_at":"2024-05-10 18:01:54","updated_at":"2025-08-29 12:48:43","main_business":"","deleted":false,"capital_currency":"rmb","invoice_info":"","logo":"","en_name":"","pick_at":"2024-10-28 17:59:52","it_budget":"","deployment_mode":"","it_per_num":"","public_relations_difficulty":"","it_status":"","decision_process":"","coach":"","competitor":"","peers":"","supplier":"","main_product":"","client_base_info_count":3,"client_key_info_count":0,"contact_count":7,"visit_count":2,"cooperate_count":0,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":5750,"tax_no":"","cooperated":false,"is_public":1,"lost_contact_days":"387.152877791979","last_arrive_days":"459.365377791979","last_contact":"2024-08-08 16:30:00","last_arrive":"2024-05-28 11:24:00+08","score":"22","clientType":{"id":5,"key":5,"name":"\u5546\u4e1a"},"clientClass":{"id":43,"key":43,"name":"\u6f5c\u529b\u5ba2\u6237","notice_days":60,"color":"#1EE6DC"},"clientFrom":"","clientIndustry":{"id":57,"key":57,"name":"EDA\/CAE"},"companyNature":{"id":4,"key":4,"name":"\u6c11\u8425\u4f01\u4e1a"},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","client_lock":false,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":{"object_id":3081,"comment":4},"visitUsers":[{"id":6580,"client_id":3081,"user_id":5446}],"unCloseCases":[],"checked":true},{"id":3372,"name":"\u6d77\u5357\u65f6\u4ee3\u5171\u8d62\u79c1\u52df\u57fa\u91d1\u7ba1\u7406\u5408\u4f19\u4f01\u4e1a\uff08\u6709\u9650\u5408\u4f19\uff09","abbr":"","pinyin_shortcut":"hnsdgysmjjglhhqyyxhh","description":"","corp_rep":"\u97e9\u5149\u52c7","website":"","capital":"1000","established_at":"2020-08-24","headcount":"","reg_address":"","working_address":"","telephone":"18681551295","fax":"","scale":"","branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":4,"client_class":43,"client_industry":10,"client_type":5,"sales_rep":1001,"main_contact":"","created_by":1011,"created_at":"2025-06-13 14:44:58","updated_at":"2025-08-20 17:27:08","main_business":"","deleted":false,"capital_currency":"rmb","invoice_info":"\u540d\u79f0\uff1a\u6d77\u5357\u65f6\u4ee3\u5171\u8d62\u79c1\u52df\u57fa\u91d1\u7ba1\u7406\u5408\u4f19\u4f01\u4e1a\uff08\u6709\u9650\u5408\u4f19\uff09\n\u7a0e\u53f7\uff1a91460000MA5TMJQA1N\n\u5355\u4f4d\u5730\u5740\uff1a\u6d77\u5357\u7701\u4e09\u4e9a\u5e02\u6d77\u68e0\u6e7e\u533a\u4e9a\u592a\u91d1\u878d\u5c0f\u9547A1\u533a2-8\u53f7\n\u7535\u8bdd\uff1a18681551295\n\u5f00\u6237\u94f6\u884c\uff1a\u4e2d\u56fd\u5de5\u5546\u94f6\u884c\u80a1\u4efd\u6709\u9650\u516c\u53f8\u4e09\u4e9a\u6d77\u68e0\u6e7e\u652f\u884c\n\u94f6\u884c\u8d26\u6237\uff1a2201085709100046924\n\u6536\u7968\u90ae\u7bb1\uff1a657288788@qq.com","logo":"","en_name":"","pick_at":"2025-06-13 14:44:58","it_budget":"","deployment_mode":"","it_per_num":"","public_relations_difficulty":"","it_status":"","decision_process":"","coach":"","competitor":"","peers":"","supplier":"","main_product":"","client_base_info_count":6,"client_key_info_count":0,"contact_count":1,"visit_count":0,"cooperate_count":1,"case_pre_sales_count":0,"case_implement_count":3,"is_overdue_remind":false,"from_contact":4640,"tax_no":"","cooperated":true,"is_public":1,"lost_contact_days":"","last_arrive_days":"","last_contact":"","last_arrive":"","score":"52","clientType":{"id":5,"key":5,"name":"\u5546\u4e1a"},"clientClass":{"id":43,"key":43,"name":"\u6f5c\u529b\u5ba2\u6237","notice_days":60,"color":"#1EE6DC"},"clientFrom":"","clientIndustry":{"id":10,"key":10,"name":"\u91d1\u878d"},"companyNature":{"id":4,"key":4,"name":"\u6c11\u8425\u4f01\u4e1a"},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","client_lock":false,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","department_id":3,"avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"},"department":{"id":3,"key":3,"name":"\u5546\u52a1\u90e8"}},"commentCount":"","visitUsers":[{"id":6591,"client_id":3372,"user_id":5446}],"unCloseCases":[],"checked":true},{"id":3301,"name":"\u91d1\u878d\u65f6\u62a5\u793e","abbr":"","pinyin_shortcut":"jrsbs","description":"","corp_rep":"\u90a2\u65e9\u5fe0","website":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u4e2d\u5173\u6751\u5357\u5927\u8857\u753218\u53f7D\u5ea722\u5c42","capital":"","established_at":"","headcount":"","reg_address":"","working_address":"","telephone":"010-82198082","fax":"","scale":"","branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":3,"client_class":43,"client_industry":18,"client_type":6,"sales_rep":1001,"main_contact":"","created_by":1001,"created_at":"2024-09-06 17:10:37","updated_at":"2025-05-08 14:39:42","main_business":"","deleted":false,"capital_currency":"rmb","invoice_info":"\u589e\u503c\u7a0e\u4e13\u7528\u53d1\u7968\n\u5f00\u6237\u94f6\u884c:\u4e2d\u56fd\u5de5\u5546\u94f6\u884c\u80a1\u4efd\u6709\u9650\u516c\u53f8\u5317\u4eac\u592a\u5e73\u6865\u652f\u884c\n\u94f6\u884c\u8d26\u6237:0200020309014412832\n\u6ce8\u518c\u5730\u5740:\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u4e2d\u5173\u6751\u5357\u5927\u8857\u753218\u53f7D\u5ea718-22\u5c42","logo":"","en_name":"","pick_at":"2024-09-06 17:10:37","it_budget":"","deployment_mode":"","it_per_num":"","public_relations_difficulty":"","it_status":"","decision_process":"","coach":"","competitor":"","peers":"","supplier":"","main_product":"","client_base_info_count":5,"client_key_info_count":0,"contact_count":2,"visit_count":0,"cooperate_count":2,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":"","tax_no":"","cooperated":true,"is_public":1,"lost_contact_days":"","last_arrive_days":"","last_contact":"","last_arrive":"","score":"43","clientType":{"id":6,"key":6,"name":"\u592e\u4f01"},"clientClass":{"id":43,"key":43,"name":"\u6f5c\u529b\u5ba2\u6237","notice_days":60,"color":"#1EE6DC"},"clientFrom":"","clientIndustry":{"id":18,"key":18,"name":"\u5a92\u4f53"},"companyNature":{"id":3,"key":3,"name":"\u56fd\u6709\u4f01\u4e1a"},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","client_lock":false,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":"","visitUsers":[{"id":6584,"client_id":3301,"user_id":5446}],"unCloseCases":[],"checked":true},{"id":3286,"name":"\u826f\u56fe\u79d1\u6280\uff08\u4e0a\u6d77\uff09\u6709\u9650\u516c\u53f8","abbr":"","pinyin_shortcut":"ltkjshyxgs","description":"\u53d1\u7968\u5bc4\u9001\u5730\u5740\uff1a\u4e0a\u6d77\u5e02\u9759\u5b89\u533a\u6c5f\u573a\u897f\u8def299\u5f0449\u53f7\u4e2d\u94c1\u4e2d\u73af\u65f6\u4ee3\u5e7f\u573a1\u53f7\u697c1201B \u826f\u56fe\u79d1\u6280\uff08\u4e0a\u6d77\uff09\u6709\u9650\u516c\u53f8 \u8d22\u52a1\u4e18\u794e\u7a0b 021-61421866","corp_rep":"CHIA HONG LOONG ERIC","website":"","capital":"1000","established_at":"2006-04-09","headcount":"","reg_address":"","working_address":3793,"telephone":"","fax":"","scale":"","branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":4,"client_class":43,"client_industry":13,"client_type":5,"sales_rep":1001,"main_contact":"","created_by":1001,"created_at":"2024-07-03 14:38:20","updated_at":"2025-08-14 15:19:53","main_business":"","deleted":false,"capital_currency":"rmb","invoice_info":"\u516c\u53f8\u540d\u79f0: \u826f\u56fe\u79d1\u6280\uff08\u4e0a\u6d77\uff09\u6709\u9650\u516c\u53f8\n\u7edf\u4e00\u793e\u4f1a\u4fe1\u7528\u4ee3\u7801\uff1a 91310000786707955D\n\u516c\u53f8\u5730\u5740\u53ca\u7535\u8bdd:\u3000\u4e0a\u6d77\u5e02\u9759\u5b89\u533a\u6c5f\u573a\u897f\u8def299\u5f0449\u53f71201-3\u30011201-4\u30011201-5\u5ba4\u00a0\u00a0\u00a0 021-61421866\n\u5f00\u6237\u94f6\u884c\u3001\u8d26\u53f7\uff1a\u4ea4\u901a\u94f6\u884c\u5e02\u5317\u5de5\u4e1a\u533a\u652f\u884c\u00a0 310066247018160174864\u00a0 ","logo":"","en_name":"","pick_at":"2024-07-03 14:38:20","it_budget":"","deployment_mode":"","it_per_num":"","public_relations_difficulty":"","it_status":"","decision_process":"","coach":"","competitor":"","peers":"","supplier":"","main_product":"","client_base_info_count":5,"client_key_info_count":0,"contact_count":2,"visit_count":0,"cooperate_count":1,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":1262,"tax_no":"","cooperated":true,"is_public":1,"lost_contact_days":"","last_arrive_days":"","last_contact":"","last_arrive":"","score":"43","clientType":{"id":5,"key":5,"name":"\u5546\u4e1a"},"clientClass":{"id":43,"key":43,"name":"\u6f5c\u529b\u5ba2\u6237","notice_days":60,"color":"#1EE6DC"},"clientFrom":"","clientIndustry":{"id":13,"key":13,"name":"SI\/ISV"},"companyNature":{"id":4,"key":4,"name":"\u6c11\u8425\u4f01\u4e1a"},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","client_lock":false,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":"","visitUsers":[{"id":6582,"client_id":3286,"user_id":5446}],"unCloseCases":[],"checked":true},{"id":2719,"name":"\u91d1\u9510\u540c\u521b\uff08\u5317\u4eac\uff09\u79d1\u6280\u80a1\u4efd\u6709\u9650\u516c\u53f8\uff08\u8fc7\u5355\uff09","abbr":"","pinyin_shortcut":"jrtcbjkjgfyxgsgd","description":"","corp_rep":"\u91d1\u5b8f\u4f1f","website":"http:\/\/www.jrunion.com.cn","capital":"6076.22","established_at":"2012-12-21","headcount":"","reg_address":"","working_address":3317,"telephone":"","fax":"","scale":"","branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":4,"client_class":47,"client_industry":4,"client_type":5,"sales_rep":1001,"main_contact":"","created_by":5360,"created_at":"2023-11-27 18:00:19","updated_at":"2024-12-11 13:33:43","main_business":"","deleted":false,"capital_currency":"rmb","invoice_info":"","logo":"","en_name":"","pick_at":"2023-11-27 18:00:19","it_budget":"","deployment_mode":"","it_per_num":"","public_relations_difficulty":"","it_status":"","decision_process":"","coach":"","competitor":"","peers":"","supplier":"","main_product":"","client_base_info_count":5,"client_key_info_count":0,"contact_count":1,"visit_count":0,"cooperate_count":0,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":"","tax_no":"","cooperated":true,"is_public":1,"lost_contact_days":"","last_arrive_days":"","last_contact":"","last_arrive":"","score":"13","clientType":{"id":5,"key":5,"name":"\u5546\u4e1a"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237","notice_days":30,"color":"#EB13C3"},"clientFrom":"","clientIndustry":{"id":4,"key":4,"name":"\u901a\u4fe1"},"companyNature":{"id":4,"key":4,"name":"\u6c11\u8425\u4f01\u4e1a"},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","client_lock":false,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"createdBy":{"id":5360,"key":5360,"name":"\u5f20\u7ea2\u82b3","sex":"F","department_id":3,"avatar":{"id":153,"user_id":5360,"name":"\/files\/cdn\/a57be577deb434\/avatar\/612c2410-e800-3507-aa05-3f1fbeb408a7.png"},"department":{"id":3,"key":3,"name":"\u5546\u52a1\u90e8"}},"commentCount":"","visitUsers":[{"id":6572,"client_id":2719,"user_id":5446}],"unCloseCases":[],"checked":true},{"id":2519,"name":"\u6b27\u5fb7\u4eae\u6c7d\u8f66\u706f\u7cfb\u7edf\u79d1\u6280\uff08\u5929\u6d25\uff09\u6709\u9650\u516c\u53f8","abbr":"","pinyin_shortcut":"odlqcdxtkjtjyxgs","description":"\u59da\u91d1\u82f9\u7528\u6237\uff0c\u6768\u865e\u948a\u7275\u7ebf\uff1b\u82f1\u6587\u5730\u5740\uff1aBuilding.1 Nordic Green Ind. Park, No.1 Xinxing Road, Tianjin hi-tech Ind. Park Wuqing Development Area ","corp_rep":"dong liang \u6881\u4e1c","website":"https:\/\/odelo.de\/en","capital":"800","established_at":"2012-10-09","headcount":"","reg_address":"","working_address":3059,"telephone":"022-59685366","fax":"","scale":"","branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":6,"client_class":43,"client_industry":5,"client_type":5,"sales_rep":1001,"main_contact":"","created_by":1011,"created_at":"2023-03-13 13:22:45","updated_at":"2024-02-02 13:51:40","main_business":"","deleted":false,"capital_currency":"usd","invoice_info":"","logo":"","en_name":"odelo Auto Light Systems Technology (Tianjin) Co., Ltd.","pick_at":"2023-03-13 13:22:45","it_budget":"","deployment_mode":"","it_per_num":"","public_relations_difficulty":"","it_status":"","decision_process":"","coach":"","competitor":"","peers":"","supplier":"","main_product":"","client_base_info_count":6,"client_key_info_count":0,"contact_count":2,"visit_count":0,"cooperate_count":0,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":"","tax_no":"","cooperated":true,"is_public":1,"lost_contact_days":"","last_arrive_days":"","last_contact":"","last_arrive":"","score":"25","clientType":{"id":5,"key":5,"name":"\u5546\u4e1a"},"clientClass":{"id":43,"key":43,"name":"\u6f5c\u529b\u5ba2\u6237","notice_days":60,"color":"#1EE6DC"},"clientFrom":{"id":156,"key":156,"name":"\u5382\u5546\u4ecb\u7ecd"},"clientIndustry":{"id":5,"key":5,"name":"\u5236\u9020"},"companyNature":{"id":6,"key":6,"name":"\u5916\u8d44\u4f01\u4e1a"},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","client_lock":false,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","department_id":3,"avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"},"department":{"id":3,"key":3,"name":"\u5546\u52a1\u90e8"}},"commentCount":"","visitUsers":[{"id":6559,"client_id":2519,"user_id":5446}],"unCloseCases":[],"checked":true}],"pagenation":{"totalcount":7,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-30 20:10:08') RETURNING "id" |
20:10:08.590 | 1.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
20:10:08.707 | 1.1 ms | yii\db\Command::query | SELECT "id", "client_id" FROM "a57be577deb434"."tbl_cases" WHERE ("case_status" NOT IN (5, 6)) AND ("client_id" IN (982, 3081, 3372, 3301, 3286, 2719, 2519)) |
20:10:08.713 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=5, "last_visit_at"='now()' WHERE "id"=55415 |
20:10:08.681 | 0.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (982, 3081, 3372, 3301, 3286, 2719, 2519) |
20:10:08.682 | 0.6 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=14) AND ("id" IN (164, 132, 142, 1, 226, 5, 179, 181, 213, 205, 192, 184, 189, 2, 215, 204, 7, 94, 196, 185, 128, 176, 165, 177, 156, 340, 130, 172, 313, 349, 350, 351, 353, 377, 348, 369)) ORDER BY "sort" |
20:10:08.684 | 0.5 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001) |
20:10:08.680 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_types" WHERE "id" IN (6, 5) |
20:10:08.706 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_user_visit_clients" WHERE ("user_id"='5446') AND ("client_id" IN (982, 3081, 3372, 3301, 3286, 2719, 2519)) |
20:10:08.685 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id" IN (3, 1, 4) |
20:10:08.683 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_company_natures" WHERE "id" IN (3, 4, 6) |
20:10:08.682 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_industries" WHERE "id" IN (4, 57, 10, 18, 13, 5) |
20:10:08.681 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "notice_days", "color" FROM "a57be577deb434"."tbl_client_classes" WHERE "id" IN (1, 43, 47) |
20:10:08.685 | 0.2 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1011, 5360, 5076, 1001)) |
20:10:08.684 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (5076, 1001, 1011, 5360) |
20:10:08.683 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "client_lock" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |