* [bug#56183,done,1h] Add getDocsByIdList function.
This commit is contained in:
@@ -660,6 +660,18 @@ class docModel extends model
|
||||
return $this->processCollector($docs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get docs by id list.
|
||||
*
|
||||
* @param array $docIdList
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getDocsByIdList(array $docIdList): array
|
||||
{
|
||||
return $this->dao->select('*')->from(TABLE_DOC)->where('id')->in($docIdList)->fetchAll('id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取文档列表数据。
|
||||
* Get doc list.
|
||||
|
||||
Reference in New Issue
Block a user