+ testtaskModel: return empty array if the $idList parameter is empty.

This commit is contained in:
liugang
2023-10-10 14:02:08 +08:00
parent 98990424af
commit 2ff82aa533
+1
View File
@@ -228,6 +228,7 @@ class testtaskModel extends model
*/
public function getByList(array $idList): array
{
if(!$idList) return array();
return $this->dao->select('*')->from(TABLE_TESTTASK)->where('id')->in($idList)->fetchAll('id');
}