* [task#129946,done,1h] Batch move document.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user