* adjust for show dao error.

This commit is contained in:
wangyidong
2021-08-05 16:25:08 +08:00
parent d90d4580f4
commit 3fc2eecb3c
2 changed files with 49 additions and 2 deletions
+1
View File
@@ -606,6 +606,7 @@ class repoModel extends model
public function getProductsByRepo($repoID)
{
$repo = $this->getRepoByID($repoID);
if(empty($repo)) return array();
return $this->dao->select('id,name')->from(TABLE_PRODUCT)
->where('id')->in($repo->product)
->andWhere('deleted')->eq(0)