From 4ba062de6f237183b9c9837ba7a15f7df0d548f7 Mon Sep 17 00:00:00 2001 From: daitingting Date: Mon, 14 Oct 2024 05:22:15 +0000 Subject: [PATCH] * [task#129946,done,1h] Batch move document. --- module/doc/model.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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.