This commit is contained in:
liyuchun
2021-10-20 16:04:44 +08:00
parent a3948383f8
commit fce0f3aafa
2 changed files with 17 additions and 4 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ class docModel extends model
{
$stmt = $this->dao->select('*')->from(TABLE_DOCLIB)
->where('deleted')->eq(0)
->beginIF($type and $type != 'api')->andWhere('type')->eq($type)->fi()
->andWhere('type')->ne('api')
->beginIF($type)->andWhere('type')->eq($type)->fi()
->beginIF(!$type)->andWhere('type')->ne('api')->fi()
->orderBy('`order`, id desc')->query();
}