where('file_id', 'in', $fileIds)->update(['is_delete' => 1]); } /** * 批量移动文件分组 */ public function moveGroup($group_id, $fileIds) { return $this->where('file_id', 'in', $fileIds)->update(compact('group_id')); } }