Example #1
0
 /**
  * 插入租房区域板块修改明细表
  *
  * @param $oldCode
  * @param $newCode
  * @param $cityId
  * @param $addTime
  * @param $status
  * @return array|bool
  */
 public function insertHzBlockCodeChange($oldCode, $newCode, $cityId, $addTime, $status)
 {
     $dao = new DAO_Area_CmsAreaBlockNoComm();
     $result = $dao->insert($oldCode, $newCode, $cityId, $addTime, $status);
     if ($result && !isset($result[-9999])) {
         return true;
     } else {
         return false;
     }
 }
 /**
  * 为租房更新小区id为0的房源准备板块变更表
  * @param $task
  * @return bool
  */
 private function insertHzBlockCodeChange($task)
 {
     $oldCode = $task['blockCode'];
     $newCode = $task['newBlockCode'];
     $cityId = $task['cityId'];
     $addTime = time();
     $status = $task['status'];
     $dao = new DAO_Area_CmsAreaBlockNoComm();
     $result = $dao->insert($oldCode, $newCode, $cityId, $addTime, $status);
     if ($result && !isset($result[-9999])) {
         return true;
     } else {
         return false;
     }
 }