* [task#129946,done,1h] Batch move document.

This commit is contained in:
daitingting
2024-10-16 08:39:09 +08:00
committed by sunhao
parent b941807263
commit 4ba062de6f
+15
View File
@@ -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.