'0', 'name' => '', 'uniacid' => '0', 'uid' => '0', 'type' => '0', ); public function searchWithUniacidOrUid($uniacid, $uid) { if (empty($uniacid)) { $this->query->where('uniacid', 0)->where('uid', $uid); } else { $this->query->where('uniacid', $uniacid); } return $this; } }