Exemplo n.º 1
0
 /**
  * 修改小区状态为审核状态
  *
  * @param int $communityId
  * @param int $brokerId
  * @return bool
  */
 public static function setCheckGardener($communityId, $brokerId)
 {
     $history = static::getBrokerUnfinishedApply($communityId, $brokerId);
     if (empty($history)) {
         return false;
     }
     if (Model_Community_GardenerApply::setCheckGardenerApply($history['applyId'])) {
         return Model_Community_CommunityState::setCheckGardener($communityId, $brokerId) == 1;
     }
     return false;
 }