[ DB ] CONNECT:[ UseTime:0.000256s ] 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.city = '328' order by a.add_time desc limit 20 [ RunTime:0.000487s ]
[ 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.city = '328' ) 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 = '70' ) group by aa.eid
) [ RunTime:0.000630s ]
[ 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.city = '328' ) 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 = '70' ) group by aa.eid
) ORDER BY a.weight asc , a.add_time desc LIMIT 0,10 [ RunTime:0.001007s ]
[ SQL ] SHOW COLUMNS FROM `ebx_region` [ RunTime:0.000811s ]
[ SQL ] SELECT * FROM `ebx_region` WHERE ( area_code="029" ) LIMIT 1 [ RunTime:0.000261s ]
[ 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=328 and b.is_show=1 and b.status=1 and d.is_show=1 and d.status=1 group by a.id [ RunTime:0.000362s ]
[ 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=328 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.000607s ]
[ SQL ] SELECT `name` FROM `ebx_region` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000203s ]
[ SQL ] SELECT `name` FROM `ebx_region` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000348s ]
[ SQL ] SHOW COLUMNS FROM `ebx_project_type` [ RunTime:0.000789s ]
[ SQL ] SELECT `cat_name` FROM `ebx_project_type` WHERE `cat_id` = 70 LIMIT 1 [ RunTime:0.000183s ]