where('name', 'like', "%".$param['name']."%"); } return $query; } /** * 删除记录 * @return int * @throws \think\Exception * @throws \think\exception\PDOException */ public function setDelete() { return $this->save(['is_delete' => 1]); } }