* [bug#56183,done,1h] Add getDocsByIdList function.

This commit is contained in:
daitingting
2024-10-17 17:04:37 +08:00
committed by 周鑫
parent 4bb003af0e
commit ec15c0cf73
+12
View File
@@ -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.