query->where('uid', $uid); } else { $this->query->where('uniacid', $uniacid); } return $this; } public function deleteByUniacid($uniacid) { return $this->where('uniacid', $uniacid)->delete(); } }