Merge branch 'sprint/tsj_uinttest' of https://gitlab.zcorp.cc/easycorp/zentaopms into sprint/tsj_uinttest

This commit is contained in:
caoyanyi
2023-01-06 10:38:24 +08:00
2 changed files with 65 additions and 0 deletions
+16
View File
@@ -15,6 +15,22 @@ class programTest
$this->program = $tester->loadModel('program');
}
/**
* Get list by search.
*
* @param string $orderBy
* @param int $queryID
* @param string $sql
* @access public
* @return array
*/
public function getListBySearchTest($orderBy = 'id_asc', $queryID = 0, $sql = '')
{
if(!empty($sql)) $_SESSION['programQuery'] = $sql;
return $this->program->getListBySearch($orderBy, $queryID);
}
/**
* Get pairs.
*