* change the divider of orderby.
This commit is contained in:
@@ -68,7 +68,7 @@ class testcaseModel extends model
|
||||
}
|
||||
|
||||
/* 获得某一个产品,某一个模块下面的所有case。*/
|
||||
public function getModuleCases($productID, $moduleIds = 0, $orderBy = 'iddesc', $pager = null)
|
||||
public function getModuleCases($productID, $moduleIds = 0, $orderBy = 'id_desc', $pager = null)
|
||||
{
|
||||
$sql = $this->dao->select('*')->from(TABLE_CASE)->where('product')->eq((int)$productID);
|
||||
if(!empty($moduleIds)) $sql->andWhere('module')->in($moduleIds);
|
||||
|
||||
Reference in New Issue
Block a user