protected function dealScan($dealCityIdList) { $this->logMsg(sprintf('开始扫描处理城市[%s]........', implode(',', $dealCityIdList))); $onlineHouseRelationList = Bll_Combo_HouseRelation::ajkGetOnlineHouseListByCityId($dealCityIdList, $this->_startId, self::COMMUNITY_LIMIT); foreach ($onlineHouseRelationList as $onlineHouseRelation) { /** * 查询Solr,判断房源是否在线 */ if (Util_SearchUtil::checkHouseIsOnline($onlineHouseRelation['cityId'], $onlineHouseRelation['houseId'])) { $this->logMsg(sprintf('经纪人[%d]房源[%d]在线,不予处理。', $onlineHouseRelation['brokerId'], $onlineHouseRelation['houseId'])); continue; } $this->saveFailureHouseId($onlineHouseRelation['houseId']); $this->logMsg(sprintf('经纪人[%d]房源[%d]不在线。', $onlineHouseRelation['brokerId'], $onlineHouseRelation['houseId'])); $this->setCursor($onlineHouseRelation['id']); } if (count($onlineHouseRelationList) < self::COMMUNITY_LIMIT) { $this->logMsg(sprintf('startId: %d 处理结束。', $this->_startId)); file_put_contents($this->_doneFile, 'SLEEP'); return; } }