* [misc] Add the function for get program pairs.

This commit is contained in:
xieqiyu
2024-09-04 17:31:41 +08:00
committed by 王于听
parent 8c28fa2af2
commit ad8bd186da
2 changed files with 14 additions and 0 deletions
+2
View File
@@ -65,6 +65,8 @@ class programModel extends model
*/
public function getPairs($isQueryAll = false, $orderBy = 'id_desc'): array
{
if(common::isTutorialMode()) return $this->loadModel('tutorial')->getProgramPairs();
return $this->dao->select('id, name')->from(TABLE_PROGRAM)
->where('type')->eq('program')
->andWhere('deleted')->eq(0)