[ SQL ] SHOW COLUMNS FROM `mr_hospital` [ RunTime:0.001670s ]
[ 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` = '5381' ) LIMIT 1 [ RunTime:0.001130s ]
[ 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` = 5381 AND `d`.`name` LIKE '%%' ) [ RunTime:0.265946s ]
[ 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` = 5381 AND `d`.`name` LIKE '%%' ) ORDER BY `id` DESC LIMIT 0,12 [ RunTime:1.684612s ]
[ SQL ] SHOW COLUMNS FROM `mr_project_category` [ RunTime:0.082342s ]
[ 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.000833s ]
[ 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` = 440304 ) ORDER BY `list_order`,`update_time` DESC ) `w_order` ON `w_order`.`id`=`h`.`id` LIMIT 5 [ RunTime:0.300277s ]
本地医院推荐