[ DB ] CONNECT:[ UseTime:0.000212s ] mysql:host=localhost;dbname=fcmslyw;charset=utf8
[ SQL ] SHOW COLUMNS FROM `fang_city` [ RunTime:0.001070s ]
[ SQL ] SELECT * FROM `fang_city` WHERE `status` = 1 AND `domain` = 'changzhi' LIMIT 1 [ RunTime:0.000260s ]
[ SQL ] SHOW COLUMNS FROM `fang_nav` [ RunTime:0.001026s ]
[ SQL ] SELECT * FROM `fang_nav` WHERE `model` = 'Estate' LIMIT 1 [ RunTime:0.000253s ]
[ SQL ] SELECT `spid` FROM `fang_city` WHERE `id` = 49 LIMIT 1 [ RunTime:0.000192s ]
[ SQL ] SELECT `id` FROM `fang_city` WHERE `spid` LIKE '49|%' [ RunTime:0.000187s ]
[ SQL ] SHOW COLUMNS FROM `fang_second_house` [ RunTime:0.001245s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM `fang_second_house` WHERE `status` = 1 AND `estate_id` = 569 LIMIT 1 [ RunTime:0.000315s ]
[ SQL ] SHOW COLUMNS FROM `fang_rental` [ RunTime:0.001248s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM `fang_rental` WHERE `status` = 1 AND `estate_id` = 569 LIMIT 1 [ RunTime:0.000301s ]
[ SQL ] SHOW COLUMNS FROM `fang_estate` [ RunTime:0.001147s ]
[ SQL ] UPDATE `fang_estate` SET `second_count` = 1 , `rental_count` = 0 WHERE `id` = 569 [ RunTime:0.000311s ]
[ SQL ] SELECT * FROM `fang_estate` WHERE `id` = 569 AND `status` = 1 LIMIT 1 [ RunTime:0.000415s ]
[ SQL ] UPDATE `fang_estate` SET `hits` = `hits` + 1 WHERE `id` = 569 [ RunTime:0.080405s ]
[ SQL ] SELECT `spid` FROM `fang_city` WHERE `id` = 49 LIMIT 1 [ RunTime:0.000140s ]
[ SQL ] SELECT `id`,`name`,`alias` FROM `fang_city` WHERE `status` = 1 AND `id` IN (49) [ RunTime:0.000205s ]
[ SQL ] SELECT `id`,`title`,`price`,`img`,`distance`,`second_count`,`rental_count` FROM ( SELECT *,ROUND(6378.138*2*ASIN(SQRT(POW(SIN((36.120976*PI()/180-lat*PI()/180)/2),2)+COS(36.120976*PI()/180)*COS(lat*PI()/180)*POW(SIN((113.220458*PI()/180-lng*PI()/180)/2),2)))*1000) as distance FROM `fang_estate` ) d WHERE `status` = '1' AND `distance` < '2000' LIMIT 4 [ RunTime:0.293760s ]
[ SQL ] SELECT `id`,`title`,`img`,`city`,`room`,`living_room`,`acreage`,`price` FROM `fang_second_house` WHERE ( estate_id=569 and status=1 ) ORDER BY `create_time` DESC LIMIT 4 [ RunTime:0.000254s ]
[ SQL ] SELECT `id`,`title`,`img`,`city`,`room`,`living_room`,`acreage`,`price` FROM `fang_rental` WHERE ( estate_id=569 and status=1 ) ORDER BY `id` DESC LIMIT 4 [ RunTime:0.000190s ]