[ DB ] CONNECT:[ UseTime:0.000277s ] mysql:host=localhost;port=3306;dbname=test_92ya_com;charset=utf8
[ SQL ] select a.hid,a.name,a.alias_name,a.logo,a.thum,a.province,a.city,a.region,a.meal_num,a.yuyue_num,a.score from ebx_hospital as a where a.status = 1 and a.is_show = 1 AND a.province = '22' order by a.add_time desc limit 20 [ RunTime:0.000505s ]
[ SQL ] select count(*) as c from ebx_expert as a where a.is_show = 1 AND a.eid in (
select aa.eid from ebx_expert_hospital as aa where hid in ( select hid from ebx_hospital as h where h.is_show = 1 AND h.province = '22' ) group by aa.eid
) AND a.eid in (
select aa.eid from ebx_expert_project_type as aa where cat_id in ( select cat_id from ebx_project_type as h where h.is_show = 1 and h.cat_id = '73' ) group by aa.eid
) [ RunTime:0.000667s ]
[ SQL ] select * from ebx_expert as a where a.is_show = 1 AND a.eid in (
select aa.eid from ebx_expert_hospital as aa where hid in ( select hid from ebx_hospital as h where h.is_show = 1 AND h.province = '22' ) group by aa.eid
) AND a.eid in (
select aa.eid from ebx_expert_project_type as aa where cat_id in ( select cat_id from ebx_project_type as h where h.is_show = 1 and h.cat_id = '73' ) group by aa.eid
) ORDER BY a.weight asc , a.add_time desc LIMIT 0,10 [ RunTime:0.001012s ]
[ SQL ] SHOW COLUMNS FROM `ebx_region` [ RunTime:0.000831s ]
[ SQL ] SELECT * FROM `ebx_region` WHERE ( area_code="023" ) LIMIT 1 [ RunTime:0.000244s ]
[ SQL ] select a.id,a.name from ebx_region a
left join ebx_hospital as b on a.id=b.region
left join ebx_expert_hospital as c on c.hid=b.hid
left join ebx_expert as d on d.eid=c.eid
where a.parent_id=22 and b.is_show=1 and b.status=1 and d.is_show=1 and d.status=1 group by a.id [ RunTime:0.000383s ]
[ SQL ] select a.cat_id,a.cat_name,count(*) as c from ebx_project_type a
left join ebx_expert_project_type as b on a.cat_id=b.cat_id
left join ebx_expert as c on b.eid=c.eid
left join ebx_expert_hospital as d on d.eid=c.eid
left join ebx_hospital as e on e.hid=d.hid
where a.is_show=1 and a.parent_id=0 and e.city=22 and e.is_show=1 and e.status=1 and c.is_show=1 and c.status=1 group by a.cat_id order by a.sort_order asc [ RunTime:0.000558s ]
[ SQL ] SELECT `name` FROM `ebx_region` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000202s ]
[ SQL ] SELECT `name` FROM `ebx_region` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000199s ]
[ SQL ] SHOW COLUMNS FROM `ebx_project_type` [ RunTime:0.000838s ]
[ SQL ] SELECT `cat_name` FROM `ebx_project_type` WHERE `cat_id` = 73 LIMIT 1 [ RunTime:0.000185s ]