[ SQL ] SHOW COLUMNS FROM `mr_hospital` [ RunTime:0.003301s ]
[ SQL ] SELECT `h`.*,p.area_name as province_name,c.area_name as city_name,d.area_name as district_name FROM `mr_hospital` `h` LEFT JOIN `mr_region` `p` ON `h`.`province`=`p`.`area_id` LEFT JOIN `mr_region` `c` ON `h`.`city`=`c`.`area_id` LEFT JOIN `mr_region` `d` ON `h`.`district`=`d`.`area_id` WHERE ( `h`.`id` = '13' ) LIMIT 1 [ RunTime:0.001406s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM `mr_doctors` `d` LEFT JOIN `mr_hospital` `h` ON `d`.`hospital_id`=`h`.`id` LEFT JOIN `mr_region` `r` ON `h`.`province`=`r`.`area_id` WHERE ( `hospital_id` = 13 AND `d`.`name` LIKE '%%' ) [ RunTime:0.331805s ]
[ SQL ] SELECT `d`.*,`h`.`province`,`h`.`city`,`h`.`district`,`r`.`area_name` FROM `mr_doctors` `d` LEFT JOIN `mr_hospital` `h` ON `d`.`hospital_id`=`h`.`id` LEFT JOIN `mr_region` `r` ON `h`.`province`=`r`.`area_id` WHERE ( `hospital_id` = 13 AND `d`.`name` LIKE '%%' ) ORDER BY `id` DESC LIMIT 0,12 [ RunTime:1.485733s ]
[ SQL ] SHOW COLUMNS FROM `mr_project_category` [ RunTime:0.003738s ]
[ SQL ] SELECT `id`,`name`,`icon`,`parent_id` FROM `mr_project_category` WHERE `status` = 1 AND `parent_id` = 0 ORDER BY `list_order` LIMIT 12 [ RunTime:0.001501s ]
[ SQL ] SELECT `h`.`name`,`h`.`id` FROM `mr_hospital` `h` LEFT JOIN `mr_region` `p` ON `h`.`province`=`p`.`area_id` LEFT JOIN `mr_region` `c` ON `h`.`city`=`c`.`area_id` LEFT JOIN `mr_region` `d` ON `h`.`district`=`c`.`area_id` INNER JOIN ( SELECT `id` FROM `mr_hospital` WHERE ( `district` = 110101 ) ORDER BY `list_order`,`update_time` DESC ) `w_order` ON `w_order`.`id`=`h`.`id` LIMIT 5 [ RunTime:0.005844s ]
本地医院推荐