diff --git a/module/doc/model.php b/module/doc/model.php index f554f69ada..18aceb3e14 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -3333,6 +3333,21 @@ class docModel extends model return true; } + /** + * Batch move document. + * + * @param object $data + * @param array $docIdList + * @access public + * @return bool + */ + public function batchMoveDoc(object $data, array $docIdList): bool + { + $this->dao->update(TABLE_DOC)->data($data)->where('id')->in($docIdList)->exec(); + + return !dao::isError(); + } + /** * 判断文档库下是否有其他人创建的文档。 * Check if there are other documents created under the document library.