From ec15c0cf73e2adfe88cf0c8ec7a24b25b554f9ec Mon Sep 17 00:00:00 2001 From: daitingting Date: Thu, 17 Oct 2024 08:59:06 +0000 Subject: [PATCH] * [bug#56183,done,1h] Add getDocsByIdList function. --- module/doc/model.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/module/doc/model.php b/module/doc/model.php index a8b0bc1155..39e136ae8e 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -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.