[ DB ] CONNECT:[ UseTime:0.000171s ] mysql:host=localhost;dbname=fcmslyw;charset=utf8
[ SQL ] SHOW COLUMNS FROM `fang_city` [ RunTime:0.006977s ]
[ SQL ] SELECT * FROM `fang_city` WHERE `status` = 1 AND `domain` = 'neijiang' LIMIT 1 [ RunTime:0.000195s ]
[ SQL ] SHOW COLUMNS FROM `fang_nav` [ RunTime:0.006348s ]
[ SQL ] SELECT * FROM `fang_nav` WHERE `model` = 'Estate' LIMIT 1 [ RunTime:0.000176s ]
[ SQL ] SELECT `spid` FROM `fang_city` WHERE `id` = 292 LIMIT 1 [ RunTime:0.000094s ]
[ SQL ] SELECT `id` FROM `fang_city` WHERE `spid` LIKE '292|%' [ RunTime:0.000086s ]
[ SQL ] SHOW COLUMNS FROM `fang_second_house` [ RunTime:0.010895s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM `fang_second_house` WHERE `status` = 1 AND `estate_id` = 1525 LIMIT 1 [ RunTime:0.000258s ]
[ SQL ] SHOW COLUMNS FROM `fang_rental` [ RunTime:0.006168s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM `fang_rental` WHERE `status` = 1 AND `estate_id` = 1525 LIMIT 1 [ RunTime:0.000327s ]
[ SQL ] SHOW COLUMNS FROM `fang_estate` [ RunTime:0.006513s ]
[ SQL ] UPDATE `fang_estate` SET `second_count` = 0 , `rental_count` = 1 WHERE `id` = 1525 [ RunTime:0.000289s ]
[ SQL ] SELECT * FROM `fang_estate` WHERE `id` = 1525 AND `status` = 1 LIMIT 1 [ RunTime:0.000295s ]
[ SQL ] UPDATE `fang_estate` SET `hits` = `hits` + 1 WHERE `id` = 1525 [ RunTime:0.139918s ]
[ SQL ] SELECT `spid` FROM `fang_city` WHERE `id` = 292 LIMIT 1 [ RunTime:0.000188s ]
[ SQL ] SELECT `id`,`name`,`alias` FROM `fang_city` WHERE `status` = 1 AND `id` IN (292) [ RunTime:0.000277s ]
[ SQL ] SELECT `id`,`title`,`price`,`img`,`distance`,`second_count`,`rental_count` FROM ( SELECT *,ROUND(6378.138*2*ASIN(SQRT(POW(SIN((29.60525*PI()/180-lat*PI()/180)/2),2)+COS(29.60525*PI()/180)*COS(lat*PI()/180)*POW(SIN((105.065353*PI()/180-lng*PI()/180)/2),2)))*1000) as distance FROM `fang_estate` ) d WHERE `status` = '1' AND `distance` < '2000' LIMIT 4 [ RunTime:0.376098s ]
[ SQL ] SELECT `id`,`title`,`img`,`city`,`room`,`living_room`,`acreage`,`price` FROM `fang_second_house` WHERE ( estate_id=1525 and status=1 ) ORDER BY `create_time` DESC LIMIT 4 [ RunTime:0.000347s ]
[ SQL ] SELECT `id`,`title`,`img`,`city`,`room`,`living_room`,`acreage`,`price` FROM `fang_rental` WHERE ( estate_id=1525 and status=1 ) ORDER BY `id` DESC LIMIT 4 [ RunTime:0.000263s ]